Skip to content

Instantly share code, notes, and snippets.

Phillip Tang tangphillip

Block or report user

Report or block tangphillip

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View phantom.crash
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
Objective-C: Subclassing for delegate behavior!
View PSTTextView.h
// 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 Aug 12, 2012
Find your contributions to a git repo, by file
View contributions.sh
# 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[@]}
You can’t perform that action at this time.