Public Gists by benaskins

Gravatar
Tue Oct 27 20:11:56 -0700 2009
1
2
3
function GAImporter() {
  this.busy = false;
  this.poller = setInterval(this.pollJob, 5000);
Gravatar
Sun Sep 13 22:14:30 -0700 2009
1
2
3
TypeError in Admin/stylesheetsController#create
 
can't modify frozen hash
Gravatar
Sun Aug 23 18:55:36 -0700 2009
1
2
3
stab.filter.modulate & stab.delay.on
(0..119).each do |bar|
  (1..16).each do |measure|
Gravatar
Wed Jul 29 22:43:04 -0700 2009
1
2
3
Rails 2.3.3
===========
 
Gravatar
Wed Jul 29 22:14:37 -0700 2009
1
2
3
class ApplicationController < ActionController::Base
  before_filter :set_current_site
  
Gravatar
Thu Jul 02 16:45:46 -0700 2009
1
2
3
    desc "Pre-fetch data from the webservice to avoid calling in line"
    task :prefetch => [:environment, :preload_resources] do
      UserLocality.all.collect { |ul| ul.locality }.uniq.each do |locality|
Gravatar
Thu Jul 02 16:33:53 -0700 2009
1
2
3
    %li
      %h3
        %fb:userlink{:uid => friend.fb_user_id}
Gravatar
Mon Jun 22 18:36:22 -0700 2009
1
2
3
namespace :facebooker do
  
  tunnel_ns = namespace :tunnel do
Gravatar
Thu Jun 18 17:57:15 -0700 2009
1
2
3
[7, 16] in /home/weatherzone/apps/wzfb-staging/releases/20090619001435/app/controllers/weather_controller.rb
   7 :days => 7
   8 }.freeze
Gravatar
Thu Jun 18 02:34:43 -0700 2009
1
2
3
~ $ gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.1
Gravatar
Thu Jun 18 02:29:48 -0700 2009
1
2
3
~ $ gem sources -c
*** Removed specs cache ***
*** Removed user source cache ***
Gravatar
Thu Jun 18 02:22:47 -0700 2009
1
2
3
~ $ sudo gem uninstall passenger
Password:
Remove executables:
Gravatar
Thu Jun 18 02:09:57 -0700 2009
1
2
3
~ $ gem list passenger
 
*** LOCAL GEMS ***
Gravatar
Wed Jun 17 22:57:19 -0700 2009
1
2
3
  WEATHER_FINDER_OPTIONS = {
    :include => [:forecasts, :conditions, :point_forecasts, :uv_index, :sun, :moon, :warnings, :district_forecasts, :marine_forecast, :moon_phases, :news_items,
                 :historical_observations, :daily_observations, :position, :almanac, :radar_animator, :radar_still, :satellite_animator, :satellite_still, :links],
Gravatar
Wed May 20 18:52:06 -0700 2009
1
2
3
module Locality::Search
  
  def self.included(base)
Gravatar
Tue May 19 21:11:36 -0700 2009
1
2
3
    postcodes = FasterCSV.read(data_source_for("postcodes.csv"))
    postcodes.each do |(post_code, name, state_name, _, _, _, _, _, _, category)|
      if category.squish == "Delivery Area"
Gravatar
Sun May 10 18:39:36 -0700 2009
1
2
3
<?xml version="1.0" encoding="iso-8859-1" ?>
<data>
  <metadata>
Gravatar
Wed May 06 04:45:19 -0700 2009
1
2
3
export dev=~/Development
export cp=$dev/client_projects
 
Gravatar
Wed Apr 29 17:40:49 -0700 2009
1
2
3
    postcodes = FasterCSV.read(data_source_for("postcodes.csv"))
    postcodes.each do |(post_code, name, state_name, _, _, _, _, _, _, category)|
      if category.squish == "Delivery Area"
Gravatar
Thu Apr 23 19:46:31 -0700 2009
1
ssh-dss AAAAB3NzaC1kc3MAAACBAPokVOhBB0AeBGqbV4ue11dwPAMQfN0qSYZCdd3VwqWn2gG9sTLrLGv8JzZcCS800+BUm++dPO7byQARK9EgsNkQuI0IS9f+6SOVgYpSSPm1fgiWRBSqLoiWjbJ4zTrA1cFq17VJbpT2euWgoxx5kK8DbxxFVdJz+zO+yk7CAd3TAAAAFQDfYTTSHFwRG36sKnfS2/EIkwp10wAAAIEAqmb8WyCe3J9q/zPPzHf3x4YkYm8xClJWMoWHs5AxIpn0gcg7sHI1cT8PvMUY70xfGzMubWuT6g5+mk2mAQCt9qaBOicR7FFaV72x/pYDuWJafUzjpuxRUharFCuKqCLeIKyPxnbs8g0XiSXNP6SlghTcBMBtB/RWxSgfxIWhS70AAACAXN8XInxk75Wu0wpUQ/sjslRfejvKIMbOvgI4vryNnBjx+xjGN0jB8yLZ6Fl/eS/Oj1qMiCLsvc7Gvbxtk/eRbIKd/vZQ4Fow9GWpGQ3p/Ye/jLJTLinOUUWfP/1JFr4VLrElXg4h0u6ag1gaDJXk4XWBuuoXBdzFCaG29EvRYsg= benj@silversun.local