Public Gists by bahuvrihi

gist: 242177 CLIPSJNI via JRuby
Gravatar
Tue Nov 24 12:23:33 -0800 2009
1
2
3
# 1) Install JRuby
# http://jruby.org/
 
gist: 242104 A Simple FFI example on OS X
Gravatar
Tue Nov 24 10:52:16 -0800 2009
1
2
3
#"" An FFI example on Mac 10.5.8
#
# % gcc --version
gist: 227373 A session wrapper for curb
Gravatar
Thu Nov 05 12:57:22 -0800 2009
1
2
3
require 'curb'
 
class Session
gist: 200088 Simple Forms in Textile
Gravatar
Fri Oct 02 13:25:05 -0700 2009
1
2
3
require 'redcloth'
 
module SimpleForm
gist: 197247 CC Gemfile and Rakefile Pro...
Gravatar
Tue Sep 29 12:56:54 -0700 2009
1
2
3
spec = eval(File.read('project.gemspec'))
 
gem "#{spec.name}", "#{spec.version}"
gist: 194470 Failed models for a prompt ...
Gravatar
Sat Sep 26 15:04:17 -0700 2009
1
2
3
      def prompt_test(cmd, script, prompt)
        cmd, leader = cmd.lstrip.split(/^/, 2)
        
gist: 192095 XSLT formatter in javascript
Gravatar
Wed Sep 23 09:19:32 -0700 2009
1
2
3
// Adapted from: http://www.w3schools.com/xsl/xsl_client.asp
Xslt: {
  
gist: 191179 Custom RedCloth formatting
Gravatar
Tue Sep 22 09:00:14 -0700 2009
1
2
3
require 'rubygems'
require 'redcloth'
 
gist: 189234 A basic RESTful Sinatra app...
Gravatar
Fri Sep 18 12:22:19 -0700 2009
1
2
3
require 'rubygems'
require 'erb'
require 'sinatra/base'
gist: 181961 A DSL pattern supporting in...
Gravatar
Sun Sep 06 13:12:34 -0700 2009
1
2
3
# Models a DSL that can be included into a class or module while
# supporting inheritance where parents can dynamically modify
# children (much as when you add a method to a parent class).
gist: 171473 A Readline example
Gravatar
Thu Aug 20 15:34:17 -0700 2009
1
2
3
require 'readline'
 
Signal.trap('INT', 'SIG_IGN') { puts "hello" }
gist: 170855 Array.hash error for Bignum
Gravatar
Wed Aug 19 22:22:21 -0700 2009
1
2
3
require 'rubygems'
 
# Array.hash for objects do not produce a Fixnum hash will blow up. This issue
gist: 168116 Danger of accessing constan...
Gravatar
Fri Aug 14 14:30:29 -0700 2009
1
2
3
# This illustrates the danger of accessing the constant name
# of a child class during inheritance (ex by to_s). The
# constant name will not be set at the time of inheritance
gist: 132915 20090619 Peptide Mass Calcu...
Gravatar
Fri Jun 19 15:09:20 -0700 2009
1
2
3
require 'ms/in_silico/digester'
require 'ms/fasta/archive'
require 'molecules'
gist: 132792 20090619 ECM data extraction
Gravatar
Fri Jun 19 11:57:29 -0700 2009
1
2
3
data
results
config
gist: 131720 A stand-alone Task executable
Gravatar
Wed Jun 17 22:10:50 -0700 2009
1
2
3
#! /usr/bin/env ruby
 
require 'rubygems'
gist: 118406 add a domain type to YAML
Gravatar
Tue May 26 18:22:30 -0700 2009
1
2
3
# Demonstrates how to add a domain type to YAML. Note
# that the namespace and year have to be as written...
# "tap.rubyforge.org,2009" doesn't work, for instance.
gist: 112965 ruby core benchmarks
Gravatar
Sun May 17 01:39:51 -0700 2009
1
2
3
require 'benchmark'
 
# Benchmarks for various array operations.
gist: 112562 a jquery issue in firefox e...
Gravatar
Fri May 15 20:54:12 -0700 2009
1
2
3
== JQuery Extension
 
Illustrates that something in jquery > 1.2.6 causes toolbars in other
gist: 112241 rack utils optimizations
Gravatar
Fri May 15 07:57:11 -0700 2009
1
2
3
require 'benchmark'
require 'rack'