Public Gists by rrt

Gravatar
Sat Nov 21 19:11:46 -0800 2009
1
2
3
#!/usr/bin/env ruby
 
##
Gravatar
Tue Feb 24 12:57:30 -0800 2009
1
2
3
// round corners (base)
= border-radius(!radius = 10px)
  -moz-border-radius= !radius
Gravatar
Tue Feb 24 12:57:17 -0800 2009
1
2
3
// round corners (base)
= round-corners(!radius = 10)
  -moz-border-radius: #{!radius}px
Gravatar
Mon Feb 09 00:07:18 -0800 2009
1
2
3
require 'sass'
 
module Sass::Script::Functions
Gravatar
Sat Feb 07 14:17:28 -0800 2009
1
2
3
module Sass::Script
  module Functions
    # substitue text in a string
Gravatar
Thu Feb 05 16:09:33 -0800 2009
1
2
3
require 'rubygems'
require 'sass'
 
Gravatar
Wed Jan 28 00:32:00 -0800 2009
1
2
3
# Borrowed from Rubinius
 
require 'readline'
Gravatar
Sat Jan 17 23:43:25 -0800 2009
1
2
3
require 'rubygems'
require 'rest_client'
require 'yaml'
Gravatar
Sat Jan 17 23:40:00 -0800 2009
1
2
3
$("div"); // all div elements
$("span.moveable") // all spans with the moveable class
$("em,strong"); // all emphasized and strong tags
Gravatar
Sat Jan 17 22:32:30 -0800 2009
1
2
3
# Rails template for a basic project assuming the following:
#
# - SQLite for DB
Gravatar
Sat Jan 17 22:30:02 -0800 2009
1
2
3
#!/usr/bin/env ruby
require 'rubygems'
require 'midiator'
Gravatar
Fri Jan 16 13:08:45 -0800 2009
1
2
3
def confirm_intent(prompt, answer)
  puts prompt
  users_answer = Capistrano::CLI.ui.ask("(type #{answer} to continue)? ") { |p| p.echo == true }