Public Gists by bridgeutopia

Gravatar
Tue Nov 17 15:14:15 -0800 2009
1
2
3
  def teaser(text, wordcount, omission)
    text.split[0..(wordcount-1)].join(" ") + (text.split.size > wordcount ? " " + omission : "")
  end
Gravatar
Sat Nov 07 22:42:56 -0800 2009
1
2
3
desc "Load production data into development database"
task :import_remote_db do
 
Gravatar
Wed Oct 28 10:54:06 -0700 2009
1
2
3
unless params[:golf_club_photo].nil?
         Notifier.deliver_gc_images_uploaded(admin_gcsf_details_url('basic','golf_club_photo',@full_gc),@golf_club_photo, golf_club_show_url('home',@full_gc))
end
gist: 218142 jQuery Cycle - Display Load...
Gravatar
Sun Oct 25 10:29:58 -0700 2009
1
2
3
  $(document).ready(function($) {
       $('#gallery-slideshow, .gallery-controls').hide();
       $('#loading').show();
Gravatar
Sun Jul 26 00:32:43 -0700 2009
1
2
3
user mauricio users; #this should be the username and the main group of the user that's going to deploy the application
worker_processes 4;
 
Gravatar
Sun Jun 21 07:35:57 -0700 2009
1
2
3
require "openssl"
require "net/smtp"