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
/** | |
* fjenett - 2015 | |
*/ | |
import org.piecemaker2.api.*; | |
import org.piecemaker2.models.*; | |
import java.util.Properties; | |
import java.util.Date; |
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
/** | |
* Piecemaker basics: | |
* logging in and how to retrieve the API KEY | |
* | |
* fjenett 2015 | |
*/ | |
import org.piecemaker2.api.*; | |
import org.piecemaker2.models.*; | |
import java.util.Properties; |
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
var PMApi = require('piecemeta-apiclient'); | |
var ls_apiKey, ls_access_token; | |
var authService = (function(){ | |
var auth = { | |
api_key : null, | |
access_token : null, | |
getCredentials : function () { |
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
.DS_Store |
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
/** | |
* Motion Bank research, http://motionbank.org/ | |
* | |
* Example of how to load a 3D path through Piecemaker2 API | |
*/ | |
import org.piecemaker2.api.*; | |
import org.piecemaker2.models.*; | |
PieceMakerApi api; |
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
/** | |
* VLC player bindings | |
* | |
* https://github.com/caprica/vlcj | |
* http://capricasoftware.co.uk/#/projects/vlcj/tutorial/direct-rendering | |
* | |
* 2.2.0 did not work, using 2.1.5 on OS-X: | |
* http://download.videolan.org/pub/videolan/vlc/2.1.5/macosx/ | |
*/ |
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
.DS_Store |
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
// make sure Processing core.jar is in your CLASSPATH | |
// download and put underscore.js next to this file | |
// pass the working directory as first argument: | |
// $ java org.mozilla.javascript.tools.shell.Main sketch.js "`pwd`" | |
var currentDir = arguments[0] || '.', | |
sketchWidth = 320, | |
sketchHeight = 240, | |
sketchName = 'Underscore test', | |
sketchProto = null, |
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
for f in *.jpg; do ff=`echo $f | sed 's/.jpg//' | sed 's/^0*//'`; ff=$(( $ff - 85 )); ff=$( printf '%06s' $ff ); echo $ff; mv $f $ff.jpg; done |
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
/** | |
* JavaCV in Processing 2.0b5 on MacBook with 64bit | |
* | |
* OpenCV from MacPorts: | |
* - /opt/local/macports/macports.conf needs to have "build_arch" to be set to x86_64 | |
* - now just do: sudo port install opencv | |
* | |
* Sketch has the .jar files from this download inside "code" folder (just drag-drop them on sketch window): | |
* - http://code.google.com/p/javacv/downloads/detail?name=javacv-0.2-bin.zip | |
*/ |