Skip to content

Instantly share code, notes, and snippets.

View max-berman's full-sized avatar

Max Berman max-berman

View GitHub Profile
alias brewery='brew update && brew upgrade && brew cleanup'
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
alias python=python3
alias pip="python3 -m pip"
alias naknick="cd $HOME/Dev/naknick.com && sudo php -S local.naknick.com:80 router.php"
alias playchap="cd $HOME/Dev/playchap-poc && npm run develop"
pragma solidity ^0.4.21;
contract EIP20Interface {
/* This is a slight change to the ERC20 base standard.
function totalSupply() constant returns (uint256 supply);
is replaced with:
uint256 public totalSupply;
This automatically creates a getter function for the totalSupply.
This is moved to the base contract since public getter functions are not
currently recognised as an implementation of the matching abstract
@max-berman
max-berman / arcade-token.sol
Created June 12, 2018 13:40
Arcade Coin Token used as a virtual coin in playchap.io
pragma solidity ^0.4.4;
contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
pragma solidity ^0.4.4;
contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
function UnlinkRequest ({
custom,
device,
facebook,
google,
email
} = {}) {
function build_ () {
if (custom) return { link: { custom } } // Should return { unlink: { custom } } instead
if (device) return { link: { device } } // Should return { unlink: { device } } instead
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
body {
margin:0;
padding:0;
<!DOCTYPE html>
<html>
<head>
<link href="http://code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.min.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="http://code.jquery.com/ui/1.11.2/jquery-ui.min.js"></script>
<meta name="description" content="tets" />
<!DOCTYPE html>
<html>
<head>
<link href="http://code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.min.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="http://code.jquery.com/ui/1.11.2/jquery-ui.min.js"></script>
<meta name="description" content="tets" />
@max-berman
max-berman / index.html
Created October 20, 2014 08:44
AjaxTest-_underscoreTemplating // source http://jsbin.com/tuwos
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="AjaxTest-_underscoreTemplating" />
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">