- download and install xcode
- XCode and enable Command Line Tools
- download and install mysql-server
nano ~/.bash_profileadd the following
| #!/bin/bash | |
| if [ $# -ne 2 ] | |
| then | |
| echo "Error in $0 - Invalid Argument Count" | |
| echo "Syntax: $0 project_name desidered_heroku_name" | |
| exit | |
| fi | |
| project_name=$1 |
| #!/bin/sh | |
| # This script was written by Jay Graves for the 360iDev Conference. | |
| # You can find the full slides available at http://skabber.com/ | |
| # This script requires Xcode and s3cmd http://s3tools.org/s3cmd | |
| # You will need your own Amazon S3 account to upload files. | |
| # Put your distribution certificates and keys in the System Keychain | |
| # otherwise you will need to use security unlock-keychain | |
| TARGET=GroupA | |
| PlistBuddy=/usr/libexec/PlistBuddy |
| <form id="foo"> | |
| Name: <input id="name"><button id="say">Say My Name!</button> | |
| </form> |
| (* | |
| File: | |
| Application.applicationWillSwitchOut.scpt | |
| Abstract: | |
| This script will automatically save all on-disk text documents with unsaved | |
| changes when BBEdit loses focus. | |
| Version: |
| // ==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. |
| 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 | |
Unfinished and not tested beyond my own case.
Usage
var wait = new Wait();
wait.complete(function () {
console.log('we are done - now report');
});| // 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 ; |
| 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! |