Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Jackson Ng jacksonng77

🎯
Focusing
View GitHub Profile
View truffle.js
require('babel-register');
var HDWalletProvider = require("truffle-hdwallet-provider-privkey");
const privKeys = ["f37390fa053b9ff1f9c67cf9d46adee093c199b44232c7dc29d2faaccada9211"];
module.exports = {
networks: {
ganache: {
host: '127.0.0.1',
port: 7545,
network_id: '*' // Match any network id
View ImageHash.sol
pragma solidity ^0.4.17;
contract ImageHash {
string ipfsHash;
event savedHash(
);
function setHash(string x) public {
ipfsHash = x;
View Grounder.sol
pragma solidity ^0.4.21;
contract Grounder {
address public parent;
enum State { startGround, endGround }
State public state;
uint public startGroundTimeStamp;
uint public endGroundTimeStamp;
uint[] public moveTimeStamp;
View underscore.sol
pragma solidity ^0.4.18;
contract underscore {
uint public a;
constructor() public {
a = 10;
}
modifier conditionalChangeAtoThirty() {
_;
You can’t perform that action at this time.