Skip to content

Instantly share code, notes, and snippets.

View evanp's full-sized avatar

Evan Prodromou evanp

View GitHub Profile
Chance Dan Hon tricked one person into subscribing: 30% (est'd)
Chance Dan Hon tricked two people into subscribing: 30%^2 = 9%
Chance Dan Hon tricked 595 people into subscribing: (.3)^595 = 7.7e-312
Chance Dan Hon tricked 1190 people into subscribing: (.3)^1190 = 0.0

Login screen

  • Email input
  • Password input
  • OK button
  • Cancel button

Welcome screen

Verifying that +evanp is my Bitcoin username. You can send me #bitcoin here: https://onename.io/evanp
@evanp
evanp / xoxo2014.txt
Created September 9, 2014 14:07
2014 X0X0 Attendees
_
140plots
20_Sided_Dave
8apixel
aatumanova
abcsofbeijing
acarboni
actualmargit
adamd
adam_messinger
@evanp
evanp / gist:1566736
Created January 5, 2012 19:16
Backbone router with fragments
<html>
<head>
<title>test router</title>
<style>
#content { color: red; font-size: 32px }
</style>
</head>
<body>
<ul>
<li><a href="#">root</a></li>
@evanp
evanp / gist:1566760
Created January 5, 2012 19:21
Backbone router with pushState
<html>
<head>
<title>test router</title>
<style>
#content { color: red; font-size: 32px }
</style>
</head>
<body>
<ul>
<li><a href="/">root</a></li>
@evanp
evanp / gist:3029348
Created July 1, 2012 19:41
Request with hook
{
"hook": "http://example.com/search-results/30112A337",
"ids": [
"@t",
"evan@status.net",
"http://facebook.com/faddah",
"https://plus.google.com/113651174506128852447/posts",
"Jan-Christoph Borchardt"
]
}
Person.fromIdentifier(id, function(err, person) {
if (err) {
throw err;
} else {
res.json(person);
}
});
@evanp
evanp / gist:3048138
Created July 4, 2012 16:23
Subscribable multi-author feed for StatusNet
<feed>
<!-- ... -->
<author>
<activity:object-type>http://activitystrea.ms/schema/1.0/group</activity:object-type>
<uri>http://evan.status.net/group/3/id</uri>
<name>friends</name>
<link rel="alternate" type="text/html" href="http://evan.status.net/group/3/id"/>
<link rel="avatar" type="image/jpg" media:width="96" media:height="96" href="https://c778552.ssl.cf2.rackcdn.com/evan/3-96-20120419022937.jpeg"/>
<link rel="avatar" type="image/jpg" media:width="48" media:height="48" href="https://c778552.ssl.cf2.rackcdn.com/evan/3-48-20120419022938.jpeg"/>
<link rel="avatar" type="image/jpg" media:width="24" media:height="24" href="https://c778552.ssl.cf2.rackcdn.com/evan/3-24-20120419022938.jpeg"/>
@evanp
evanp / gist:3188646
Created July 27, 2012 15:24
Example of using nested teardowns
var vows = require('vows'),
assert = require('assert');
var suite = vows.describe('test teardown callback');
suite.addBatch({
'when we do an async operation': {
topic: function() {
var cb = this.callback;
process.nextTick(function() {