Public Gists by jameskilton

Gravatar
Tue Nov 17 07:52:57 -0800 2009
1
2
3
(gdb) run start_game.rb
Starting program: /usr/bin/ruby start_game.rb
[Thread debugging using libthread_db enabled]
Gravatar
Fri Nov 13 11:34:51 -0800 2009
1
2
3
require 'mkmf-rice'
 
create_makefile('virtual')
Gravatar
Sun Nov 01 13:46:25 -0800 2009
1
2
3
Stack trace from gdb:
 
Class:construct .
Gravatar
Thu Oct 22 07:59:52 -0700 2009
1
2
3
Winners:
James Kilton, Phouchg, nettix
Losers:
Gravatar
Thu Oct 15 07:50:58 -0700 2009
1
2
3
# Normal
def method
  ret_val = "something"
Gravatar
Mon Oct 05 11:28:43 -0700 2009
1
2
3
// Wrapping this method:
  int global_do(int x, int y = 3, int z = 10) {
    return x * y * z;
Gravatar
Tue Sep 15 12:20:36 -0700 2009
1
2
3
jroelofs@maude:~$ gem search -r integrity
 
*** REMOTE GEMS ***
Gravatar
Tue Sep 01 07:26:31 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
require 'irb/completion'
Gravatar
Thu Aug 06 11:15:55 -0700 2009
1
2
3
str1 = "this is a pretty \
cool way of going about \
makeing really long
Gravatar
Thu Jul 02 08:54:46 -0700 2009
1
2
3
irb(main):005:0> var = 14
=> 14
irb(main):006:0> b1 = proc {|var| 10 * var }
Gravatar
Tue Jun 30 10:34:07 -0700 2009
1
2
3
#include <iostream>
 
using namespace std;
Gravatar
Wed Jun 03 10:37:42 -0700 2009
1
2
3
import flash.system.Security;
...
Security.loadPolicyFile("xmlsocket://" + securityServiceHost + ":" + securityServicePort);
Gravatar
Wed Jun 03 10:32:07 -0700 2009
1
2
3
#!/usr/bin/perl -w
#
# Simple Flash Socket Policy Server
Gravatar
Wed May 27 07:37:51 -0700 2009
1
2
3
roelofs@trillian ~ $ multiruby -e "puts({}.hash == {}.hash)"
 
VERSION = 1.8.6-p368
Gravatar
Tue May 19 12:50:34 -0700 2009
1
2
3
# david_koontz hkhalid: here's a practice Ruby problem,
# given the Array [4, 53, 27, 81, 90]
# return all elements that are odd
Gravatar
Mon Apr 27 11:11:59 -0700 2009
1
2
3
class A
  def method_missing(*args)
    puts "Missing in A"
Gravatar
Mon Mar 30 07:11:06 -0700 2009
1
2
3
%%
%% Ad-hoc hot-code swap upgrade definitions file. Unlike .appup and .relup,
%% this is a pure Erlang file. Use this module to define how an upgrade is supposed
Gravatar
Mon Mar 23 13:31:46 -0700 2009
1
2
3
require 'benchmark'
require 'rubygems'
require 'publisher'
Gravatar
Fri Feb 27 13:27:48 -0800 2009
1
2
3
>> "#1123:somethinghere" =~ /(#[\d.]+)(?:\(.+?\))?/
=> 0
>> $1
Gravatar
Tue Feb 24 10:05:53 -0800 2009
1
2
3
diff --git a/lib/gamebox/template_app/crate_boot.c b/lib/gamebox/template_app/crate_boot.c
index ebb0c76..0126574 100644
--- a/lib/gamebox/template_app/crate_boot.c