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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>HTML5 Canvas Transformation</title> | |
</head> | |
<body> | |
<script> | |
// Create our canvas and append it to the document body | |
var stage = document.createElement("canvas"); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>WebSocket Client</title> | |
<style> | |
#output { | |
border: solid 1px #000; | |
} | |
</style> | |
</head> |
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
diff --git a/htdocs/lib/weltmeister/edit-entities.js b/htdocs/lib/weltmeister/edit-entities.js | |
index f9d9250..6272f3e 100644 | |
--- a/htdocs/lib/weltmeister/edit-entities.js | |
+++ b/htdocs/lib/weltmeister/edit-entities.js | |
@@ -141,7 +141,7 @@ wm.EditEntities = ig.Class.extend({ | |
for( var i = 0; i < this.entities.length; i++ ) { | |
var ent = this.entities[i]; | |
if( ent.touches(this.selector) ) { | |
- this.selector.offset = {x: (x - ent.pos.x + ent.offset.x), y: (y - ent.pos.y + ent.offset.y)}; | |
+ this.selector.offset = {x: (x - ent.pos.x), y: (y - ent.pos.y)}; |
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
const readline = require("readline"); | |
let input = readline.createInterface({ | |
input: process.stdin, | |
output: process.stdout | |
}); | |
let queryCommand = () => { | |
input.question("Command: ", (command) => { | |
if (command === "exit") { |
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 permut = function (array, count, initial, output) { | |
if (initial.length >= count) { | |
output.push(initial); | |
} else { | |
for (var i = 0; i < array.length; ++i) { | |
permut(array, count, initial.concat(array[i]), output); | |
} | |
} | |
}; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Canvas Path Fill test</title> | |
</head> | |
<body> | |
<canvas id="stage" width="256" height="256"></canvas> | |
<script> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>QBasic</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |
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
diff --git a/lib/impact/animation.js b/lib/impact/animation.js | |
index 20839f9..f367083 100644 | |
--- a/lib/impact/animation.js | |
+++ b/lib/impact/animation.js | |
@@ -45,6 +45,7 @@ ig.Animation = ig.Class.extend({ | |
this.frameTime = frameTime; | |
this.sequence = sequence; | |
this.stop = !!stop; | |
+ this.tile = this.sequence[0]; | |
}, |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>jQuery Event Test</title> | |
<style> | |
.red { | |
background: #f00; | |
} | |
.blue { | |
background: #00f; |
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 AStar; | |
(function () { | |
var Node = function (index, x, y, parent) { | |
this.index = index; | |
this.x = x; | |
this.y = y; | |
this.parent = parent || null; | |
this.f = 0; |
NewerOlder