Skip to content

Instantly share code, notes, and snippets.

@usrlocalben
usrlocalben / oh_hell.py
Created May 15, 2016 04:37
"oh hell!" card game logic
View oh_hell.py
"""
"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
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
<?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);
@martinisoft
martinisoft / gistie.rb
Created September 23, 2008 06:29 — forked from pieter/gistie.rb
command-line posting to gist
View gistie.rb
#!/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"