View oh_hell.py
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
""" | |
"oh hell!" card game logic | |
(aka contract whilst) | |
benjamin yates & dave renne, 2016 | |
renne house rules edition | |
""" | |
import sys | |
import random | |
from itertools import chain |
View gist:be9abca5f3b13169cce8
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
git config --global user.email "davidrenne@gmail.com" | |
git config --global user.name "David Renne" | |
git config --global core.editor "vim" | |
git config --global core.fileMode false | |
git config --global push.default current | |
git config --global alias.up 'pull --rebase --autostash' | |
git config --global alias.cp 'cherry-pick' | |
git config --global alias.s 'status' | |
git config --global alias.co 'checkout' | |
git config --global alias.c 'commit -a' |
View oo.php
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
<?php | |
// Define the 'class' class | |
$class = Obj() | |
->fn('new', function ($class) { | |
$newClass = Obj($class->methods) | |
->fn('new', function($class) { | |
$obj = Obj($class->imethods); | |
$args = func_get_args(); | |
array_shift($args); |
View gistie.rb
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 ruby | |
# Made by Pieter de Bie <frimmirf@gmail.com> | |
# Based on a "Pastie" task by someone | |
require "tempfile" | |
GIST_URL = 'http://gist.github.com/gists' | |
GIST_LOGIN_URL = 'https://gist.github.com/session' | |
USERNAME = "martinisoft" | |
TOKEN = "6ef8395fecf207165f1a82178ae1b984" |