Public Gists by lodestone

Gravatar
Tue Oct 06 10:49:36 -0700 2009
1
2
3
puts "Starting Premium Summary Update at #{start_time=Time.now}"
PremiumSummary.default_advisors.each_with_index do |advisor,idx|
  puts "(((((( Advisor:#{idx+1} of #{PremiumSummary.default_advisors.count} )))))))"
Gravatar
Tue Sep 22 12:31:36 -0700 2009
1
2
3
function project_list {
  for n in ~/projects/*
  do
Gravatar
Sun Sep 20 13:27:13 -0700 2009
1
2
3
module ShouldaContextExtensions
  def self.included(base)
    base.class_eval do
Gravatar
Mon Jun 08 09:50:02 -0700 2009
1
2
3
# memcached default config file
# 2003 - Jay Bonci <jaybonci@debian.org>
# This configuration file is read by the start-memcached script provided as
Gravatar
Sat May 02 14:34:41 -0700 2009
1
2
3
/ small.data_status
/ / :float right
/ :position absolute
Gravatar
Sat May 02 14:03:48 -0700 2009
1
2
3
/ small.data_status
/ / :float right
/ :position absolute
Gravatar
Sat May 02 13:52:52 -0700 2009
1
2
3
/ small.data_status
/ / :float right
/ :position absolute
gist: 103144 broken.html.haml
Gravatar
Tue Apr 28 06:21:59 -0700 2009
1
2
3
- if RAILS_ENV == "production"
%script{ :type => "text/javascript" }
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
Gravatar
Thu Mar 19 07:43:33 -0700 2009
1
2
3
#!/bin/bash
# Inspired by http://blog.fiveruns.com/2008/9/24/rails-automation-at-slicehost
 
Gravatar
Thu Mar 19 07:42:21 -0700 2009
1
2
3
#!/bin/bash
# Inspired by http://blog.fiveruns.com/2008/9/24/rails-automation-at-slicehost
 
Gravatar
Tue Mar 10 09:49:42 -0700 2009
1
2
3
array = %w[apple banana carrot]
 
deleted = array.inject([]) do |deleted, food|
Gravatar
Tue Mar 10 09:49:09 -0700 2009
1
2
3
array = %w[apple banana carrot]
 
deleted = array.inject([]) do |deleted, food|
Gravatar
Tue Mar 03 11:05:17 -0800 2009
1
2
3
require 'test/unit'
 
 
Gravatar
Mon Feb 16 10:20:28 -0800 2009
1
2
3
## Rails development best practices
# An #RMM alternative, open and collaborative set of development practices we can adhere to.
 
Gravatar
Fri Jan 30 11:01:36 -0800 2009
1
2
3
  def advisor
    @license = 'LTAM663SPJLO.945CWK-2XOI1X0-7L'
    advisor = Advisor.find(params[:id])
Gravatar
Tue Jan 27 08:17:51 -0800 2009
1
 ls -1 *.JPG |xargs -IZZ convert -resize 1600x1600 "ZZ" resized/ZZ
Gravatar
Fri Jan 23 11:58:25 -0800 2009
1
sprintf(" %20.20s", data)
Gravatar
Fri Jan 23 08:54:36 -0800 2009
1
 puts %x[gem list].split("\n").collect{|gem| gem[/\S+/]}.collect{|gem| "sudo gem install #{gem}" }