Public Gists by michaelklishin

Gravatar
Thu Dec 25 09:46:27 -0800 2008
1
2
3
class Users < Application
  include TransitStation::AutoRendering
  
Gravatar
Wed Dec 24 13:28:03 -0800 2008
1
2
3
match "/:lang", :lang => /\w{2,2}/ do
  resources :projects
end
Gravatar
Wed Dec 24 12:55:01 -0800 2008
1
2
3
* Roadmap
 
** Get Merb hackers on board
Gravatar
Wed Dec 24 12:33:46 -0800 2008
1
2
3
#
# Imagine a few slices...
#
Gravatar
Wed Dec 24 11:46:01 -0800 2008
1
2
3
h2. Rails 2.x behavior
 
 * Explicit rendering sets internal variables and returns nothing
Gravatar
Wed Dec 17 13:41:04 -0800 2008
1
2
3
module CommonFinder
  def common_finder(resource, options = {})
    ivar = options[:ivar] || "@#{resource}"
Gravatar
Sat Nov 29 05:28:49 -0800 2008
1
2
3
irb
>> RUBY_VERSION
=> "1.8.6"
Gravatar
Fri Nov 28 11:33:10 -0800 2008
1
2
3
#!/usr/bin/env python
 
from os import path, system, waitpid
Gravatar
Sun Nov 16 11:22:54 -0800 2008
1
2
3
h2. Goal
 
The goal here is to create a flexible stand alone
Gravatar
Sun Nov 16 10:05:21 -0800 2008
1
2
3
1)
'When generating URLs, a route with custom identifiers should use the identifier for the object' FAILED
expected: "/awesome/users/carl",
Gravatar
Sun Nov 16 02:22:22 -0800 2008
1
2
3
        Generates bytecode for if expression.
 
        To understand how it works consider the
Gravatar
Wed Nov 12 20:30:53 -0800 2008
1
2
3
= merb-next experiment and it's woes
 
antares tries to apply patches and pull request from LH/GitHub
gist: 23944 Not AS3 lexer really, wrapp...
Gravatar
Tue Nov 11 11:34:51 -0800 2008
1
2
3
require File.dirname(__FILE__) + "/spec_helper"
 
def lexes(input, lexems)
Gravatar
Tue Nov 11 04:27:24 -0800 2008
1
2
3
  def load_dependency(name, *ver, &blk)
    dep = name.is_a?(Gem::Dependency) ? name : track_dependency(name, *ver, &blk)
    Merb.logger.verbose!("activating gem '#{dep.name}' ...")
Gravatar
Mon Nov 10 10:55:26 -0800 2008
1
2
3
From 055a0346973fdc8727285dab5c554d08d8b0953e Mon Sep 17 00:00:00 2001
From: Michael S. Klishin <michael@novemberain.com>
Date: Wed, 5 Nov 2008 14:38:01 +0200
Gravatar
Sat Nov 08 17:26:31 -0800 2008
1
2
3
Symbol Table is used to store and
retrieve Symbol instances. The method of interest
is SymbolTable::lookup that takes
Gravatar
Sat Nov 08 16:56:29 -0800 2008
1
2
3
Symbol table used to store and
retrieve Symbol instances. The most
used method is SymbolTable::lookup that takes
Gravatar
Sat Nov 08 14:21:25 -0800 2008
1
2
3
BuildReport.fixture(:successful_merb_build_on_osx) {{
  :cpu => "i686",
  :os => "darwin9.4.0",
Gravatar
Tue Nov 04 14:21:13 -0800 2008
1
2
3
resources :attachments, :controller => "page_attachments" do
  member :download, :method => :get
end
Gravatar
Tue Nov 04 02:46:26 -0800 2008
1
2
3
/* Rubyesque mixins FTW */
/* Then just do include "../mixins/AggregatesEventDispatcher.as" */
private var dispatcher: IEventDispatcher = new EventDispatcher();