Skip to content

Instantly share code, notes, and snippets.

This gist replicates Grails 2.2.2 boilerplate index.gsp main.gsp and error.gsp into Haml code.
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.
@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
spundun / gen_data.rb
Created May 30, 2014 18:01
iostream vs fstream
(1..1000000).each do
puts "12345"
end
@spundun
spundun / gist:ade33d22ef71bfb61d7d
Created August 26, 2014 19:53
2014081525420_add_blocked_to_users.rb
class AddBlockedToUsers < ActiveRecord::Migration
def change
add_column :users, :blocked, :bool
end
def self.up
execute "ALTER TABLE USERS DROP COLUMN BLOCKED"
end
end
@spundun
spundun / Gemfile
Last active August 29, 2015 14:07
Ruby Treetop gem Parser Rules: Potential Bug
gem 'treetop'
gem 'pry'
@spundun
spundun / Gemfile
Last active August 29, 2015 14:07
Treetop Nested Non-Unique Delimiters
gem 'rake'
gem 'pry'
gem 'treetop'
@spundun
spundun / main.cpp
Created March 31, 2015 05:41
Similarity based on Levenshtein Distance
//
// main.cpp
// StringSimilarity
//
// Created by Spundun Bhatt on 3/30/15.
// Copyright (c) 2015 Spundun Bhatt. All rights reserved.
//
#include <iostream>
#include <memory>
@spundun
spundun / arch_lib32_mesa_virtio.patch
Last active June 22, 2022 17:51
Patch to include new Venus/Virtio Vulkan Driver in mesa packages. This lets you use Vulkan 3D graphics capabilities from a virtual machine like Crostini on ChromeOS
commit 0907c0b16eb95bedc89f6131a0723cbb17ca862d
Author: Spundun Bhatt <[email protected]>
Date: Sat Jun 11 07:45:05 2022 -0700
Include virtio driver in lib32-mesa
diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD
index 944a3c4..1b9f886 100644
--- a/trunk/PKGBUILD
+++ b/trunk/PKGBUILD
@spundun
spundun / belnder_link_errors.txt
Created June 19, 2022 18:06
Build errors during the linking phase when building blender. With precompiled dependencies.