Skip to content

Instantly share code, notes, and snippets.

:octocat:
Trying...

William Pourmajidi WilliamPourmajidi

:octocat:
Trying...
  • Toronto, Ontario, Canada
Block or report user

Report or block WilliamPourmajidi

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
@WilliamPourmajidi
WilliamPourmajidi / git_cheat-sheet.md
Created Jul 15, 2019 — forked from davfre/git_cheat-sheet.md
git commandline cheat-sheet
View git_cheat-sheet.md
@WilliamPourmajidi
WilliamPourmajidi / superblock.sol
Created Jul 13, 2018
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=true&gist=
View superblock.sol
pragma solidity ^0.4.0;
contract Superblock {
// The 'dict' of addresses that are approved to submit SBs
mapping (address => bool) approvedSender;
string SB;
// The event to announce a SB on the blockchain
event SuperblockSubmission(address _sender, string _superblock);
// This is a constructor function, so its name has to match the contract
function Superblock() public {
You can’t perform that action at this time.