Skip to content

Instantly share code, notes, and snippets.

View johncarney's full-sized avatar

John Carney johncarney

View GitHub Profile
@johncarney
johncarney / resize-brush-in-photoshop.md
Last active August 29, 2015 14:07
How to adjust brush size and hardness in Photoshop on Mac OS X

Resizing Brushes in Photoshop

To adjust brush size

Hold down ⌃⌥ and drag the mouse left (smaller) or right (larger).

Or use the [ key (smaller) and ] key (larger).

To adjust brush hardness

@johncarney
johncarney / remove-duplicates.sh
Created November 23, 2012 02:19
Remove duplicates from "Open With..." menu
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
@johncarney
johncarney / example.rb
Created August 7, 2012 11:26
Split a Ruby Enumerable into chunks divided by an arbitary number of patterns
%w{ a b c d e f }.split("c", "e")
# => [["a", "b"], ["c", "d"], ["e", "f"]]