Skip to content

Instantly share code, notes, and snippets.

View rvock's full-sized avatar

Robert Vock rvock

View GitHub Profile
@rvock
rvock / gist:8809293
Created February 4, 2014 18:19
grunt-prompt for task
module.exports = function(grunt) {
grunt.initConfig({
prompt: {
target: {
options: {
questions: [{
config: 'runnertasks',
type: 'list', // checkbox
message: 'Choose a task',
'default': 'application',
@rvock
rvock / compass-gzip-stats.rb
Created March 22, 2012 21:23
Compass Gzip stats
def to_human n
count = 0
while n >= 1024 and count < 4
n /= 1024.0
count += 1
end
format("%.2f",n) + %w(B KB MB GB TB)[count]
end
require 'zlib'