Skip to content

Instantly share code, notes, and snippets.

View jottenlips's full-sized avatar
:octocat:

John Ottenlips Franke jottenlips

:octocat:
View GitHub Profile
@jottenlips
jottenlips / staticlib.sh
Created June 22, 2018 15:06 — forked from adamgit/gist:3705459
Automatically create cross-platform (simulator + device) static libraries for Objective C / iPhone / iPad
##########################################
#
# c.f. http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4
#
# Version 2.82
#
# Latest Change:
# - MORE tweaks to get the iOS 10+ and 9- working
# - Support iOS 10+
# - Corrected typo for iOS 1-10+ (thanks @stuikomma)
@jottenlips
jottenlips / NSObject+Debounce.h
Last active June 19, 2018 20:13 — forked from berzniz/NSObject+Debounce.h
Debounce method for Objective C
@interface NSObject (Debounce)
- (void)debounce:(SEL)action delay:(NSTimeInterval)delay target:(id)target;
@end
@jottenlips
jottenlips / resetAllSimulators.sh
Created May 1, 2018 13:54 — forked from ZevEisenberg/resetAllSimulators.sh
Reset all iOS simulators with this one weird trick
osascript -e 'tell application "iOS Simulator" to quit'
osascript -e 'tell application "Simulator" to quit'
xcrun simctl erase all
@jottenlips
jottenlips / ES6.sublime-build
Last active June 19, 2018 20:15 — forked from therealklanni/ES6.sublime-build
ES6 REPL in Sublime Text
{
"cmd": ["/Users/<username>/.nvm/versions/node/v9.2.0/bin/babel-node $file"],
"shell": true,
"selector": "*.js"
}