This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var wordPool | |
;(function() { | |
EFFECT_DISTANCE = 100 | |
MAGNITUDE_COEFFICIENT = 2.5 | |
function distance(p1, p2) { | |
var asq = Math.pow(p1.top - p2.top, 2) | |
bsq = Math.pow(p1.left - p2.left, 2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import win32com.client | |
import re | |
from Tkinter import * | |
CHAR_WIDTH = 60 | |
EXPL_TEXT = ('This is a little utility to rename track names in iTunes (on ' | |
'Windows). To use it select some tracks in iTunes (click a track, ' | |
'hold shift, click another track), enter match and replace ' | |
'patterns and click "Execute Rename". Groups identified in the ' | |
'match pattern will be available in the repl pattern. For example ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import wave | |
import random | |
from math import pi, sin, cos | |
OPTIONS = {} | |
Hz_MAP = { | |
'c': 130.813, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# Conway's game of life | |
# Copyright(c) 2012 Ryan Jenkins | |
import pygame, time | |
from pygame.locals import * | |
class lifeGrid() : | |
def __init__(self, width, height) : |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import win32com.client | |
import sys | |
import hashlib | |
if __name__ == '__main__' : | |
itunes = win32com.client.Dispatch("iTunes.Application") | |
tracks = itunes.LibraryPlaylist.tracks | |
track_count = tracks.Count | |
inconsistent_albums = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
</head> | |
<body> | |
<canvas id="primary_canvas" width=800 height=600></canvas> | |
<script> | |
function loadAssets(callback) { | |
var urls = { | |
'n.png':'http://i.imgur.com/vEgk9O5.png', | |
'e.png':'http://i.imgur.com/lIbMfuW.png', |
NewerOlder