Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Naveen nobodyme

🎯
Focusing
Block or report user

Report or block nobodyme

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View react.md

Lifecycle methods

Hooks

  • runs after every render
  • doesn't merge state like classes
  • rules used only at top level, not inside loops or nested funcs, therefore just React func components and react custom hook.
  • Effects aren't synchronous, ie render doesn't neccessarily run after it, use Layout hook to be synchronous.
  • Effect hook should return a func, if something is to be run after it's done, like unsubscribe.
View css-cheatsheet.txt
Introduction to css
How CSS works
CSS syntax
Selectors
Css Values and units
Cascade and inheritance
Box model
Styling text
Fundamental font and Styling
View web3-timeout-modified.js
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;
View quorum-deploy-send-tokens.js
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);
View signed-deployment.js
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);
View ico.sol
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;
View ico.txt
What an ICO should generally consist of?
- Introduction (problem)
- Solution
- Project description
- Token role, token dynamics, and ecosystem
- Use of funds
- Team
- Roadmap
- Legal disclaimers
View nobody-gedit-theme.xml
<?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"/>
You can’t perform that action at this time.