Skip to content

Instantly share code, notes, and snippets.

@tjkirch
tjkirch / gist:1005773
Created June 3, 2011 02:44
Syntax error causing ruby koans success
$ git diff
diff --git a/koans/about_asserts.rb b/koans/about_asserts.rb
index e1c34d4..bf19c21 100644
--- a/koans/about_asserts.rb
+++ b/koans/about_asserts.rb
@@ -3,7 +3,7 @@
require File.expand_path(File.dirname(__FILE__) + '/edgecase')
-class AboutAsserts < EdgeCase::Koan
"pigraph theme based on blackdust
"fmeyer@pigraph.com
set background=dark
hi clear
if exists("syntax_on")
syntax reset
endif
@tjkirch
tjkirch / run_tags
Created March 20, 2011 02:13 — forked from tobias/run_tags.rb
#!/usr/bin/env ruby
# A script to run ctags on all .rb files in a project. Can be run on
# the current dir, called from a git callback, or install itself as a
# git callback.
CTAGS = %x{which ctags}.chomp
HOOKS = %w{ post-merge post-commit post-checkout }
HOOKS_DIR = '.git/hooks'

A Note

A lot of people have been trying to clone this Gist recently. For some reason, none of them seem to be going through. I've converted this to a normal Github repo, which should work better: http://github.com/h0rs3r4dish/scratch.rb

Basics

The method page will create a new page: