Skip to content

Instantly share code, notes, and snippets.

View nobodyme's full-sized avatar
🎯
Focusing

Naveen nobodyme

🎯
Focusing
View GitHub Profile
<?xml version="1.0" ?>
<style-scheme id="nobody" name="Nobody" version="1.0">
<author/>
<_description>nobody</_description>
<color name="white" value="#eeeeee"/>
<color name="yellow" value="#fce94f"/>
<color name="asfalto" value="#61635f"/>
<color name="carbon" value="#232323"/>
<color name="green" value="#b5d600"/>
@nobodyme
nobodyme / ico.sol
Last active October 23, 2018 10:01
pragma solidity ^0.4.24;
// Only Signatures of few methods used in the ERC20Token contract.
contract OurToken {
function balanceOf(address tokenOwner) public constant returns (uint balance);
// To release tokens to the address that have send ether.
function releaseTokens(address _receiver, uint _amount) public;
function deployERC20(){
var web3 = new Web3(new Web3.providers.HttpProvider('https://ropsten.infura.io/v3/99ba9cf51093478e8941ff667779149c'));
//var web3 = new Web3(new Web3.providers.HttpProvider('http://68.183.223.119:22002'));
// account = web3.eth.accounts.create("hello");
// address = account.address;
// privateKey = account.privateKey;
// console.log("address", address);
// console.log("privatekey",privateKey);
function deployERC20(){
//var web3 = new Web3(new Web3.providers.HttpProvider('https://ropsten.infura.io/v3/99ba9cf51093478e8941ff667779149c'));
var web3 = new Web3(new Web3.providers.HttpProvider('https://api.giftz.exchange'));
// account = web3.eth.accounts.create("hello");
// address = account.address;
// privateKey = account.privateKey;
// console.log("address", address);
// console.log("privatekey",privateKey);
public class ZookeeperNonceTransactionManager extends FastRawTransactionManager implements TransactionManager {
private static final byte ATTEMPTS = 20;
private static final int SLEEP_DURATION = 100;
private static volatile BigInteger nonce = BigInteger.valueOf(-1);
private final ZookeeperNonce zookeeperNonce;
private final TransactionReceiptProcessor transactionReceiptProcessor;
function _object_equals(object_1, object_2) {
const keys = new Set([
...Object.keys(object_1),
...Object.keys(object_2)
]);
for (const key of keys) {
// if one is instance of object, check if both are
if (object_2[key] instanceof Object || object_1[key] instanceof Object) {
if (object_2[key] instanceof Object && object_1[key] instanceof Object) {