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:
| module RailsAdmin | |
| module Config | |
| module Fields | |
| module Types | |
| class Datetime | |
| def value | |
| bindings[:object].send(name) | |
| end | |
| end | |
| end |
| #!/usr/bin/perl | |
| # Emacs starter for Emacs mac port | |
| # Thanks to Aquamacs Project and David Reitter | |
| my $args = ""; | |
| my $tmpfiles = ""; | |
| for my $f (@ARGV) { |
| Here is what you need to do to register your app for a custom URL scheme (for the example we will use a "myapp" scheme). | |
| 1) In your Info.plist, add a new entry for CFBundleURLTypes: <key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleURLName</key> <string>MyApp's URL</string> <key>CFBundleURLSchemes</key> <array> <string>myapp</string> </array> </dict> </array> | |
| 2) Somewhere in your application's startup code (e.g. init), add this code: - (void)registerMyApp { [[NSAppleEventManager sharedAppleEventManager] setEventHandler:self andSelector:@selector(getUrl:withReplyEvent:) forEventClass:kInternetEventClass andEventID:kAEGetURL]; } | |
| - (void)getUrl:(NSAppleEventDescriptor )event withReplyEvent:(NSAppleEventDescriptor )replyEvent { NSString url = [[event paramDescriptorForKeyword:keyDirectObject] stringValue]; // Now you can parse the URL and perform whatever action is needed } | |
| Related Tidbits: |
| // | |
| // Created by tdimson on 8/15/12. | |
| #import <QuartzCore/QuartzCore.h> | |
| #import "SFSConfettiScreen.h" | |
| @implementation SFSConfettiScreen { | |
| __weak CAEmitterLayer *_confettiEmitter; | |
| CGFloat _decayAmount; |
| #!/usr/bin/env ruby | |
| require 'csv' | |
| require 'json' | |
| if ARGV.size != 2 | |
| puts 'Usage: csv_to_json input_file.csv output_file.json' | |
| puts 'This script uses the first line of the csv file as the keys for the JSON properties of the objects' | |
| exit(1) | |
| end |
Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.
open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl
You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html
| /* | |
| File: KeychainItemWrapper.h | |
| Abstract: | |
| Objective-C wrapper for accessing a single keychain item. | |
| Version: 1.2 - ARCified | |
| Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple | |
| Inc. ("Apple") in consideration of your agreement to the following | |
| terms, and your use, installation, modification or redistribution of |
| class Foo | |
| include Mongoid::Document | |
| field :bar | |
| end | |
| foo = Foo.new(:bar => "baz") | |
| foo.to_json # => { _id: "(some uuid)", bar: "baz" } |