Skip to content

Instantly share code, notes, and snippets.

View mokagio's full-sized avatar
Building stuff

Gio Lodi mokagio

Building stuff
View GitHub Profile
# An example hook script to verify what is about to be committed.
# Called by "git commit" with no arguments. The hook should
# exit with non-zero status after issuing an appropriate message if
# it wants to stop the commit.
# Purposes:
# Add an empty line at the end of the file.
# Remove trailing spaces at the end of a line.
mokagio / Guardfile
Created March 5, 2013 21:44 — forked from l4u/Guardfile
guard :shell do
watch(%r{-hd\.png$}) do |m|
input = m[0]
output = input.gsub(/-hd.png$/,'.png')
puts "Downsizing #{input} to #{output}"
`convert #{input} -resize 50% #{output}`
// IPInsetLabel.h
// Instapaper
// Created by Marco Arment on 7/23/11.
// Copyright 2011 Instapaper LLC, released to the public domain.
#import <UIKit/UIKit.h>