Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Ashish 0xAshish

🎯
Focusing
View GitHub Profile
View custom_logic_in_child_token_contract.sol
pragma solidity ^0.4.24;
//interface for parent contract of any child token
/*
parent contract interface for adding custom logic
before making transaction in erc721/erc20 child chain contract
transfer, transferFrom executes beforeTransfer of this interface contract
it must follow this interface and return a boolean and in case of ERC20 contracts
it should not have require statement and instead return false
@0xAshish
0xAshish / Faucet.sol
Last active Jan 5, 2019
faucet for erc20 and ETH
View Faucet.sol
pragma solidity ^0.4.24;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address private _owner;
View erc20.sol
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// '0Fucks' token contract
//
// Deployed to : 0x5A86f0cafD4ef3ba4f0344C138afcC84bd1ED222
// Symbol : 0FUCKS
// Name : 0 Fucks Token
// Total supply: 100000000
// Decimals : 18
View Validatorset.sol
pragma solidity ^0.4.24;
import { SafeMath } from "openzeppelin-solidity/contracts/math/SafeMath.sol";
import {RLP} from "../lib/RLP.sol";
import { RLPEncode } from "../lib/RLPEncode.sol";
import { BytesLib } from "../lib/BytesLib.sol";
contract ValidatorSet {
using SafeMath for uint256;
using SafeMath for uint8;
// using BytesLib for bytes32;
@0xAshish
0xAshish / 2018-photo.md
Created Jan 2, 2018 — forked from usmanakram232/2018-photo.md
52 Week Photography Challange 2018
View 2018-photo.md

52 Week Photography Challange 2018

This year again photographer Dale Foshe has put up 52 week photography chanllange here.

Following, I just list them again for my ease of use. 😆

  • Week 1 Vision: Look Ahead New year. New beginnings. New you. Look ahead. Interpret as you wish.
  • Week 2 Composition: Color Harmony Get out your color wheel. Do opposites attract? Can there be harmony with opposite colors? Does the Hulk wear purple pants? Mix warm and cool colors.
  • Week 3 Technical: Full Manual While the camera often determines shutter speed and aperture for the photographer, it doesn't know your creative intent. This week, challenge your self to assume creative control over the camera by using full manual mode. Select a subject where varying the aperture and / or shutter speed helps enhance the composition and visual qualities of the image.
  • Week 4 Creative: Quiet Moment Peace