Skip to content

Instantly share code, notes, and snippets.

@raucao
raucao / test.rb
Created July 21, 2008 20:30 — forked from zapnap/gist:117
def foo
puts 'bar'
end
@raucao
raucao / gist:47222
Created January 15, 2009 02:03 — forked from halbtuerke/gist:31934
Show Git dirty state (and branch) in the prompt (+ lovely colors)
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
BLUE="\[\033[0;34m\]"
LIGHT_RED="\[\033[1;31m\]"
LIGHT_GREEN="\[\033[1;32m\]"
WHITE="\[\033[1;37m\]"
LIGHT_GRAY="\[\033[0;37m\]"
COLOR_NONE="\[\e[0m\]"
#tag_cloud
@for !n from 1 through 10
.importance_#{!n}
:font-size= round(!base_font_size + ((!base_font_size / 10) * !n))
@if !n < 5
:color= #222 + !n * #111
{
"priority":"Normal",
"description":"They are all over the place!",
"status":"new",
"milestone":"Priority Updates",
"summary":"Change all help links to point to tender and the tender KB",
"assignee":"John Smith",
"category":"Documentation",
"id":4,
"reporter":"Adam Cooke"

Game Engines

Name Latest Release Size (KB) License Type Unit Tests Docs Notes
The Render Engine 1.5.3 MIT Cross-browser; extensive API; open-source. 2
gameQuery 0.5.1 CC BY-SA 2.5 Designed to be used with jQuery
gTile 0.0.1 (2008-07-21) Tile based
Akihabara 1.3 GPL2/MIT Classic Repro Intended for making classic arcade-style games in JS+HTML5 3
The Javascript 2D Game Engine GPL Emphasis on gravity/physics/collision detection; uses HTML5 Canvas and ExplorerCanvas for IE support. Focus on limiting CPU usage. 4
The GMP Javascript Game Engine
@raucao
raucao / oauth.coffee
Created May 23, 2011 08:28 — forked from roidrage/oauth.coffee
Example of using Express and node-oauth to do OAuth with Twitter
express = require "express"
sys = require "sys"
util = require "util"
oauth = require "oauth"
fs = require "fs"
app = module.exports = express.createServer()
app.configure('development', () ->
app.use(express.errorHandler({ dumpExceptions: true, showStack: true }))
# Config for Nginx to act as a front-end for Riak
# The main goal is to proxy all GETs directly to Riak, and disallow anything else (POST, PUT, etc)
# Also, disallow use of the map/reduce query links (i.e. /riak/bucket/key/_,_,_)
# Config is in /etc/nginx/sites-available/default or somewhere like that
# Set up load-balancing to send requests to all nodes in the Riak cluster
# Replace these IPs/ports with the locations of your Riak nodes
upstream riak_hosts {
server 127.0.0.1:8098;
sh -c '
portsnap fetch
portsnap extract
BATCH=yes
export BATCH
echo "RUBY_DEFAULT_VER=1.9" >> /etc/make.conf
pkg_add -r autoconf
cd /usr/ports/converters/ruby-iconv
make install
gem install chef --no-ri --no-rdoc
@raucao
raucao / active_model_serializers.rb
Created June 7, 2012 10:18 — forked from benedikt/active_model_serializers.rb
Makes mongoid and active_model_serializers play nicely together
# config/initializers/active_model_serializers.rb
Mongoid::Document.send(:include, ActiveModel::SerializerSupport)
Mongoid::Criteria.delegate(:active_model_serializer, :to => :to_a)
@raucao
raucao / gist:3406890
Created August 20, 2012 19:18 — forked from mislav/gist:3313773
hosting one's own email

I want to get off Gmail for two reasons:

  1. my own *@mislav.net address
  2. to get my email under my own control so I can write scripts to process/analyze it

I've asked on Twitter what software should I use.
Here are the aggregated suggestions.

SMTP