Public Gists by dyoder

Gravatar
Thu Nov 05 23:32:08 -0800 2009
1
2
3
require 'waves/foundations/compact'
 
module Foo
Gravatar
Sun Oct 04 14:50:04 -0700 2009
1
2
3
DELIMITERS = [ ['(',')'], ['{','}'], ['[',']'] ]
def match?( string, stack = [] )
  return true if string.empty? and stack.empty?
Gravatar
Tue Sep 01 00:04:26 -0700 2009
1
2
3
book (
  title: Why Pez Is Better Than You're Mom
  author: Lonnie Tran
Gravatar
Fri Aug 14 16:56:35 -0700 2009
1
2
3
module MetaHelper
  
  # include this anywhere you want to refer to the model, controller, etc., generically
Gravatar
Wed Jul 29 14:50:46 -0700 2009
1
2
3
new function(_) { // create the closure
  // create the package object
  var shapes = new base2.Package(this, {
Gravatar
Mon Jun 29 16:15:57 -0700 2009
1
2
3
broadway:SharesPost danyoder$ git checkout controls
Switched to branch 'controls'
broadway:SharesPost danyoder$ git merge l2
Gravatar
Sat Jun 13 13:14:39 -0700 2009
1
2
3
class CompanySweeper < ActionController::Caching::Sweeper
 
  observe Company, Comment, Document, Order, Trade
Gravatar
Sat Jun 13 11:39:10 -0700 2009
1
2
3
  desc "Stop agents from running background tasks"
  task :stop do
    if File.exist?( pidfile )
Gravatar
Sat May 30 07:46:00 -0700 2009
1
2
3
class Blog
 
  include Waves::Resource::Server
Gravatar
Fri May 29 15:54:47 -0700 2009
1
2
3
representation "text/html", "application/xhtml+xml" do
  transitions do
    view "Edit page", Site/Page/URL, "application/vnd.com.example.wiki.page.editable"
Gravatar
Sun May 10 17:29:03 -0700 2009
1
2
3
module Pages
  module Resources
    class Default
Gravatar
Sun May 10 17:26:42 -0700 2009
1
2
3
module HelloWorld
 
  include Waves::Foundations::Compact
Gravatar
Sun May 10 17:06:27 -0700 2009
1
2
3
module MyApp
  module Configurations
    class Production < Development
Gravatar
Sun May 10 15:53:04 -0700 2009
1
2
3
module HelloWorld
 
  include Waves::Foundations::Compact
Gravatar
Sat Apr 25 16:11:58 -0700 2009
1
2
3
require 'rubygems'
require 'autocode'
 
gist: 22784 dog.rb
Gravatar
Thu Nov 06 21:24:55 -0800 2008
1
2
3
class Dog
 
  attr_accessor :request
Gravatar
Thu Nov 06 15:02:12 -0800 2008
1
2
3
module Waves
  module Foundations
    module Compact
Gravatar
Mon Oct 13 14:59:43 -0700 2008
1
2
3
module Waves
  
  module Servers
Gravatar
Thu Oct 09 21:21:22 -0700 2008
1
2
3
# goes in start method for the server
 
if m = Waves.config.monitor
Gravatar
Thu Oct 09 20:00:16 -0700 2008
1
2
3
#!/usr/bin/env ruby
 
class BufferedString