Public Gists by collin

Gravatar
Tue Nov 17 10:11:44 -0800 2009
1
2
3
require 'pathname'
require 'zip/zip'
Gravatar
Fri Nov 13 09:58:00 -0800 2009
1
2
3
print_env = Proc.new do |env|
  body = ""
  body += "<dl>"
Gravatar
Thu Oct 08 14:52:08 -0700 2009
1
2
3
    before :get_connection, :except => [:open]
 
  private
Gravatar
Thu Sep 24 13:14:11 -0700 2009
1
2
3
  before_filter :discover_admin
  before_filter :has_action?
  
Gravatar
Thu Sep 24 11:31:42 -0700 2009
1
2
3
class AdminAssistantsController
  # 50/50 as to whether this will work the way I think it will.
  # I think it should result in a route like this: /:scope/admin/:id/edit/ (etc.)
Gravatar
Mon Sep 14 17:26:26 -0700 2009
1
2
3
diff --git a/lib/thin/connection.rb b/lib/thin/connection.rb
index 7ead989..88efa6e 100644
--- a/lib/thin/connection.rb
Gravatar
Tue Aug 18 05:24:16 -0700 2009
1
2
3
module DMAuthlogic
  def self.included(klass)
    klass.send :eval do
Gravatar
Mon Aug 10 18:08:38 -0700 2009
1
2
3
map "/tcp",
  :method => 'post',
  :to => TCPResourcesController.action(:create)
Gravatar
Thu Jul 23 11:39:32 -0700 2009
1
2
3
jetpack.future.import("pageMods");
 
function callback(document) {
Gravatar
Thu Jul 16 03:49:33 -0700 2009
1
2
3
proxy_pass '/blog/', 'http://whattech_wp/index.php/' do |doc|
  @staticmatic = StaticMatic::Base.new(File.dirname(__FILE__))
  doc = Hpricot(doc)
Gravatar
Thu Jul 16 03:47:05 -0700 2009
1
2
3
class Rack::Builder
  def proxy_pass target, source, &block
    run Rack::ProxyPass.new(target, source, &block)
Gravatar
Thu Jul 16 03:44:21 -0700 2009
1
2
3
class Rack::ProxyPass
  def initialize src, target, &block
    @src, @target, @block = src, target, (block || lambda {|echo|echo})
Gravatar
Thu Jul 16 03:35:22 -0700 2009
1
2
3
class Rack::Request
  def forward_to target, &block
    curl = Curl::Easy.new(target)
Gravatar
Wed Jul 15 22:03:32 -0700 2009
1
2
3
# This is really boring. Only shown for completeness.
# This loads up the application layout for the staticmatic app
# And renders it's layout.
Gravatar
Sun Jul 12 01:16:38 -0700 2009
1
2
3
[Videos]
Intentional Software Demo: http://msdn.microsoft.com/en-us/oslo/dd727740.aspx
Older Intentional Software Demo: http://www.youtube.com/watch?v=tSnnfUj1XCQ
Gravatar
Tue Jun 23 23:34:23 -0700 2009
1
2
3
module Orbited
  module Transport
    Map = {
Gravatar
Mon Jun 08 13:43:49 -0700 2009
1
<button class="create" data-implied="{\"milestone[project_id]\":2}" data-uri="milestone/create">Create New Milestone</button>
Gravatar
Sun Jun 07 08:20:10 -0700 2009
1
2
3
          def before_password_verification method_sym, options={}, &block
            puts "Called before_password_verification: #{method_sym}, #{options.inspect}"
            if block_given?
Gravatar
Sun Jun 07 08:13:09 -0700 2009
1
2
3
require 'authlogic'
require 'metaid'
class User
Gravatar
Tue Jun 02 02:36:44 -0700 2009
1
Element.first(:node_type => :body, :id.starts_with => 'project').all(:node_type => :input, :id.ends_with => 'at')