Skip to content

Instantly share code, notes, and snippets.

@wmoss
wmoss / interleaved.dat
Last active September 28, 2018 21:43
Cache Interview Files
3 resp get ok -
4 resp noop ok -
0 req set - user_1
0 resp set ok -
0 req get - user_1
0 resp get ok -
1 req set - user_2
1 resp set ok -
0 req get - listing_1
1 req get - user_2
@wmoss
wmoss / quotes
Last active August 29, 2015 14:20
Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover. -Mark Twain
I can't understand why people are frightened of new ideas. I'm frightened of the old ones. -John Cage
The tragedy of life is not so much what men suffer, but rather what they miss. -Thomas Carlyle
The greatest mistake you can make in life is to be continually fearing you will make one. -Elbert Hubbard
Anyone who has never made a mistake has never tried anything new. -Albert Einstein
It's better to hang out with people better than you. Pick out associates whose behavior is better than yours and you'll drift in that direction. -Warren Buffett
The question is not who is going to let me, it's who is going to stop me. -Ayn Rand
The dumbest people I know are those who know it all. -Malcolm Forbes
If what you’re doing is not your passion, you have nothing to lose. -George
username,country,birthday,resting_hr,vo2_max
Greg LeMond,USA,"June 26, 1961",30,92.5
Lance Armstrong,USA,"September 18, 1971",32,84.0
Eddy Merckx,Belgium,"June 17, 1945",26,88.0
James Mayfield,USA,"July 26, 1983",60,45.2
@wmoss
wmoss / users.csv
Created May 27, 2014 17:44
Sample CSV File
John Smith john.smith@gmail.com Los Angeles 1
Jane Roberts janer@msn.com San Francisco, CA 0
Alexandra "Alex" Menendez alex.menendez@gmail.com Miami 1
@wmoss
wmoss / keybase.md
Created May 26, 2014 04:23
keybase.md

Keybase proof

I hereby claim:

  • I am wmoss on github.
  • I am wbmoss (https://keybase.io/wbmoss) on keybase.
  • I have a public key whose fingerprint is 3555 3BA8 0149 D8A2 962C E3F3 8BE9 4E3A 2D5F 42A2

To claim this, I am signing this object:

@wmoss
wmoss / gist:6468267
Created September 6, 2013 18:51
Pipe to gist
function gist {
# Create token using: https://help.github.com/articles/creating-an-access-token-for-command-line-use
json=$(python -c "import json; import sys; print json.dumps(sys.stdin.read())")
resp=$(curl --silent --user "<YOUR USERNAME HERE>:" -H "Authorization: token <YOUR TOKEN HERE>" --request POST --data '{"public": false, "files": { "file.'$1'": { "content": '$json' } } }' https://api.github.com/gists)
echo $resp | fgrep "html_url" | fgrep "gist" | sed -e 's/.*: "//' -e 's/",//'
}