Skip to content

Instantly share code, notes, and snippets.

View rickmzp's full-sized avatar

Rick Martínez rickmzp

  • LineLeap
  • New York, NY
  • 20:44 (UTC -04:00)
  • X @rickmzp
View GitHub Profile
// Photoshop Script to Create iPhone Icons from iTunesArtwork
//
// WARNING!!! In the rare case that there are name collisions, this script will
// overwrite (delete perminently) files in the same folder in which the selected
// iTunesArtwork file is located. Therefore, to be safe, before running the
// script, it's best to make sure the selected iTuensArtwork file is the only
// file in its containing folder.
//
// Copyright (c) 2010 Matt Di Pasquale
// Added tweaks Copyright (c) 2012 by Josh Jones http://www.appsbynight.com
@rickmzp
rickmzp / README
Last active December 18, 2015 19:38 — forked from cwsaylor/gist:8511
Variation on Hashrocket's script for managing the git process
as documented here: http://reinh.com/blog/2008/08/27/hack-and-and-ship.html
Create shell scripts out of each of these, put them in your path (~/bin for example)
chmod 755 them and use like this:
This version of hack is totally different than Hackrockets. I feel that hack implies
that you are getting started, not finishing up. sink is Hashrockets hack.
$ hack branch_name
Test and Implement until done
@rickmzp
rickmzp / gist:1323454
Created October 28, 2011 20:29 — forked from esteigler/gist:1323445
my updates
require "fog"
require "nokogiri"
def name
@name ||= new_resource.name + "."
end
def value
@value ||= new_resource.value
end
@rickmzp
rickmzp / serialize_matcher.rb
Created July 14, 2011 23:07 — forked from txus/serialize_matcher.rb
RSpec matcher for serialized ActiveRecord columns
# RSpec matcher to spec serialized ActiveRecord attributes.
#
# Usage:
#
# describe Post do
# it { should serialize(:data) } # serialize :data
# it { should serialize(:registers).as(Array) } # serialize :registers, Array
# it { should serialize(:options).as(Hash) } # serialize :options, Hash
# end