Public Gists by pope

Gravatar
Mon Oct 19 16:48:09 -0700 2009
1
2
3
/**
 * A simple preforking echo server in C.
 *
Gravatar
Thu Oct 15 10:12:15 -0700 2009
1
2
3
require 'rack'
 
module Rack
Gravatar
Mon Oct 12 15:27:24 -0700 2009
1
2
3
diff --git a/tasks/gem.rake b/tasks/gem.rake
index 1f72241..94c3c6a 100644
--- a/tasks/gem.rake
Gravatar
Tue Oct 06 14:49:06 -0700 2009
1
2
3
<div>
  <ul>
    <li>One</li>
Gravatar
Mon Aug 31 11:12:52 -0700 2009
1
2
3
def foo
  puts "I was called"
end
Gravatar
Thu Aug 20 13:58:05 -0700 2009
1
2
3
# requires "isightcapture" in the cwd (http://www.intergalactic.de/pages/iSight.html)
 
require "eventmachine"
Gravatar
Tue Aug 18 21:12:35 -0700 2009
1
2
3
~/Documents/code/ruby >ab -c 10 -n 100 http://localhost:3000/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Gravatar
Tue Aug 18 20:58:08 -0700 2009
1
2
3
require "eventmachine"
 
# Load this script up with thin
Gravatar
Tue Aug 18 09:33:26 -0700 2009
1
2
3
=begin
host_ip_info.rb (http://gist.github.com/169374)
 
Gravatar
Mon Jul 27 06:06:36 -0700 2009
1
2
3
############################################################
# Default Networking Configuration File
#
Gravatar
Mon Jul 20 11:57:34 -0700 2009
1
2
3
#!/usr/bin/env ruby
#
# A hook script to verify that only syntactically valid ruby code is commited.
Gravatar
Wed Jul 08 12:17:20 -0700 2009
1
2
3
# $ tweet Hi mom!
#
# Put this in ~/.bashrc or wherever.
Gravatar
Wed Jul 08 12:16:54 -0700 2009
1
2
3
# $ tweet Hi mom!
#
# Put this in ~/.bashrc or wherever.
Gravatar
Wed Jul 08 07:02:17 -0700 2009
1
2
3
def reverse_bit_iterator(val):
    while val > 0:
        yield val & 0xff
Gravatar
Thu Apr 30 19:58:09 -0700 2009
1
2
3
require 'time'
 
class PeriodicExecutor
Gravatar
Thu Apr 30 17:53:19 -0700 2009
1
2
3
import time
import bisect
 
Gravatar
Mon Mar 23 20:48:37 -0700 2009
1
2
3
(mp) C:\Documents and Settings\pope\My Documents\mp\src\mp>python bin\mp
Traceback (most recent call last):
  File "<string>", line 1, in <module>
Gravatar
Mon Mar 23 20:35:56 -0700 2009
1
2
3
#!/usr/bin/env python
 
import mp
Gravatar
Thu Mar 05 19:02:25 -0800 2009
1
2
3
def repeater(str):
    return str + str
 
Gravatar
Wed Mar 04 12:41:03 -0800 2009
1
2
3
import os
import gzip
import zlib