Skip to content

Instantly share code, notes, and snippets.

View dopetard's full-sized avatar
🎯
Focusing

Ankur Kumar dopetard

🎯
Focusing
View GitHub Profile
HEAD is now at 69dfbfe... fix(grpc): fix gRPC deprecation warning
Ankurs-MacBook-Air:walli-server ankurkumar$ git checkout -b 69dfbfe
Switched to a new branch '69dfbfe'
Ankurs-MacBook-Air:walli-server ankurkumar$ npm i && npm run proto
> [email protected] install /Users/ankurkumar/Desktop/walli-server/node_modules/grpc
> node-pre-gyp install --fallback-to-build --library=static_library
node-pre-gyp WARN Using request for node-pre-gyp https download
[grpc] Success: "/Users/ankurkumar/Desktop/walli-server/node_modules/grpc/src/node/extension_binary/node-v57-darwin-x64-unknown/grpc_node.node" is installed via remote
Verifying that "ak.id" is my Blockstack ID. https://explorer.blockstack.org/name/ak.id
@dopetard
dopetard / deploy_error
Created April 9, 2018 17:35
Deploy.py raiden error
Warning: This is a pre-release compiler version, please do not use it in production.
Warning: This is a pre-release compiler version, please do not use it in production.
Warning: This is a pre-release compiler version, please do not use it in production.
Warning: This is a pre-release compiler version, please do not use it in production.
INFO:__main__ Deploying Registry
DEBUG:raiden.network.rpc.client Deploying dependencies: ['NettingChannelLibrary.sol:NettingChannelLibrary', 'ChannelManagerLibrary.sol:ChannelManagerLibrary']
Traceback (most recent call last):
File "deploy.py", line 146, in <module>
main() # pylint: disable=no-value-for-parameter
File "/home/exchangeunion6/raiden/raidennode1/lib/python3.6/site-packages/click/core.py", line 722, in __call__
File "deploy.py", line 146, in <module>
main() # pylint: disable=no-value-for-parameter
File "/home/ankur/raidennode1/lib/python3.6/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/home/ankur/raidennode1/lib/python3.6/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/home/ankur/raidennode1/lib/python3.6/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/ankur/raidennode1/lib/python3.6/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
@dopetard
dopetard / perceptron.py
Last active April 27, 2018 22:39
Single layer perceptron performing boolean AND operation
import tensorflow as tf #importing the tensorflow library
T, F = 1.0, -1.0 #True has the +1.0 value and False has -1.0, it's important to note that
# you can assign any value to them
bias = 1.0
training_input = [
[T, T, bias],
[T, F, bias],
[F, T, bias],
[F, F, bias],
]