This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| @class GHTestCase; | |
| @interface GHTestCase (Swizzle) | |
| + (id)sharedMock; | |
| + (void)setSharedMock:(id)newMock; | |
| - (void)swizzle:(Class)target_class selector:(SEL)selector; | |
| - (void)deswizzle; |
| ## Add this as a 'Run Script' step in your Xcode Project prior to the compile step | |
| mogen=`which mogenerator` | |
| if [[ -x $mogen ]]; then | |
| echo "Updating data objects using $mogen" | |
| cd "$PROJECT_DIR/Model" && $mogen -m MyProject.xcdatamodeld/MyProject.xcdatamodel -M ./generated -H ./entities | |
| fi |
| #!/bin/bash | |
| die () { | |
| echo >&2 "$@" | |
| exit 1 | |
| } | |
| [ "$#" -eq 1 ] || die "1 argument (UUID) required, $# provided" | |
| MDFIND=/usr/bin/mdfind | |
| UUID=`echo ${1} | |
| """ | |
| Gets the name of the active Git branch as a string. | |
| Depends on GitPython | |
| pip install GitPython | |
| """ | |
| from git import Repo | |
| repo = Repo('/path/to/your/repo') | |
| branch = repo.active_branch |
| mr Marathi | |
| bs Bosnian | |
| ee_TG Ewe (Togo) | |
| ms Malay | |
| kam_KE Kamba (Kenya) | |
| mt Maltese | |
| ha Hausa | |
| es_HN Spanish (Honduras) | |
| ml_IN Malayalam (India) | |
| ro_MD Romanian (Moldova) |
| /* | |
| Source: Apple Developer - Understanding iOS View Compositing | |
| */ | |
| // setup the layer | |
| CALayer *layer = view.layer; | |
| layer.bounds = sublayer_bounds; | |
| layer.backgroundColor = random_color(); | |
| // set the shadow properties on the layer |
| -(void)disableReturnKey{ | |
| // Locate non-UIWindow. | |
| UIWindow *keyboardWindow = nil; | |
| for (UIWindow *testWindow in [[UIApplication sharedApplication] windows]) { | |
| if (![[testWindow class] isEqual:[UIWindow class]]) { | |
| keyboardWindow = testWindow; | |
| break; | |
| } | |
| } | |
| { | |
| "cmd": ["/usr/local/go/bin/go","build","$file"], | |
| "selector" : "source.go", | |
| "variants": [ | |
| { "cmd": ["/usr/local/go/bin/go", "run", "$file"], | |
| "name": "Run" | |
| } | |
| ] | |
| } |
| sys_rb_usr=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr | |
| sdk_rb_usr=`xcode-select -p`/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr | |
| sudo cp -r $sdk_rb_usr/include $sys_rb_usr/include |