Skip to content

Instantly share code, notes, and snippets.

@spundun
spundun / gen_data.rb
Created May 30, 2014 18:01
iostream vs fstream
(1..1000000).each do
puts "12345"
end
@spundun
spundun / posts.emblem
Last active December 22, 2015 23:19
emblem-rails not putting a space between title and "by". Trying to emulate the template from Tom Dale's screencast http://www.youtube.com/watch?v=1QHrlFlaXdI&t=9m53s
.container-fluid
.row-fluid
.span3
table.table
thead
tr
th
| Recent Posts
each
tr
spundun$ haml -r hamlbars test.html.hamlbars
Syntax error on line 131: test.html.hamlbars:15: syntax error, unexpected kEND
_hamlout.attributes({"class"=>"brand"}, nil, :href => "#")}>Blogger</a>\n <ul class='nav'>\n <li>Test</li>\n </ul>\n </div>\n </div>\n", -2, false);end;_hamlout.buffer << _hamlout.format_script_false_false_false_false_false_false_false(haml_temp);_hamlout.push_text("\n Hello\n </body>\n</html>\n", -2, false);;_erbout
^
Use --trace for backtrace.
This gist replicates Grails 2.2.2 boilerplate index.gsp main.gsp and error.gsp into Haml code.