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 array = [{ | |
'id': 1 | |
}, { | |
'id': 2 | |
}, { | |
'id': 2 | |
}, { | |
'id': 2 | |
}]; |
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
"use strict"; | |
(function () { | |
function toArray(list) { | |
return Array.prototype.slice.call(list); | |
} | |
var list = {}, replacements = {}, | |
re = /(\{\{)(\w+)(\}\})/gi; | |
document.body.innerHTML = document.body.innerHTML.replace(re, function (b, a, c) { |
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> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
</body> | |
</html> |
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
onmessage = function (event) { | |
var context = new CanvasRenderingContext2D(); | |
event.data.setContext(context); // event.data is the CanvasProxy object | |
setInterval(function () { | |
context.clearRect(0, 0, context.width, context.height); | |
context.fillText(new Date(), 0, 100); | |
context.commit(); | |
}, 1000); | |
}; |
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
function Point3d(a, c, b) { | |
this.x = (a === undefined) ? 0 : a; | |
this.y = (c === undefined) ? 0 : c; | |
this.z = (b === undefined) ? 0 : b; | |
this.fl = 400; | |
this.vpX = 0; | |
this.vpY = 0; | |
this.cX = 0; | |
this.cY = 0; | |
this.cZ = 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
<script type="text/js-worker"> | |
</script> | |
<textarea rows="20" cols="100" id='workersrc'>onmessage = function (e) { | |
if(e.data == "draw") w.getPoints(); | |
var d = JSON.parse(e.data); | |
if(JSON.parse(e.data).action == "add") w.addBall(parseFloat(d.x), parseFloat(d.y), 0, 0, parseFloat(d.r)) | |
}; | |
Number.prototype.add = function (b) { |
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> | |
<meta name="description" content="puzzle v3.0 rotate and bezier curves to make shapes of pieces." /> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<img hidden=true id="image" style="position:absolute;visibility:hidden;" src="http://www.prlog.org/11949574-hot-girl.jpg"></img> | |
</body> |
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> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
</body> | |
</html> |
NewerOlder