Skip to content

Instantly share code, notes, and snippets.

View gravicle's full-sized avatar

Amit Jain gravicle

  • San Francisco
View GitHub Profile
@gravicle
gravicle / README.md
Created June 16, 2017 18:26 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@gravicle
gravicle / RunScript.sh
Last active January 4, 2017 01:41 — forked from pala/RunScript
Show TODO's And FIXME's As Warnings
TAGS="FIXME:|TODO:"
ERRORTAG="ERROR:"
find "${SRCROOT}" \( -name "*.h" -or -name "*.m" -or -name "*.swift" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$|($ERRORTAG).*\$" | perl -p -e "s/($TAGS)/ warning: \$1/" | perl -p -e "s/($ERRORTAG)/ error: \$1/"
@gravicle
gravicle / gist:f2c3cce198153c6b6ef059300113188e
Created July 6, 2016 17:55 — forked from steipete/ios-xcode-device-support.sh
Using Xcode 7.3.1 and iOS 10 devices
// The trick is to copy the DeviceSupport folder from the beta to the stable version.
cp -r /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A5261u\) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
// Then restart Xcode. You might need to do that for every beta of iOS 10/Xcode 8.
@gravicle
gravicle / 0_reuse_code.js
Created June 6, 2014 03:17
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console