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:
#!/usr/bin/ruby | |
# README | |
# gem install aws-sdk | |
# add this to bashrc | |
# export HT_DEV_AWS_ACCESS_KEY_ID=???? | |
# export HT_DEV_AWS_SECRET_ACCESS_KEY=???? | |
# put your pem file in ~/.ssh and chmod 0400 | |
# for more info see; https://rubygems.org/gems/aws-sdk |
git remote add upstream [Clone Url] | |
git fetch upstream | |
git checkout master | |
## At this point, you have two options: | |
git merge upstream/master # Merge yours and theirs | |
git push origin master # Push back to your fork | |
git reset --hard upstream/master # Make yours look *exactly* like theirs, lose your changes; |
// | |
// NSArray+CLinq.h | |
// | |
// Created by Casey Liss on 12/1/13. | |
// Copyright (c) 2013 Casey Liss. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
typedef id(^CLSelector)(id source); |
desc "Create a new version tag and push a new podspec" | |
task :release do | |
require 'cocoapods' | |
require 'colored' | |
version = Pod::Specification.from_file(Pathname.pwd + 'MyLib.podspec').version | |
puts "Releasing version `#{version}'. Is that correct? (y/n)" | |
if $stdin.gets.strip.downcase == 'y' | |
sh "git tag -a #{version} -m 'Release #{version}'" | |
sh "git push --tags" | |
sh "pod lint" |
Generate the list yourself:
$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS*.sdk/System/Library/Frameworks/UIKit.framework/Headers
$ grep UI_APPEARANCE_SELECTOR ./* | \
sed 's/NS_AVAILABLE_IOS(.*)//g' | \
sed 's/NS_DEPRECATED_IOS(.*)//g' | \
sed 's/API_AVAILABLE(.*)//g' | \
sed 's/API_UNAVAILABLE(.*)//g' | \
sed 's/UI_APPEARANCE_SELECTOR//g' | \
// Taken from the commercial iOS PDF framework http://pspdfkit.com. | |
// Copyright (c) 2014 Peter Steinberger, PSPDFKit GmbH. All rights reserved. | |
// Licensed under MIT (http://opensource.org/licenses/MIT) | |
// | |
// You should only use this in debug builds. It doesn't use private API, but I wouldn't ship it. | |
// PLEASE DUPE rdar://27192338 (https://openradar.appspot.com/27192338) if you would like to see this in UIKit. | |
#import <objc/runtime.h> | |
#import <objc/message.h> |
// Download all assets from https://developer.apple.com/wwdc/videos | |
// Warning: might take up a lot of disk space | |
NodeList.prototype.toArray = function () { | |
return Array.prototype.slice.call(this); | |
}; | |
[].concat.apply([], document.querySelectorAll("li.session").toArray().map(function(session){ | |
var sessionID = session.id.match(/^\d+/)[0]; | |
var title = session.querySelector(".title").innerText; |
def revBuild(plistFile) | |
puts "Attempting to update #{plistFile} build version..." | |
oldVersion = `/usr/libexec/PlistBuddy -c "Print CFBundleVersion" #{plistFile}` | |
puts "The old version: #{oldVersion}" | |
versionParts = oldVersion.split(".") | |
previousDate = versionParts[2] | |
newDate = Time.now.strftime("%Y%m%d") | |
versionParts[2] = newDate |