Public Gists by speedmax

gist: 122238 H2o filters provide a easy ...
Gravatar
Tue Jun 02 06:37:59 -0700 2009
1
2
3
{{ "Add user"|links_to '/user/add', title: "Create a new user" }}
{{ "Add Discount|links_to '/discount/add', class: "button", style: "float:right" }}
 
Gravatar
Wed May 27 23:24:19 -0700 2009
1
2
3
class Question < AbstractContent
  acts_as_taggable
  
Gravatar
Mon May 25 22:09:30 -0700 2009
1
2
3
Traceback (most recent call last):
  File "/base/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 501, in __call__
    handler.get(*groups)
Gravatar
Wed May 13 06:25:50 -0700 2009
1
2
3
<?
/**
  $r = new ResourceRoute('Person');
Gravatar
Wed May 13 06:23:27 -0700 2009
1
2
3
<?
 
class PagesController extends AppController {
Gravatar
Wed May 13 05:08:49 -0700 2009
1
2
3
class DataObject {
   function __construct(object) {}
   function __set() {}
Gravatar
Wed May 13 03:19:03 -0700 2009
1
2
3
{{ 'Edit' | link_to_edit page }}
 
{{ 'Show me some love' | link_to_view page }}
Gravatar
Tue May 12 07:05:58 -0700 2009
1
2
3
[ /workspace/h2o ] >: ruby benchmark/parser.rb
/
  (.*?)(?:
Gravatar
Wed May 06 23:35:29 -0700 2009
1
2
3
<?php
/*
UPDATES
Gravatar
Sun May 03 21:34:30 -0700 2009
1
2
3
require 'json'
require 'pp'
require 'open-uri'
Gravatar
Sat May 02 21:48:50 -0700 2009
1
2
3
# Nested routes works on ruby 1.8.6, and failed on ruby 1.9
#
# app/controllers/admin/dashboard_controller.rb
gist: 104172 switch between apple's ruby...
Gravatar
Wed Apr 29 17:46:50 -0700 2009
1
2
3
chruby () {
  v=`ruby -e "puts RUBY_VERSION.split('.')[0,2].join('.')"`
  rubyexes=( erb gem irb rake rdoc ri ruby testrb)
gist: 100242 seed data rake task to load...
Gravatar
Wed Apr 22 19:13:59 -0700 2009
1
2
3
require 'FileUtils'
 
namespace :seed do
Gravatar
Mon Mar 30 21:34:58 -0700 2009
1
2
3
<?php
class P extends Object {
    static $something;
Gravatar
Mon Mar 30 21:06:55 -0700 2009
1
2
3
<?php
/*
Backward compat version of get_called_class
gist: 88016 concept for better active_...
Gravatar
Mon Mar 30 19:47:10 -0700 2009
1
2
3
<?php
class Person extends Model {
  var $hasMany = 'hobbies';
Gravatar
Tue Mar 24 22:15:56 -0700 2009
1
2
3
class Openbet_Collection {
    
    static function fromArray($array, $class) {
Gravatar
Tue Mar 24 14:46:06 -0700 2009
1
2
3
<?php
 
/* Blocks */
Gravatar
Sun Mar 22 03:28:47 -0700 2009
1
2
3
<?php
 
function extend($object, $class) {
Gravatar
Sun Mar 15 16:10:34 -0700 2009
1
2
3
function evaluate_block($block, $arguments = array()) {
# implict return
$lines = explode(';', $block);