Distributed Image Processing by Node
.
mix new distributed_image_processing
cd distributed_image_processing
- edit the following files:
mix.exs
Cheat Sheets are greate but they are not a substitute for learning the framework and reading the documentation as we most certainly have not covered every potential example here. Please refer to the Rails Command Line Docs for more information.
You can get all of this information on the command line.
rails generate
with no generator name will output a list of all available generators and some information about global options.
rails generate GENERATOR --help
will list the options that can be passed to the specified generator.
on run {input, parameters} | |
set cmd to "vim -c startinsert" | |
if input is not in {} then | |
set myPath to POSIX path of input | |
set cmd to "vim " & quote & myPath & quote | |
end if | |
tell application "iTerm" | |
activate | |
set myTerm to (current terminal) |
#!/bin/bash | |
# | |
# transcode-video.sh | |
# | |
# Copyright (c) 2013-2015 Don Melton | |
# | |
about() { | |
cat <<EOF | |
$program 5.13 of April 8, 2015 |
The advantages of using Grunt with Cordova:
platforms
directory without having to commit the generated plugins
and platforms
directories to version control.Stack Overflow: .gitignore for PhoneGap/Cordova 3.0 projects - what should I commit?
<h1>Alert</h1> | |
<p>Bootstrap JS</p> | |
<div class="alert fade in"> | |
<button type="button" class="close" data-dismiss="alert">×</button> | |
<strong>Holy guacamole!</strong> Best check yo self, you're not looking too good. | |
</div> | |
<p></p><a ng-click="alert=true">Open Alert (AngularJS)</a></p> | |
<div class="alert fade" ng-class="{in:alert}"> | |
<button type="button" class="close" ng-click="alert=false">×</button> |
#!/bin/bash | |
# | |
# takes a url like this: | |
# http://www.disneyphotopass.com/api/photostore/getSharedImageList.ashx?ShareToken=[[token]] | |
# and saves all the pictures to ./disneypics | |
# | |
# url can be found by going to http://www.disneyphotopass.com/photoshare.aspx and sharing photos by email. | |
# the link will be in the email | |
[[ -n "$1" ]] || { echo "Please add the share url as a parameter"; exit 0; } |
# forked from Luke Jernejcic http://mostlybinary.com/2012/04/03/how-to-auto-increment-your-ios-build-number/ | |
BUILDNUM=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${PROJECT_DIR}/${INFOPLIST_FILE}") | |
BUILDNUM=$(($BUILDNUM + 1)) | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $BUILDNUM" "${PROJECT_DIR}/${INFOPLIST_FILE}" | |
# this splits a two-decimal version string, such as "0.45.123", allowing us to replace the latest build number at the 3rd position | |
VERSIONNUM=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" "${PROJECT_DIR}/${INFOPLIST_FILE}") | |
NEWVERSIONSTRING=`echo $VERSIONNUM | awk -F"." '{print $1 "." $2 ".'$BUILDNUM'" }'` | |
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $NEWVERSIONSTRING" "${PROJECT_DIR}/${INFOPLIST_FILE}" |