Skip to content

Instantly share code, notes, and snippets.

Principles of Adult Behavior

  1. Be patient. No matter what.
  2. Don’t badmouth: Assign responsibility, not blame. Say nothing of another you wouldn’t say to him.
  3. Never assume the motives of others are, to them, less noble than yours are to you.
  4. Expand your sense of the possible.
  5. Don’t trouble yourself with matters you truly cannot change.
  6. Expect no more of anyone than you can deliver yourself.
  7. Tolerate ambiguity.
  8. Laugh at yourself frequently.
@rsivapr
rsivapr / data.json
Last active August 29, 2015 14:18 — forked from d3noob/.block
[
{
"date":"1-May-12",
"close":58.13
},
{
"date":"30-Apr-12",
"close":53.98
},
{
(u'A. Flaxman', u'Matthias Ekman', u'Miroslav Batchkarov', u'Michael Eickenberg')
(u'Abhijeet Kolhe', u'Alexander Fabisch', u'James Mcdermott', u'F\xe9lix-Antoine Fortin')
(u'Adrien Gaidon', u'Justin Pati', u'Rafael Cunha De Almeida', u'Raul Garreta')
(u'Alemagnani', u'Roman', u'Matti Lyra', u'Lqdc')
(u'Alex Companioni', u'Jakemick', u'Bogdan Trach', u'Miroslav Batchkarov')
(u'Alexander Fabisch', u'Alexander Fabisch', u'Miroslav Batchkarov', u'Bogdan Trach')
(u'Alexandre Abraham', u'Jan Hendrik Metzen', u'F\xe9lix-Antoine Fortin', u'James Mcdermott')
(u'Alexandre Gramfort', u'Gaelvaroquaux', u'Immanuel Bayer', u'Andy')
(u'Alexandre Passos', u'Nzer0', u'Miroslav Batchkarov', u'Bogdan Trach')
(u'Alexis Mignon', u'Jamestwebber', u'Jansoe', u'Eugene Nizhibitsky')

What

Roll your own iPython Notebook server with Amazon Web Services (EC2) using their Free Tier.

What are we using? What do you need?

  • An active AWS account. First time sign-ups are eligible for the free tier for a year
  • One Micro Tier EC2 Instance
  • With AWS we will use the stock Ubuntu Server AMI and customize it.
  • Anaconda for Python.
  • Coffee/Beer/Time
@rsivapr
rsivapr / make_completer.py
Created June 25, 2012 15:20 — forked from ajschumacher/make_completer.py
This code generates a file that gets a score of 0.61758 at http://www.kaggle.com/c/FacebookRecruiting/
import csv
r = csv.reader(open('train.csv','r'))
r.next()
edges = set()
#commutative_graph = dict()
for edge in r:
edges.add((edge[0], edge[1]))
# commutative_graph.setdefault(edge[0], set()).add(edge[1])
@rsivapr
rsivapr / map.py
Created June 23, 2012 03:47 — forked from ajschumacher/map.py
Calculates the Mean Average Precision, as in: http://www.kaggle.com/c/FacebookRecruiting/details/Evaluation
#!/usr/bin/env python
import sys
import csv
def MeanAveragePrecision(valid_filename, attempt_filename, at=10):
at = int(at)
valid = dict()
for line in csv.DictReader(open(valid_filename,'r')):
valid.setdefault(line['source_node'],set()).update(line['destination_nodes'].split(" "))