Skip to content

Instantly share code, notes, and snippets.

/*
TypeError: can't convert nil into String
Backtrace:
/Users/karl/.rvm/gems/ruby-1.9.1-p378/gems/haml-2.2.17/lib/sass/files.rb:94:in `join'
/Users/karl/.rvm/gems/ruby-1.9.1-p378/gems/haml-2.2.17/lib/sass/files.rb:94:in `sassc_filename'
/Users/karl/.rvm/gems/ruby-1.9.1-p378/gems/haml-2.2.17/lib/sass/files.rb:23:in `tree_for'
/Users/karl/.rvm/gems/ruby-1.9.1-p378/gems/haml-2.2.17/lib/sass/plugin.rb:96:in `update_stylesheet'
/Users/karl/.rvm/gems/ruby-1.9.1-p378/gems/haml-2.2.17/lib/sass/plugin.rb:82:in `block (2 levels) in update_stylesheets'
/Users/karl/.rvm/gems/ruby-1.9.1-p378/gems/haml-2.2.17/lib/sass/plugin.rb:77:in `each'
rails compass_test
cd compass_test/
rake rails:template LOCATION=http://compass-style.org/rails/installer
script/generate nifty_scaffold building name:string --haml
script/generate nifty_layout --haml
rake db:migrate
-- added stylesheet_link_tag 'compiled/screen.css' to
application.html.haml
script/server
# require 'rubygems'
require 'mysql'
require 'time'
puts "[#{File.basename(__FILE__)}] running..."
time_in = Time.now
time_in_db = time_in.strftime("%Y-%m-%d %H:%M:%S")
puts "start time: " << time_in.strftime("%Y-%m-%d %H:%M:%S")
Sub main(params)
Set WshShell = CreateObject( "WScript.Shell" )
WshShell.Run("ruby C:\PROGRA~1\homeseer\scripts\ThermoLogger.rb " & params )
End Sub
#!/usr/bin/perl
use ElkM1::Control;
use Switch;
use Log::Log4perl qw(:easy);
use HTTP::Date;
use strict;
use File::Basename;
use File::Spec;