Skip to content

Instantly share code, notes, and snippets.

@attractivechaos
attractivechaos / get_votes.pl
Created March 24, 2012 17:15
Plot HackerNews polls on favorite and disliked programming languages
#!/usr/bin/env perl
# This script collects voting from HackerNews and outputs a plot votes.eps
# You need to have gnuplot installed for plotting.
use strict;
use warnings;
use IO::Socket::INET;
sub http_get {
@attractivechaos
attractivechaos / compile-d.mak
Created February 16, 2012 22:15
Compile the D compiler
MODEL=64
PROTO=git
all:bin/dmd.conf bin/rdmd
@echo "Now add the following to .bashrc: export PATH=\"`pwd`/bin:"'$$PATH"'
# Compile the D compiler
dmd/src/posix.mak:
git clone $(PROTO)://github.com/D-Programming-Language/dmd.git