Skip to content

Instantly share code, notes, and snippets.

View charlesroper's full-sized avatar
🌱

Charles Roper charlesroper

🌱
View GitHub Profile
@charlesroper
charlesroper / gist:306678
Created February 17, 2010 14:56
If we're on Windows, try to load win32console to enable colours
# If we're on Windows, try to load win32console to enable colours
# Add it to config/environment.rb or config/environments/development.rb
if RUBY_PLATFORM =~ /win32|mingw32/
begin
require 'win32console'
rescue LoadError
puts "=> WARNING: win32console gem is not installed, colors are disabled."
end
end
[ D:\Users\charlesr\Documents\My Dropbox\Code\Projects\RailsTutorial\sample_app_4win ]
> gem install autotest
Successfully installed autotest-4.2.8
1 gem installed
[ D:\Users\charlesr\Documents\My Dropbox\Code\Projects\RailsTutorial\sample_app_4win ]
> autospec
loading autotest/rails_rspec
style: RailsRspec
[H:\My Dropbox\Code\Projects\RailsTutorial\sample_app_4win]gem install thin
Building native extensions. This could take a while...
ERROR: Error installing thin:
ERROR: Failed to build gem native extension.
C:/Ruby19/bin/ruby.exe extconf.rb
TCC: Unknown command "C:"
Gem files will remain installed in C:/Ruby19/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10 for inspection.
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Open Command Prompt 2</string>
<key>uuid</key>
<string>D76BC291-700B-411B-A63A-CDB1CDEF5646</string>
<key>input</key>
<string>selection</string>
@charlesroper
charlesroper / cygstart
Created February 28, 2010 18:24
cygstart -?
$ cygstart -?
cygstart is part of cygutils version 1.4.2
cygstart was originally authored by Michael Schaap
Let Windows start a program or open a file or URL.
Usage: cygstart [OPTION]... FILE [ARGUMENTS]
Action options
NoMethodError
undefined method `generate_partial' for nil:NilClass
Stack Trace
C:/Users/charlesr/Tools/Ruby/ruby-1.9.1-p378-i386-mingw32/lib/ruby/gems/1.9.1/gems/staticmatic-0.10.7/lib/staticmatic/helpers.rb:184:in `partial'
(haml):4:in `block in render'
C:/Users/charlesr/Tools/Ruby/ruby-1.9.1-p378-i386-mingw32/lib/ruby/gems/1.9.1/gems/haml-2.2.20/lib/haml/engine.rb:179:in `eval'
C:/Users/charlesr/Tools/Ruby/ruby-1.9.1-p378-i386-mingw32/lib/ruby/gems/1.9.1/gems/haml-2.2.20/lib/haml/engine.rb:179:in `render'
C:/Users/charlesr/Tools/Ruby/ruby-1.9.1-p378-i386-mingw32/lib/ruby/gems/1.9.1/gems/staticmatic-0.10.7/lib/staticmatic/mixins/render.rb:98:in `generate_html_from_template_source'
C:/Users/charlesr/Tools/Ruby/ruby-1.9.1-p378-i386-mingw32/lib/ruby/gems/1.9.1/gems/staticmatic-0.10.7/lib/staticmatic/mixins/render.rb:39:in `generate_html_with_layout'
+susy
div#page
+container
header#title, div#content, footer#site-info, section#footer
+full
div#content
http://github.com/radiant/radiant-prototype
http://localhost:4000/admin/pages/edit
WEBRICK
WORK PC: Xeon 2.2GHz; Windows XP SP3
[ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]
51 requests
309 KB
; Bind [Shift-Enter] to [Escape]
^Enter::Send {ESC}{ESC}
; E Text Editor Macros
; Only enable these macros for the E window
#IfWinActive, ahk_class wxWindowClassNR
; [Ctrl-Shift->] Shift text right
^+>::Send !tr
[ D:\Users\charlesr\Documents\My Dropbox\Projects\SARG\Prototype ]
> compass --watch --trace
Site root is: D:/Users/charlesr/Documents/My Dropbox/Projects/SARG/Prototype
>>> Change detected to: D:/Users/charlesr/Documents/My Dropbox/Projects/SARG/Prototype/src/stylesheets/site.sass
NoMethodError on line ["128"] of C: undefined method `inject' for "":String
C:/Users/charlesr/Tools/Ruby/ruby-1.9.1-p378-i386-mingw32/lib/ruby/gems/1.9.1/gems/haml-3.0.0.beta.1/lib/sass/tree/prop_node.rb:51:in `initialize'
C:/Users/charlesr/Tools/Ruby/ruby-1.9.1-p378-i386-mingw32/lib/ruby/gems/1.9.1/gems/haml-3.0.0.beta.1/lib/sass/tree/rule_node.rb:319:in `new'
C:/Users/charlesr/Tools/Ruby/ruby-1.9.1-p378-i386-mingw32/lib/ruby/gems/1.9.1/gems/haml-3.0.0.beta.1/lib/sass/tree/rule_node.rb:319:in `block in debug_info_rule'
C:/Users/charlesr/Tools/Ruby/ruby-1.9.1-p378-i386-mingw32/lib/ruby/gems/1.9.1/gems/haml-3.0.0.beta.1/lib/sass/tree/rule_node.rb:316:in `each'
C:/Users/charlesr/Tools/Ruby/ruby-1.9.1-p378-i386-mingw32/lib/r