Skip to content

Instantly share code, notes, and snippets.

@jwheare
jwheare / ihatecircles.user.js
Created November 27, 2011 17:55
Turn off circles on This Is My Jam.
// ==UserScript==
// User script to turn off the "I love circles!!!11!" option on This Is My Jam by default.
// Click raw to install in Chrome
// Should work with Greasemonkey and the like in other browsers
// @match http://thisismyjam.com/jam/meta
// @match http://www.thisismyjam.com/jam/meta
// ==/UserScript==
document.getElementById('circle').click()
@gearmonkey
gearmonkey / karmapolice.json
Created June 29, 2012 15:06
the response from The Echo Nest's demo song search, but with the audio_summary bucket (also, I prettified it for readability) - fetched from http://developer.echonest.com/api/v4/song/search?api_key=N6E4NIOVYMTHNDM8J&format=json&results=1&artist=radiohead&
{"response":
{"status":
{"version": "4.2",
"code": 0,
"message": "Success"},
"songs": [
{"audio_summary":
{"key": 7,
"mode": 1,
"time_signature": 4,

This document is intended to be a simplified version of the OAuth 2.0 specification. In particular it has been written with implementors in mind, and as such attempts to trim the spec down to just what you need to implement an OAuth provider or client. It is necessarily not complete, but attempts to introduce spec requirements in the same order in which the protocol proceeds in practise, with everything you need to know about each protocol endpoint brought together in one place rather than scattered across a large document.

@gearmonkey
gearmonkey / TotC_random_draw.py
Created October 12, 2012 14:26
An emulator of the random draw process from Trial of the Clones by Zach Weinersmith process in the book is to flip to a random page and using the number in the corner for game mechanics. call it like this: >python TotC_random_draw.py [number of draws] th
"""
TotC_random_draw.py
An emulator of the random draw process from
Trial of the Clones by Zach Weinersmith
process in the book is to flip to a random page
and using the number in the corner for game
mechanics.
call it like this:
>python TotC_random_draw.py [number of draws]
then it prints the outcome[s]
@Jonty
Jonty / kittinz.sh
Created November 15, 2012 15:04
KITTINZ
brew install mplayer && mplayer "http://livestream-f.akamaihd.net/398160_1594566_3e41227e_1_678@41915?v=2.10.3&fp=MAC%2011,5,31,2&r=HPMHI&g=MYFXUTYHSWLA"
@nova77
nova77 / clip_magic.py
Last active October 24, 2023 18:50
copy to clipboard ipython magic
"""
Add copy to clipboard from IPython!
To install, just copy it to your profile/startup directory, typically:
~/.ipython/profile_default/startup/
Example usage:
%clip hello world
# will store "hello world"

First, you install ruby-build and chruby. ruby-build is a program that knows how to download and build different ruby versions. chruby manages $PATH to control which ruby gets invoked in your shell. They work completely independently.

sudo su
cd /usr/src

git clone https://github.com/sstephenson/ruby-build.git
cd ruby-build
./install.sh
cd -