Public Gists by jameskilton

Gravatar
Thu Feb 12 10:21:14 -0800 2009
1
2
3
def some_method
  4
end
Gravatar
Wed Feb 11 07:53:56 -0800 2009
1
2
3
// Turn this:
 
    $.post("/cameras/" + cameraId + "/wireless", {
Gravatar
Mon Feb 09 10:27:34 -0800 2009
1
2
3
// leaks memory because a copy of the value of scene is returned and the pointer is never deleted
Image Scene::draw() const {
  Image scene = *(new Image());
Gravatar
Fri Feb 06 08:36:17 -0800 2009
1
2
3
[user]
name = Jason Roelofs
email = jameskilton@gmail.com
Gravatar
Tue Feb 03 10:39:50 -0800 2009
1
2
3
#!/usr/bin/perl -w
#
# Simple Flash Socket Policy Server
Gravatar
Fri Jan 30 06:23:51 -0800 2009
1
2
3
CmdUtils.CreateCommand({
                name: "wowhead",
                arguments: [{role: 'object', nountype: noun_arb_text, label: 'query'}],
Gravatar
Fri Jan 16 08:46:24 -0800 2009
1
2
3
require 'benchmark'
 
N = 1_000_000
Gravatar
Tue Dec 16 08:27:22 -0800 2008
1
2
3
# From http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/
function parse_git_branch {
  git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/[\1]/'
Gravatar
Thu Dec 04 07:56:22 -0800 2008
1
2
3
function is_git_svn {
  git config --get svn-remote.svn.url > /dev/null
 
Gravatar
Mon Dec 01 15:00:56 -0800 2008
1
2
3
roelofs@trillian [method_properties]~/projects/rice $ make
Making all in rice
make[1]: Entering directory `/home/roelofs/projects/rice/rice'
Gravatar
Fri Nov 21 07:47:35 -0800 2008
1
2
3
>> require 'benchmark'
=> true
>> Benchmark.measure { 1000000.times { a = /peoplel/}}.real
Gravatar
Wed Oct 29 12:45:48 -0700 2008
1
2
3
-module(echo_server).
 
-export([handle_event/3, handle_sync_event/4, init/1,
Gravatar
Tue Oct 21 08:05:36 -0700 2008
1
2
3
CmdUtils.CreateCommand(
            {
                name: "erlang",
Gravatar
Thu Oct 16 12:50:39 -0700 2008
1
2
3
>> require 'map'
=> true
>> m = Std::Map.new
Gravatar
Tue Sep 30 14:30:31 -0700 2008
1
2
3
require 'test/unit'
 
class ShouldTest < Test::Unit::TestCase
Gravatar
Fri Sep 05 13:18:31 -0700 2008
1
2
3
CmdUtils.CreateCommand(
            {
                name: "rails",
Gravatar
Mon Aug 18 11:44:41 -0700 2008
1
2
3
" line/char info in lower right of screen
:set ruler
 
Gravatar
Mon Aug 18 11:37:42 -0700 2008
1
2
3
" Make ',e' (in normal mode) give a prompt for opening files
" in the same dir as the current buffer's file.
if has("unix")