Unfinished and not tested beyond my own case.
Usage
var wait = new Wait();
wait.complete(function () {
console.log('we are done - now report');
});
include README.md | |
global-include *.html | |
global-include *.js | |
global-include *.css | |
global-include *.json | |
global-include *.txt | |
global-include *.sql |
AVCaptureVideoDataOutput *videoOutput = [[AVCaptureVideoDataOutput alloc] init]; | |
NSDictionary *formats = [NSDictionary dictionaryWithObjectsAndKeys: | |
@"kCVPixelFormatType_1Monochrome", [NSNumber numberWithInt:kCVPixelFormatType_1Monochrome], | |
@"kCVPixelFormatType_2Indexed", [NSNumber numberWithInt:kCVPixelFormatType_2Indexed], | |
@"kCVPixelFormatType_4Indexed", [NSNumber numberWithInt:kCVPixelFormatType_4Indexed], | |
@"kCVPixelFormatType_8Indexed", [NSNumber numberWithInt:kCVPixelFormatType_8Indexed], | |
@"kCVPixelFormatType_1IndexedGray_WhiteIsZero", [NSNumber numberWithInt:kCVPixelFormatType_1IndexedGray_WhiteIsZero], | |
@"kCVPixelFormatType_2IndexedGray_WhiteIsZero", [NSNumber numberWithInt:kCVPixelFormatType_2IndexedGray_WhiteIsZero], | |
@"kCVPixelFormatType_4IndexedGray_WhiteIsZero", [NSNumber numberWithInt:kCVPixelFormatType_4IndexedGray_WhiteIsZero], |
diff --git i/Library/Formula/couchdb.rb w/Library/Formula/couchdb.rb | |
index 3352b28..7c1203d 100644 | |
--- i/Library/Formula/couchdb.rb | |
+++ w/Library/Formula/couchdb.rb | |
@@ -1,9 +1,14 @@ | |
require 'formula' | |
class Couchdb < Formula | |
- url 'http://www.apache.org/dyn/closer.cgi?path=couchdb/1.1.1/apache-couchdb-1.1.1.tar.gz' | |
homepage "http://couchdb.apache.org/" |
Adds support for loading UIImage's from PDF files. I think it's a great way to add resolution-independent graphics to your apps, and also remove the "export to bitmap" step from your workflow. Just save directly from Illustrator! | |
What it does: | |
- You can pass the name of a PDF file (with or without the '.pdf') to +[UIImage imageNamed:] | |
- You can use the name of a PDF file inside Interface Builder, in your UIImageView's | |
- Turn a multi-page PDF into an array of UIImage's... good for animation. | |
Feedback to gists @nielsbot.com. Thanks! |
// this code will cause a UIView to shake--good for "login error" | |
CAKeyframeAnimation * anim = [ CAKeyframeAnimation animationWithKeyPath:@"transform" ] ; | |
anim.values = [ NSArray arrayWithObjects: | |
[ NSValue valueWithCATransform3D:CATransform3DMakeTranslation(-5.0f, 0.0f, 0.0f) ], | |
[ NSValue valueWithCATransform3D:CATransform3DMakeTranslation(5.0f, 0.0f, 0.0f) ], | |
nil ] ; | |
anim.autoreverses = YES ; | |
anim.repeatCount = 2.0f ; | |
anim.duration = 0.07f ; |
Unfinished and not tested beyond my own case.
Usage
var wait = new Wait();
wait.complete(function () {
console.log('we are done - now report');
});
tell application "BBEdit" | |
set output to "" | |
set docs to every project document | |
repeat with current in docs | |
repeat 1 times | |
if file of current is missing value then | |
exit repeat | |
end if | |
set asAlias to file of current as alias | |
// ==UserScript== | |
// @name Use Markdown, sometimes, in your HTML. | |
// @author Paul Irish <http://paulirish.com/> | |
// @link http://git.io/data-markdown | |
// @match * | |
// ==/UserScript== | |
// If you're not using this as a userscript just delete from this line up. It's cool, homey. |
(* | |
File: | |
Application.applicationWillSwitchOut.scpt | |
Abstract: | |
This script will automatically save all on-disk text documents with unsaved | |
changes when BBEdit loses focus. | |
Version: |