Skip to content

Instantly share code, notes, and snippets.

View apalmblad's full-sized avatar

Adam Palmblad apalmblad

View GitHub Profile
@apalmblad
apalmblad / gist:5470791
Last active December 16, 2015 17:29
go TZ issue
package main
import (
"fmt"
"time"
)
func main() {
tz, err := time.LoadLocation("Atlantic/South_Georgia")
@apalmblad
apalmblad / hack.sh
Created April 2, 2012 16:42 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@apalmblad
apalmblad / fast-require-ruby-19.2-p180
Created May 30, 2011 20:46
fast require, ruby 1.9.2-180
diff --git a/array.c b/array.c
index b1616c5..16326fc 100644
--- a/array.c
+++ b/array.c
@@ -302,7 +302,7 @@ ary_alloc(VALUE klass)
return (VALUE)ary;
}
-static VALUE
+VALUE
@apalmblad
apalmblad / faster_tests.rake
Created March 9, 2010 23:55
Remove db:test:prepare as a prerequistite of test:units, test:functionals, and test:integration, but provide that functional instead at test:prepared:test_type
namespace :test do
%w( units functionals integration).each do |type|
task = Rake::Task["test:#{type}"]
task "prepared:#{type}" => task.prerequisites do
task.execute
end
task.clear_prerequisites
end
end