Skip to content

Instantly share code, notes, and snippets.

View ckozus's full-sized avatar

Carlos Kozuszko ckozus

  • Insignia
  • Tucumán, Argentina
View GitHub Profile
@ckozus
ckozus / gist:23313
Created November 9, 2008 18:42 — forked from insignia/gist:23312
package 'openssl' do
type 'make'
default 'source'
version 'source' do
download 'http://...'
# hooks
before :download { }
after :download { }
@ckozus
ckozus / pre_commit_hook-jammit
Created May 15, 2011 23:57 — forked from mikem/pre_commit_hook-jammit
git pre-commit hook for Jammit
#!/usr/bin/env ruby
require 'rubygems'
require 'jammit'
print "Jammit check... "
status_before = %x[git status --porcelain --untracked-files=no]
Jammit.package!
status_after = %x[git status --porcelain --untracked-files=no]
jammit_files = (status_after.split("\n") - status_before.split("\n")).map { |f| f.split[1] }
window.pricingFunction = ->
max = Math.max solo.height(), basic.height(), business.height()
$('.solo, .basic, .business').height(max)