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:
| #import <Foundation/Foundation.h> | |
| @interface NSBundle (TTTOverrideLanguage) | |
| + (void)ttt_overrideLanguage:(NSString *)language; | |
| + (void)ttt_resetLanguage; | |
| @end |
| tell application "Finder" | |
| try | |
| if get selection is not {} then set selection to {} | |
| end try | |
| end tell |
| // | |
| // NSString+Reverse.h | |
| // | |
| // Created by Shilo White on 9/1/13. | |
| // Copyright (c) 2013 Shilocity Productions. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> | |
| @interface NSString (Reverse) |
| UI- and App Frameworks Evangelist - Jake Behrens, behrens@apple.com, twitter: @Behrens | |
| - What's new in Cocoa | |
| - Accessibility in iOS | |
| - Building User Interfaces for iOS 7 | |
| - Getting Started with UIKit Dynamics | |
| - What's new in Cocoa Touch | |
| - What's New With Multitasking | |
| - Best Practices for Cocoa Animation | |
| - Improving Power Efficiency with App Nap | |
| - Introducing Text Kit |
| # -*- coding: utf-8 -*- | |
| # | |
| # turtle.py - Turtle Class for Pythonista | |
| # | |
| # When run as a script, the following are demonstrated: | |
| # (a) multiple turtle instances illustrate turtle behaviors | |
| # (b) the classic Koch snowflake is drawn | |
| # | |
| # History: | |
| # 13-Apr-2013 DJValentino created Turtle Class |
| # replace ALL tab characters with four spaces | |
| import editor, sys | |
| theText = editor.get_text() | |
| theCount = theText.count('\t') | |
| if not theText.count('\t'): | |
| print('no tabs found.') | |
| sys.exit() | |
| theLength = len(theText) |
| import sys | |
| import subprocess | |
| import tempfile | |
| import urllib | |
| text = sys.stdin.read() | |
| chart_url_template = ('http://chart.apis.google.com/chart?' | |
| 'cht=qr&chs=300x300&chl={data}&chld=H|0') | |
| chart_url = chart_url_template.format(data=urllib.quote(text)) |
| # Source: https://gist.github.com/4702275 | |
| # | |
| # All-purpose gist tool for Pythonista. | |
| # | |
| # When run directly, this script sets up four other scripts that call various | |
| # functions within this file. Each of these sub-scripts are meant for use as | |
| # action menu items. They are: | |
| # | |
| # Set Gist ID.py - Set the gist id that the current file should be | |
| # associated with. |
| # turtle.py | |
| # Basic Turtle graphics module for Pythonista | |
| # | |
| # When run as a script, the classic Koch snowflake is drawn as a demo. | |
| # The module can also be used interactively or from other scripts: | |
| # >>> from turtle import * | |
| # >>> right(30) | |
| # >>> forward(100) | |
| # ... |