Install the two dependencies, ImageMagick and Ghostscript.
$ brew install imagemagick
$ brew install ghostscript| [caps]>[escape][t&h250][lwin] | |
| [=]>[=][t&h250][hyper] | |
| [\]>[\][t&h250][meh] | |
| [scroll]>[shutdn] | |
| [kp=]>[kp=mac] | |
| [kp-lctrl]>[kp-lwin] | |
| [rctrl]>[rwin] | |
| [kp-rctrl]>[kp-rwin] | |
| [kp-rwin]>[kp-rctrl] | |
| [delete]>[lwin] |
| #!/bin/bash | |
| # run_ios_sim builds and runs an iOS app on the simulator | |
| # | |
| # It is designed to replicate the behavior of "Run" in Xcode and assumes basic | |
| # xcodebuild usage. | |
| # | |
| # USAGE: | |
| # export IOS_SIM_UDID=342F9A20-DF48-41A9-BE60-C6B35F47E97F; \ | |
| # export BUNDLE_IDENTIFIER=a.Some; \ | |
| # export APP_PATH=$PWD/Build/Debug-iphonesimulator/$APP_NAME.app \ |
| protocol CanBark { | |
| func bark() -> String | |
| } | |
| class Animal { | |
| func animalType() -> String { | |
| return "Animal" | |
| } | |
| } |
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
const Article = require('../../../../app/models/article');Those suck for maintenance and they're ugly.
| #!/bin/sh | |
| echo "NB! This process could be too destructive sometimes and you may need to run 'bundle' command from your project directory." | |
| echo "Do you want to cleanup all gemsets?" | |
| read -p "(anything other than 'yes' will cancel) > " ANSWER | |
| if [[ $ANSWER != "yes" ]] | |
| then | |
| echo "Phew...\nMay be another day." | |
| else |
| // | |
| // UIImage+H568.m | |
| // | |
| // Created by Angel Garcia on 9/28/12. | |
| // Copyright (c) 2012 angelolloqui.com. All rights reserved. | |
| // | |
| #import <objc/runtime.h> | |
| @implementation UIImage (H568) |
| #!/bin/bash | |
| # | |
| # DESCRIPTION: | |
| # | |
| # Set the bash prompt according to: | |
| # * the active virtualenv | |
| # * the branch/status of the current git repository | |
| # * the return value of the previous command | |
| # * the fact you just came from Windows and are used to having newlines in | |
| # your prompts. |