This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
THREE.CSG | |
@author Chandler Prall <[email protected]> http://chandler.prallfamily.com | |
Wrapper for Evan Wallace's CSG library (https://github.com/evanw/csg.js/) | |
Provides CSG capabilities for Three.js models. | |
Provided under the MIT License | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pull in the modules we're going to use | |
cocos = require 'cocos2d' # Import the cocos2d module | |
nodes = cocos.nodes # Convenient access to 'nodes' | |
events = require 'events' # Import the events module | |
geo = require 'geometry' # Import the geometry module | |
# Convenient access to some constructors | |
Layer = nodes.Layer | |
Scene = nodes.Scene | |
Label = nodes.Label |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### ABOUT: See: http://gist.github.com/366269 | |
### Runs rsync, retrying on errors up to a maximum number of tries. | |
### On failure script waits for internect connection to come back up by pinging google.com before continuing. | |
### | |
### Usage: $ ./rsync-retry.sh source destination | |
### Example: $ ./rsync-retry.sh [email protected]:~/* ~/destination/path/ | |
### | |
### INPORTANT: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# grab the latest backup from the warehouse data hoarder | |
# this file goes in the root of the nanobox project. | |
# it assumes you followed the backup guide: | |
# https://content.nanobox.io/data-safety-with-nanobox-backup-and-recovery/ | |
search=${1:-backup} | |
port=7410 | |
address="https://localhost:$port/blobs" |