Skip to content

Instantly share code, notes, and snippets.

#!/bin/python
import random
import copy
import sys
import pprint
def _thesame(items):
return len(set(items)) == 1
class A(object):
def foo(self, onearg):
print "foo onearg"
class B(object):
def foo(self, onearg, twoarg):
print "foo onearg twoarg"
b = B()
@coffindragger
coffindragger / examples.d
Created February 22, 2012 06:46
artificial life programming game
(NRG > 6000) # if have over 6000 nrg
[reproduce 50] # reproduce giving 50% to child
[turn -15] # turn 15 degrees after spawning
(EYE.5 > 0) # there is something directly in front of us
shoot(-1)
# follow something
(EYE.4 > 0)
Website allows users to create and manage accounts.
- user manages pubkey
- user is assigned a Git Repo
- can review Stats and Hand Histories
- can refill an empty account with credits 1/day.
User creates Code and pushes to Git Repo.
- using their pubkey to remote: [email protected]:username.git
@coffindragger
coffindragger / gist:1754996
Created February 6, 2012 21:25
Gambling Chaturaji
Each player needs $4.50 in the following change:
10 x Quarters
2 x Dollars
To make a move, you must roll 2 4-sided dice.
You may make 0, 1 or 2 moves based on the dice rolls shown:
1 - Boat
2 - Knight
3 - Rook
#!/usr/bin/env python
import sys
import os
import optparse
class ExpandTemplateCommand(object):
def run(self, *args):
parser = optparse.OptionParser()
@coffindragger
coffindragger / game.css
Created December 21, 2011 18:58
Simplistic Chess Vision
body {
background: beige;
}
#display_container {
float: left;
}
#turn_container {
float: left;
@coffindragger
coffindragger / jquery.plugintemplate.js
Created October 30, 2011 21:29
jQuery Plugin Template
(function($) {
var PLUGIN = "" //TODO: The name of the plugin
var methods = {
init: function (config) {
var options = {
//TODO: Default Options
Dashboard Gadget Ideas
- twitter feed
- github activity feed
- activecollab activity graphs
- rss feed
- graphs of commits/checkouts
- upcoming beer vote
- bus schedules
Abstract
A 54" TV sits blank in a room full of programmers who would happily script up visualizations and demos. A device is needed to provide video source for the display, that can be installed easily on the wall near the TV, either surreptisously, or perhaps artfully.
Fullscreen webkit browser, displaying HTML5/JS visualizations.