Skip to content

Instantly share code, notes, and snippets.

View simonista's full-sized avatar

Simon Williams simonista

  • Lumio
  • Austin, TX
View GitHub Profile
@zachpendleton
zachpendleton / pianobar-lastfm.rb
Created July 5, 2012 20:50
Pianobar/LastFM Integration
#!/usr/bin/env ruby
# coding: utf-8
require 'digest/md5'
require 'net/http'
class LastFM
attr_reader :api_key, :secret, :session_key, :base_uri, :namespace
@arvearve
arvearve / gist:4158578
Created November 28, 2012 02:01
Mathematics: What do grad students in math do all day?

Mathematics: What do grad students in math do all day?

by Yasha Berchenko-Kogan

A lot of math grad school is reading books and papers and trying to understand what's going on. The difficulty is that reading math is not like reading a mystery thriller, and it's not even like reading a history book or a New York Times article.

The main issue is that, by the time you get to the frontiers of math, the words to describe the concepts don't really exist yet. Communicating these ideas is a bit like trying to explain a vacuum cleaner to someone who has never seen one, except you're only allowed to use words that are four letters long or shorter.

What can you say?

@jehiah
jehiah / iphone_messages_dump.py
Last active September 28, 2020 03:53
Script to dump out messages to csv from an iPhone Backup sqlite file
# Copyright Jehiah Czebotar 2013
# http://jehiah.cz/
import tornado.options
import glob
import os
import sqlite3
import logging
import datetime
import csv
import std.stdio;
import std.string;
import std.conv;
import std.array;
import std.range;
void times(int count, void delegate() cb) {
for (int i = 0; i < count; ++i) {
cb();
}