Skip to content

Instantly share code, notes, and snippets.

Process: phantomjs [9929]
Path: /Users/USER/Downloads/*/phantomjs
Identifier: phantomjs
Version: ???
Code Type: X86-64 (Native)
Parent Process: zsh [8960]
Responsible: Terminal [8958]
User ID: 501
Date/Time: 2016-02-06 17:15:11.041 -0500
@tangphillip
tangphillip / PSTTextView.h
Created May 10, 2014 23:28
Objective-C: Subclassing for delegate behavior!
// A demonstration: fixing the UITextView return bug with a subclass
//
// Code for acutally fixing the bug from http://inessential.com/2014/01/07/uitextview_the_solution
#import <UIKit/UIKit.h>
@interface PSTTextView : UITextView
@end
@tangphillip
tangphillip / contributions.sh
Created August 12, 2012 16:50
Find your contributions to a git repo, by file
# A regex that matches your commit name. Escape colons, if you use any.
NAME="(Phil(lip)? Tang|tangphillip@gmail.com)"
# Find all plaintext files. Warning: Can be slow with moderate or large repos
FILES=(`find . -type f -exec sh -c "file {} | grep text >/dev/null" \; -print`)
# Find files with extension ".coffee" or ".sass"
FILES=(`find . -name "*.coffee" -o -name "*.sass"`)
for FILE in ${FILES[@]}