This file contains 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
size = 9 | |
top = "63742AKRT" | |
bot = "3547RAQKT" | |
def score(t, b): | |
#print t | |
#print b | |
# No remaining cards to match | |
if len(t) == 0 or len(b) == 0: | |
#print "End" |
This file contains 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
autoload -U compinit promptinit | |
compinit | |
promptinit | |
## Include my private settings ## | |
if [[ -f $HOME/.zshrc.private ]]; then | |
. $HOME/.zshrc.private | |
fi | |
## Aliases ## |
This file contains 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 python3 | |
# Warning: Hackish maths | |
# I sure wish I knew Haskell | |
# Grass always greener? | |
tx = 100e-6 | |
tc = 2e-6 | |
tu = 5e-6 | |
ideal = False |
This file contains 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 | |
"""Extract animated gifs from mkv files | |
Usage: | |
mkv2gif.py [options] <input> <output> | |
mkv2gif.py (-h | --help) | |
mkv2gif.py --version | |
Options: |
This file contains 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
I ::= "title: Anime Titles\n" | |
^ "author: Jake Humphrey\n" | |
^ "language: english\n" | |
^ "status: Basic\n" | |
^ "topic: Anime\n" | |
^ "created: 22/01/2013\n"; | |
S ::= +++++++++++++(\Object [and Object][^"!"]) | |
| \Exclamation ^ "!"[^"!"[^"!"]] \Name | |
| '^\Object "Can't Possibly be this" \Adjective ^' |
This file contains 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
I ::= "title: Course Names\n" | |
^ "author: Jake Humphrey\n" | |
^ "language: english\n" | |
^ "status: Basic\n" | |
^ "topic: EIE\n" | |
^ "created: 21/01/2013\n"; | |
S ::= ["Introduction to"] ComboModule; | |
ComboModule ::= Module [Conjunction Module]; |
This file contains 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
#include <iostream> | |
#define HEIGHT 16 | |
#define WIDTH 16 | |
using namespace std; | |
int main(void) | |
{ | |
bool done = false; |
This file contains 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
use Lingua::Shakespeare; | |
On a popular drinking game. | |
Tybalt, the player of today's game. | |
Romeo, who keeps butting in. | |
Balthazar, a limiting factor. | |
Act I: Before the game. | |
This file contains 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
#!/bin/bash | |
case "$1" in | |
start) | |
until pgrep pulseaudio &>/dev/null; do | |
sleep 0.5 | |
done | |
sleep 1 | |
rc.d start mpd >>/home/jake/log.txt | |
mpc pause >>/home/jake/log.txt |
This file contains 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
#include<stdio.h> | |
typedef enum bool {false, true} boolean ; | |
/* Input: an integer n > 1 | |
* | |
* Let A be an array of Boolean values, indexed by integers 2 to n, | |
* initially all set to true. | |
* | |
* for i = 2, 3, 4, ..., while i ≤ n/2: |
NewerOlder