Skip to content

Instantly share code, notes, and snippets.

View andrew's full-sized avatar

Andrew Nesbitt andrew

View GitHub Profile
@andrew
andrew / 2013.txt
Created November 17, 2014 17:06
2013 24pullrequests email intro
Hey *|FNAME|*!
Last year, you were a participant in 24 Pull Requests. To jog your memory, the purpose of the project is to give back little gifts of code for Christmas. And we made a huge impact: in 2012, 881 developers submitted 3210 pull requests to 1521 different open source projects. That's pretty amazing.
This year, December is upon us! Whether or not you celebrate Christmas, this winter season is a great time to remember how privileged we are to be a part of such a great community and to have the opportunity to use libraries built by world class developers. For free. So why not celebrate this community by giving back?
Here's how you can get involved. During the first 24 days of December, you can:
Contribute
24 Pull Requests will suggest projects for you based on languages you're familiar with. Set your email frequency in your profile and get project suggests delivered right to your inbox. Even if your GitHub contribution visualization already looks like a veritable sea of hundreds of dark green s
@andrew
andrew / 24pullrequests.md
Created November 24, 2014 10:37
24 Pull Requests is starting again soon

♬ On the First day of Christmas my true love sent to me a Parser for a Syntax Tree.

On the Second day of Christmas my true love sent to me Two passing tests, and a Parser for a Syntax Tree. ♬

We've had a visit from a ghost, the ghost of Christmas yet to come. It showed us a horrible future where projects we used and loved lay unmaintained because developers took from open-source without contributing. Projects were incompatible with new browsers and only supported old versions of the spec. Security errors stalked the land and many pagers summoned unhappy developers from their Christmas feasts.

Worst of all, we saw newbies slamming shut their laptops, cursing the day they heard the name of open-source.

module Pi
def self.area(radius)
Math::PI*radius*radius
end
end
EXPORTS = Pi
var PI = Math.PI;
exports.area = function (r) {
return PI * r * r;
};
exports.circumference = function (r) {
return 2 * PI * r;
};
var Pi = require(‘./pi.js’)
Pi.area(2)
// Node's require:
var Lanyrd = require('Lanyrd')
# Ruby's require:
require('lanyrd')
Lanyrd # module available everywhere
var arDrone = require(‘ar-drone’);
var client = arDrone.createClient();
client.takeoff();
require 'colorize'
def debug
heatmap.pixels.each do |row|
row.each do |pixel|
print "#{pixel} ".colorize(colour(pixel))
end
print "\n"
end
nil
gnu
gnu affero general public license
gnu general public license
gnu general public license v3
gnu gpl
gnu gpl 3
gnu gpl v2
gnu gpl v2 or later
gnu gpl v2.0
gnu gpl v3
require 'rubygems'
require 'hpricot'
require 'open-uri'
require 'builder'
def get_subreddits(uri = 'http://www.reddit.com/reddits/')
reddits = []
while uri
page = download_page(uri)