Skip to content

Instantly share code, notes, and snippets.

View suryapratap1's full-sized avatar
🎯
Focusing

Surya Pratap Singh suryapratap1

🎯
Focusing
  • Delhi , India
View GitHub Profile
@suryapratap1
suryapratap1 / GeekyAnts
Created August 1, 2019 18:00
GeekyAnts
https://github.com/GeekyAnts?page=2
@suryapratap1
suryapratap1 / manage transfer Action
Last active August 1, 2019 03:53
manage transfer Action
var Web3 = require('web3');
var BigNumber = require('bignumber.js');
let Tx = require('ethereumjs-tx');
var web3 = new Web3(Web3.givenProvider || 'http://3.0.185.98:9031');//mainnet
var Accounts = require('web3-eth-accounts');
var accounts = new Accounts('http://3.0.185.98:9031');//mainnet
const safeJsonStringify = require('safe-json-stringify');
const numberToBN = require('number-to-bn');
var CircularJSON = require('circular-json');
const request = require('request');
@suryapratap1
suryapratap1 / REACT NATIVE BASE STRUCTURE
Created April 26, 2019 11:23
REACT NATIVE BASE STRUCTURE
====REACT NATIVE BASE STRUCTURE
• To run the code by terminal
• Change the directory- cd project path
• npm install
• To run – react-native run-ios/android
• Change App Name
• Delete android and ios folder
• Change the name and displayName in the app.json as per your App name
• Run command react-native-eject
@suryapratap1
suryapratap1 / Understanding, Writing and Deploying Chaincode in Hyperledger Fabric
Created January 4, 2019 13:42
Understanding, Writing and Deploying Chaincode in Hyperledger Fabric
// Follow the link->Understanding, Writing and Deploying Chaincode in Hyperledger Fabric
https://medium.com/towardsblockchain/step-by-step-understanding-writing-and-deploying-chaincode-in-hyperledger-fabric-e00ccdddc4ac
// Fabric Sample of Hyperledger -> Understanding, Writing and Deploying Chaincode in Hyperledger Fabric
https://github.com/VtpVlan-oo7/fabric-samples
@suryapratap1
suryapratap1 / Hyperledger Fabric - Building Our First Network
Created December 31, 2018 10:22
Hyperledger Fabric - Building Our First Network
## In your Ubuntu terminal, enter the following commands: -
sudo apt-get install curl
sudo apt-get install golang-go
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
sudo apt-get install nodejs
sudo apt-get install npm
sudo apt-get install python
sudo apt-get install docker
@suryapratap1
suryapratap1 / ERC20 Token and launch an ICO
Last active December 11, 2018 11:00
How to build your own Ethereum based ERC20 Token and launch an ICO in next 20 minutes
follow the link-->
https://hashnode.com/post/how-to-build-your-own-ethereum-based-erc20-token-and-launch-an-ico-in-next-20-minutes-cjbcpwzec01c93awtbij90uzn
OR-----!!
# Basics
Here are a few basic terms we are going to use in this article. If you are familiar with the following concepts, feel free to skip
to the next section.
Ethereum based ERC20 Tokens: In Ethereum tokens represent any tradable goods such as coins, loyalty points etc. You can create
@suryapratap1
suryapratap1 / EOS working for creation of TOKEN
Last active December 14, 2018 07:34
EOS working for creation of TOKEN
for this we have to install firstly -->>
1)-follow the link
https://github.com/EOSIO/eosio.cdt.git
2)-follow the link
https://github.com/EOSIO/eos.git
cleos wallet create -n mobiloitte --to-console
Creating wallet: mobiloitte
Save password to use in the future to unlock this wallet.
@suryapratap1
suryapratap1 / # Makefile for an eosio smart contact
Created December 5, 2018 10:38
Makefile for an eosio smart contact
# Makefile for an eosio smart contact
CC=eosio-cpp
Contract=mw-coin
all:
@echo "Building"
# $(CC) $(Contract).cpp -o $(Contract).wasm --abigen
$(CC) $(Contract).cpp -o $(Contract).wasm
@suryapratap1
suryapratap1 / Comiple QT wallet on windows
Last active November 29, 2018 09:47
Comiple QT wallet on linux for windows
This method should be suitable for any Unix system: Linux, FreeBSD, MacOS X
This guide was written on Linux Mint 17.1 (http://linuxmint.com/) and was tested on Ubuntu 14.04 (https://www.ubuntu.com/)
1) Preparing the system for cross-compilation.
sudo apt-get install git bison cmake flex g++ gperf ruby scons libghc-zlib-dev libghc-zlib-bindings-dev
2) Install MXE and dependencies
cd / home / <your name> /
@suryapratap1
suryapratap1 / TOR-Project
Last active October 30, 2018 12:53
TOR-Project
Follow the link for cloning the tor ->
https://gitweb.torproject.org/tor.git // official repo
https://github.com/VtpVlan-oo7/tor //unofficial repo
//* Tor protects your privacy on the internet by hiding the connection