This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contract Ballot { | |
struct Voter { | |
uint weight; | |
bool voted; | |
uint8 vote; | |
address delegate; | |
} | |
struct Proposal { | |
uint voteCount; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://gist.github.com/bed43604853212f4312f.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am rchasman on github. | |
* I am rchasman (https://keybase.io/rchasman) on keybase. | |
* I have a public key whose fingerprint is 2078 89DE 9DA0 2AE7 E9EA EA1E EB02 9973 187D B456 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** SIG FIG INTERVIEW **/ | |
var node = function(value, left, right) { | |
this.value = value; | |
this.left = left; | |
this.right = right; | |
}; | |
/** | |
n - current node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import urlparse | |
def getid(id): | |
url = "http://letsrevolutionizetesting.com/challenge.json?" | |
r = requests.get(url + id) | |
return urlparse.urlsplit(r.json()['follow'])[3] | |
seed = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# requires lolcat | |
if [ $# -eq 2 ] | |
then | |
artist=${1// /%20} | |
song=${2// /%20} | |
(curl -s "http://makeitpersonal.co/lyrics?artist=$artist&title=$song" | say -r 200 &); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ADT/LTC": 94, | |
"ADT/XPM": 113, | |
"ALF/BTC": 57, | |
"AMC/BTC": 43, | |
"ANC/BTC": 66, | |
"ANC/LTC": 121, | |
"ARG/BTC": 48, | |
"ASC/LTC": 111, | |
"ASC/XPM": 112, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*- | |
* Copyright 2009 Colin Percival, 2011 ArtForz, 2011 pooler, 2012 mtrlt, | |
* 2012-2013 Con Kolivas. | |
* 2013 Adam Villena. | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions | |
* are met: | |
* 1. Redistributions of source code must retain the above copyright |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nodes": [ | |
{"atom": "H", "size": 1}, | |
{"atom": "C", "size": 12}, | |
{"atom": "N", "size": 14}, | |
{"atom": "H", "size": 1}, | |
{"atom": "N", "size": 14}, | |
{"atom": "C", "size": 12}, | |
{"atom": "C", "size": 12}, | |
{"atom": "N", "size": 14}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nodes": [ | |
{"atom": "H", "size": 1}, | |
{"atom": "C", "size": 12}, | |
{"atom": "N", "size": 14}, | |
{"atom": "H", "size": 1}, | |
{"atom": "N", "size": 14}, | |
{"atom": "C", "size": 12}, | |
{"atom": "C", "size": 12}, | |
{"atom": "N", "size": 14}, |