Public Gists by rlivsey

Gravatar
Thu Nov 26 02:43:01 -0800 2009
1
2
3
class ThingsController < ApplicationController
  def index
    puts defined?(@something)
Gravatar
Mon Nov 02 14:07:16 -0800 2009
1
2
3
import java.io.*;
import com.lowagie.text.DocumentException;
import org.xhtmlrenderer.pdf.ITextRenderer;
Gravatar
Mon Oct 26 08:34:07 -0700 2009
1
2
3
AGP::call_agp("VerifyAccountAvailabilityService", {
  :username => username,
  :email => "test@test.org",
Gravatar
Tue Sep 22 05:55:56 -0700 2009
1
2
3
document.observe('dom:loaded', function(){
  $$('select.changer').each(function(select){
    select.observe('change', function(){
Gravatar
Tue Sep 22 05:55:47 -0700 2009
1
2
3
document.observe('dom:loaded', function(){
  $$('select.changer').each(function(select){
    select.observe('change', function(){
Gravatar
Sun Sep 13 15:03:06 -0700 2009
1
2
3
# returns duplicates, essentially the same as the datamapper query
SELECT books.*
FROM books
gist: 140359 Simplified code to show wha...
Gravatar
Fri Jul 03 15:38:35 -0700 2009
1
2
3
# broked
def render_pdf(html, name)
  
Gravatar
Fri Jul 03 15:12:25 -0700 2009
1
2
3
irb(main):001:0> name = "réunion-journalière"
=> "r\303\251union-journali\303\250re"
irb(main):002:0> File.open(name, 'w'){|f| f.write 'x' }
gist: 140048 git post-receive hook to tr...
Gravatar
Fri Jul 03 03:35:37 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
while (input = STDIN.read) != ''
gist: 135147 useless comments
Gravatar
Wed Jun 24 03:40:59 -0700 2009
1
2
3
    # Setting play_mode equals params mode if it exists and is equals fun or real
    play_mode = params[:mode] if params[:mode] and ['fun', 'real'].include? params[:mode]
 
gist: 134167 Rake task to wipe CSS files...
Gravatar
Mon Jun 22 13:29:05 -0700 2009
1
2
3
namespace :mb do
  namespace :sass do
    
Gravatar
Mon Jun 01 07:06:26 -0700 2009
1
2
3
~/Sites/fortaleza[master]$ git checkout vcgames-list-all-games-page
error: Untracked working tree file 'public/flash/games/vcgames/PinBall/PinBallLogo.swf' would be overwritten by merge.
~/Sites/fortaleza[master]$ rm public/flash/games/vcgames/PinBall/PinBallLogo.swf
Gravatar
Mon Dec 15 07:43:41 -0800 2008
1
2
3
$('id_of_form').observe('submit', function(e){
  var form = e.element();