THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| #!/bin/sh | |
| # Script for managing build and version numbers using git and agvtool. | |
| # Change log: | |
| # v1.0 18-Jul-11 First public release. | |
| # v1.1 29-Sep-12 Launch git, agvtool via xcrun. | |
| version() { |
| :wq! ++enc=utf-8 |
| # Add subtitle track | |
| MP4Box -add minecraft_uncut.srt:lang=eng:layout=0x60x0x-1:group=2:hdlr="sbtl:tx3g" Minecraft2_mobile.mp4 | |
| # Add audio track | |
| # 1. doesnt work in quicktime/itunes | |
| MP4Box -add commentary_audio.aac Minecraft2_mobile.mp4 | |
| # 2. supposed to work in quicktime/itunes but doesn't seem to; :name at least is definitely not supported | |
| MP4Box -add commentary_audio.aac:disable:group1:lang=en:name="Director's Commentary" Minecraft2_mobile.mp4 |
| // | |
| // NRTRootViewController.m | |
| // GradientTableView | |
| // | |
| // Created by Rick Harrison on 8/15/13. | |
| // Copyright (c) 2013 Rick Harrison. All rights reserved. | |
| // | |
| #import "NRTRootViewController.h" |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| // NSManagedObjectContext+DebugSwizzling.h | |
| #import <CoreData/CoreData.h> | |
| #if DEBUG | |
| /** | |
| * Toggles debugging of Core Data managed object contexts. | |
| * | |
| * When enabled, will fire NSLogs in the following cases: |
| /* re-implementation of the behaviour that the /usr/bin/defaults application | |
| * uses to read sandboxed preference data */ | |
| #include <CoreFoundation/CoreFoundation.h> | |
| #define EX_BUNDLE_ID "com.apple.mail" | |
| #define EX_KEY "JunkMailBehavior" | |
| // undocumented, internal CFPreferences API call | |
| extern CFDictionaryRef _CFPreferencesCopyApplicationMap(CFStringRef userName, CFStringRef hostName); |
| import Foundation | |
| // Playground - noun: a place where people can play | |
| class Channel<T> { | |
| var stream: Array<T> | |
| let queue: dispatch_queue_t | |
| let semaphore: dispatch_semaphore_t | |
| init() { | |
| self.stream = [] |
| // NSScanner+Swift.swift | |
| // A set of Swift-idiomatic methods for NSScanner | |
| // | |
| // (c) 2015 Nate Cook, licensed under the MIT license | |
| import Foundation | |
| extension NSScanner { | |
| // MARK: Strings |
| // Examples | |
| var set = AnySet() | |
| set.insert(3) | |
| set.insert("hello") | |
| set.insert("hi") | |
| set.insert(2.3) | |
| set.contains(6) // -> false | |
| set.contains(3) // -> true |