Skip to content

Instantly share code, notes, and snippets.

@rsds143
rsds143 / tmux.conf
Created January 21, 2011 05:39
my tmux file
# $Id: vim-keys.conf,v 1.2 2010/09/18 09:36:15 nicm Exp $
#
# vim-keys.conf, v1.2 2010/09/12
#
# By Daniel Thau. Public domain.
#
# This configuration file binds many vi- and vim-like bindings to the
# appropriate tmux key bindings. Note that for many key bindings there is no
# tmux analogue. This is intended for tmux 1.3, which handles pane selection
# differently from the previous versions
@alexisbernard
alexisbernard / prepare-commit-msg
Created January 3, 2012 17:21
Git hook to append Pivotal's story tag
#!/bin/sh
# File: .git/hooks/prepare-commit-msg
# Append the Pivotal's story tag at the end of the commit message.
# Your branch must be named like this: my_branch_12345.
story=$(git symbolic-ref HEAD|sed -rn 's/^.*_([[:digit:]]+)/\1/p') # -E instead of -r for Mac OS X
test $story && echo "[Story#$story]" >> $1
exit 0
colorscheme wombat256mod
@eclubb
eclubb / sqlite2pg.sh
Created March 30, 2012 17:20
Script to import SQLite3 database into PostgreSQL
#!/bin/sh
# This script will migrate schema and data from a SQLite3 database to PostgreSQL.
# Schema translation based on http://stackoverflow.com/a/4581921/1303625.
# Some column types are not handled (e.g blobs).
SQLITE_DB_PATH=$1
PG_DB_NAME=$2
PG_USER_NAME=$3
- Why 440Hz matter / How frequencies work
- The logic behind Quines
- Recording at home: a primer
- Stack-based programming languages
- Proxies and reverse proxies
- Building compilers
- How to blog often: a few tips
- Vision: a collaborative recording solution
- The principle of abstraction
- Universality vs configuration
@tomdale
tomdale / gist:4004913
Created November 2, 2012 23:10
Per-Type Adapters Proposal

Per-Type Adapter Hooks

Requirements

Many existing JSON APIs are not consistent between types. As JSON endpoints grew organically and were built by different engineers at different times, the style in which records are represented can vary wildly.

Historically, we have asked adapter authors to rely on the fact that the type of record is provided to all adapter hooks (either by passing a type argument, or by passing a record

@nddrylliog
nddrylliog / gpo-000.md
Created November 13, 2012 21:31
Game Programming in ooc

Game Programming in ooc

Getting started

The first thing you need to know about ooc is that it compiles down to C. Sure, in theory you could compile it to JavaScript or whatever, but it was really designed to spit out C under the hood.

Why bother then?

Couldn't we just write code like this?

@nddrylliog
nddrylliog / sdl-ooc-portable-howto.md
Created November 15, 2012 02:03
Notes on getting SDL ooc stuff to compile on all three platforms

What is this?

These are notes on how to get ooc-sdl samples to compile & run on all three platforms.

Linux

Smooth sailing. You can bootstrap rock easily, just clone the git repository then run make rescue:

cd ~/Dev/
@nddrylliog
nddrylliog / oggplayer.ooc
Created November 22, 2012 18:23
An ogg player with libvorbis and cubeb in ooc
use cubeb
import cubeb
use vorbis
import vorbis
import structs/ArrayList, os/Time, io/FileWriter
main: func (args: ArrayList<String>) {
@wandernauta
wandernauta / llamize.sh
Created November 25, 2012 18:56
llamize
#!/bin/bash
#
# llamize
# Stub a llama-standard ooc library/binding.
#
# Check if a name is given.
if [[ -z $1 ]]; then
echo "Usage: llamize <name>"