Skip to content

Instantly share code, notes, and snippets.

View WilliamPourmajidi's full-sized avatar
:shipit:
Trying...

William Pourmajidi WilliamPourmajidi

:shipit:
Trying...
  • WIL Solutions Inc.
  • Toronto, Ontario, Canada
  • 13:24 (UTC -04:00)
View GitHub Profile
# Regular Expressions
. - Any Character Except New Line
\d - Digit (0-9)
\D - Not a Digit (0-9)
\w - Word Character (a-z, A-Z, 0-9, _)
\W - Not a Word Character
\s - Whitespace (space, tab, newline)
\S - Not Whitespace (space, tab, newline)
@WilliamPourmajidi
WilliamPourmajidi / git_cheat-sheet.md
Last active October 11, 2020 18:24 — forked from davfre/git_cheat-sheet.md
git commandline cheat-sheet
@WilliamPourmajidi
WilliamPourmajidi / superblock.sol
Created July 13, 2018 19:21
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=
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 {