How to Create a Date Time Snippet in Sublime Text 2 (Dynamic Signature with Time Stamp)
You'll have to create a new plugin. From the menu bar select
Tools > New Plugin
Copy the Python script from the signature.py file. Remember to replace your email address (it's example.com).
Save the file, signature.py, is fine. Next open up Prefer...
Written by Sean Behan on 06/17/2012
Manage Fixtures with Yaml DB Plugin for Rails
Get the plugin like so...
script/plugin install git://github.com/adamwiggins/yaml_db.git
This command will dump your data
rake db:data:dump
And load it back
rake db:data:load
Beautiful :) More info here
http://blog.heroku.com/archives/2007/11/23/yam...
Written by Sean Behan on 06/17/2012
Thematic Function Reference
I could not find a listing of all thematic theme functions for Wordpress online. So the following is just a recursive grep of the thematic directory.
grep -rh "function thematic_" *
Each function needs to prepended with "thematic_" when adding as a actio...
Written by Sean Behan on 06/17/2012
How to Install a Ruby Package without Ri or RDoc
gem install --no-rdoc --no-ri rails
Written by Sean Behan on 06/17/2012
Render Partial if File Exists
If you ever want to render a partial but don't want an error thrown you can either check for the existence of the file first
params[:controller]+"/sidebar" if File.exists?(RAILS_ROOT+"/app/views/"+params[:controller]+"/_sidebar.html.erb") %>
or you ca...
Written by Sean Behan on 06/17/2012