Skip to content

Instantly share code, notes, and snippets.

View seanhandley's full-sized avatar
🧀
Eating cheese

Sean Handley seanhandley

🧀
Eating cheese
View GitHub Profile
def random_tip
@tip = Tip.random_tip
respond_to do |format|
format.js { render :json => @tip, :callback => params[:callback] }
end
end
mysql> select * from obscenity;
+----------------+
| phrase |
+----------------+
| arse |
| arsehole |
| asshole |
| autopooch |
| autopooched |
| bastard |
15:22 ~/Code/watched.it 1.9.2@watchedit (master)
$ rake
/Users/sean.handley/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/csv.rb:201: warning: already initialized constant VERSION
/Users/sean.handley/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/csv.rb:863: warning: already initialized constant FieldInfo
/Users/sean.handley/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/csv.rb:866: warning: already initialized constant DateMatcher
/Users/sean.handley/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/csv.rb:869: warning: already initialized constant DateTimeMatcher
/Users/sean.handley/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/csv.rb:874: warning: already initialized constant ConverterEncoding
/Users/sean.handley/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/csv.rb:900: warning: already initialized constant Converters
/Users/sean.handley/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/csv.rb:945: warning: already initialized constant HeaderConverters
/Users/sean.handley/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/csv.rb:968: warning: a
# translate supplier content nodes
# looks horrible, gets it done
require 'google_fish'
class T
class << self
def translate_html_chunks(google, target_lang, translation_chunks)
translated_page = ''
translation_chunks.each do | chunk_to_translate |
What is technology for?
Put simply: technology buys you time. It extends your life. It shortens your journey times. It speeds up arduous tasks. It simplifies the complicated and automates the simple.
Technology buys you time.
If technology is going to improve the human race by buying us more free time then we'd better use that time doing things that make us better, stronger, wiser and happier.
So what will you do with that time? Spend more time in bed? Sit around more? Eat more food? Watch more re-runs of Friends? Smoke more cigarettes? Spend more money? Daydream more? Aspire for more?
** [out :: sandbox4.247] Using capistrano (2.6.0)
** [out :: sandbox4.247]
** [out :: sandbox4.247] /usr/local/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/bundler-1.0.9/lib/bundler/installer.rb:79:in `initialize'
** [out :: sandbox4.247] :
** [out :: sandbox4.247] Permission denied - /var/www/otb_customer_myb_app/shared/bin/cap
** [out :: sandbox4.247] (
** [out :: sandbox4.247] Errno::EACCES
$ ls -l /var/www/otb_customer_myb_app/shared/bin/cap
-rwxr-xr-x 1 otb_jamesc 379 Sep 2 17:24 /var/www/otb_customer_myb_app/shared/bin/cap
10:51 djgraham: balls out of brew
10:52 sean_handley: djgraham: Why were they in there in the first place...?
10:53 djgraham: sean_handley: heh
10:53 djgraham: balls, out of brew
10:53 sean_handley: djgraham: That's not how you teabag man
10:53 djgraham: lolzzz
10:53 eightbitraptor: sean_handley: surely: teabag, man
10:54 sean_handley: eightbitraptor: Best. Superhero. Ever.
10:54 sean_handley: LOOK OUT! HERE COMES TEABAG MAN!
10:55 sean_handley: Teabagging for justice.
Here's to all the REAL MEN out there...Boys play house. Men build homes!!! Boys shack up. Men get married!!! Boys make babies. Men raise children!!! A boy won't raise his own children. A man will raise his and someone else's. Boys invent excuses for failure. Men produce strategies for success!!! Boys look for somebody to take care of them. Men look for someone to take care of!!! Boys seek popularity. Men earn respect by knowing how to give it!!! Boys quit and walk away when things get hard. Men will promise to love you through it all. Re-post in honor of all the men who do the right thing. ♥ ♥ ♥
<%= f.select :status, "<option value='Pending'>Pending</option><option value='Booked'>Booked</option><option value='Closed'>Closed</option>".html_safe, selected: @quote.status %>
class QuotesController < ApplicationController
def new
@quote = Quote.new
build_airports
end
def create
quote = Quote.new(params[:quote])
message, redirection_params, @quote = QuoteFlowControl.build(quote, params[:commit])