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
@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 / 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'));
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 [email protected]: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
dennis@ubuntu:~/workspaces/museum$ git push [email protected]: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
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
$("#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);
}