Skip to content

Instantly share code, notes, and snippets.

View dennisschaaf's full-sized avatar

Dennis Schaaf dennisschaaf

  • San Jose, Ca | Munich, DE
View GitHub Profile
$("#mainContent").droppable({
drop: function(event, ui) {
debug("placing object");
debug("inventory placeObject painting1" + event.pageX + " " + event.pageY) ;
Client.event("navcommand", "inventory placeObject painting1" + event.pageX + " " + event.pageY);
}
run:5: DeprecationWarning: os.popen2 is deprecated. Use the subprocess module.
sin, sout = os.popen2("ps -af")
xterm -e "cd build/cmake; ./proximity_d" &
xterm -e "cd build/cmake; ./space_d" &
python csv_converter.py scene.csv scene.db
run:57: DeprecationWarning: os.popen2 is deprecated. Use the subprocess module.
sin, sout = os.popen2(cmd)
cd build/cmake && cppoh_d --db ../../scene.db
sh: cppoh_d: not found
dennis@ubuntu:~/workspaces/museum$ git push git@github.com:speedlimits/museum.git origin master
fatal: refs/remotes/origin/HEAD cannot be resolved to branch.
dennis@ubuntu:~/workspaces/museum$ fatal: The remote end hung up unexpectedly
C:\Documents and Settings\Owner\My Documents\Workspaces\museum>git pull
remote: Counting objects: 30, done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 17 (delta 8), reused 0 (delta 0)
Unpacking objects: 100% (17/17), done.
From git@github.com:speedlimits/museum
0f8441c..b702652 ccrma_master -> origin/ccrma_master
error: Entry 'build/cmake/camera_path.csv' not uptodate. Cannot merge.
fatal: merging of trees 0d80a0ddf19d106a90a52859ca42772cf304c1b4 and 7391b16a364
d43f75e88300d811cf5c7ce645526 failed
@dennisschaaf
dennisschaaf / skeleton.html
Created December 20, 2011 00:35
Simple Canvas Example
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://static.dennisschaaf.com/hand-canvas-pre-release.js"></script>
<script type="text/javascript">
function drawCanvas(){
var canvas = document.getElementById('tutorial');
if(canvas.getContext) {
// Get the context and convert it to a hand canvas
var ctx = handCanvas(canvas.getContext('2d'));
@dennisschaaf
dennisschaaf / example1-drawLines.js
Created December 20, 2011 11:25
Draw triangles using line commands
// Draw a Line
ctx.beginPath();
ctx.moveTo(10, 100);
ctx.lineTo(110,100);
ctx.lineTo(80, 0);
ctx.lineTo(10, 100);
ctx.stroke();
// Draw another Line
ctx.beginPath();
@dennisschaaf
dennisschaaf / example1-drawLine.js
Created December 20, 2011 11:39
A long hand drawn line in html5 canvas.
// Draw a long hand drawn line in html5 canvas
ctx.beginPath();
ctx.moveTo(300,35);
ctx.lineTo(35,150);
ctx.stroke();
@dennisschaaf
dennisschaaf / example1-drawRect.js
Created December 20, 2011 12:01
Draw rectangles using canvas.
// Draw a stroked rect
ctx.beginPath();
ctx.rect(10, 10, 100, 100);
ctx.stroke();
// Draw a filled rect
ctx.fillRect(200, 10, 100, 100);
@dennisschaaf
dennisschaaf / example1-drawCircle.js
Created December 20, 2011 12:29
Hand Drawn Circles in HTML5
// Draw Hand Drawn Circle With Outline
ctx.beginPath();
ctx.arc(100, 100, 80, 0, Math.PI * 2);
ctx.stroke();
// Draw filled Hand Drawn Circle
ctx.beginPath();
ctx.arc(300, 100, 80, 0, Math.PI * 2);
ctx.fill();
@dennisschaaf
dennisschaaf / gist:1505587
Created December 21, 2011 10:47
The original Canto constructor call
/**
* The constructor for the Canto class.
* This constructor is private and is not exported. Use the canto()
* factory function instead.
* @constructor
* @private
*/
function Canto(canvas) {
if (!canvas.getContext)
throw new Error("canto() requires a canvas element or id");