Skip to content

Instantly share code, notes, and snippets.

View themusicman's full-sized avatar
🏠
Working from home

Thomas Brewer themusicman

🏠
Working from home
View GitHub Profile
@themusicman
themusicman / gist:3797006
Created September 27, 2012 23:10
Run the erd rake task
padrino rake erd
gem 'rails-erd', :group => 'development'
@themusicman
themusicman / erd.rake
Created September 27, 2012 22:56
Rake task for Padrino and Rails-erd
task :erd do
require "rails_erd/diagram/graphviz"
RailsERD::Diagram::Graphviz.create(
filename: Padrino.root('docs/erd'),
attributes: [:foreign_keys, :primary_keys, :content, :timestamps, :inheritance]
)
end
class Houdini {
//precious! my precious....
protected static $data = array();
// other super awesome code ...
}
class Houdini {
// other super awesome code ...
}
$instance = new Houdini;
class MyClass {
public static my_var;
}
{exp:houdini:fetch key="categories"}
{exp:houdini:store key="categories"}
{categories backspace="2"}{category_name}, {categories}
{/exp:houdini:store}
<title>{exp:houdini:get key="page_title"} - Site Name</title>
{exp:houdini:set key="page_title" value="{title}"}