View this code at http://livecoding.io/5427602
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
$.ajaxSetup({ | |
cache: true | |
}); | |
var s1 = $.getScript('https://raw.github.com/Animatron/player/master/vendor/matrix.js'); | |
var s2 = $.getScript('https://raw.github.com/Animatron/player/master/anm.player.js'); | |
var s3 = $.getScript('https://raw.github.com/Animatron/player/master/anm.builder.js'); | |
//var s4 = $.getScript('https://raw.github.com/Animatron/player/master/anm.collisions.js'); | |
$.when( s1, s2, s3 ).then(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
var http = require("http"); | |
var fs = require("fs"); | |
var path = require("path"); | |
var url = require("url"); | |
var mimeTypes = { | |
"html": "text/html", | |
"jpeg": "image/jpeg", | |
"jpg": "image/jpeg", | |
"png": "image/png", |
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 lambda for anonymous functions | |
(font-lock-add-keywords | |
'js2-mode `(("\\(function\\) *(" | |
(0 (progn (compose-region (match-beginning 1) | |
(match-end 1) "\u0192") | |
nil))))) | |
;; Use right arrow for return in one-line functions | |
(font-lock-add-keywords | |
'js2-mode `(("function *([^)]*) *{ *\\(return\\) " |
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></title> | |
<script type="text/javascript" src="http://www.flapjax-lang.org/download/flapjax-2.1.js"></script> | |
<script type="text/javascript"> | |
function loader() { | |
aCanvas = document.getElementById("canv"); | |
mouseMovesAndOversE = mergeE(changes(mouseB(aCanvas)), $E(aCanvas,"mouseover")); |
View this code at http://livecoding.io/5427629
View this code at http://livecoding.io/5429444
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
screens = [ | |
Hint(["01mouse", "spike"],"aumloop"), | |
Level([HeadSpikes(.2,100,0)], 10), // 1 | |
Level([HeadSpikes(.2,150,10)], 10), // 1 | |
Level([HeadSpikes(.2,150,20)], 10), // 1 | |
Hint(["csaw"],"aumloop"), | |
Level([CenterSaws(.4,100,5)],8.0), // 2 | |
Level([CenterSaws(.3,100,5)],8.0), // 3 | |
Level([SmartSaws(.3,100,10)],8.0), // 4 |
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 http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<title> - jsFiddle demo</title> | |
<script type='text/javascript' src='//code.jquery.com/jquery-2.0.2.js'></script> | |
<script type='text/javascript' src="//rawgithub.com/krux/postscribe/master/dist/postscribe.min.js"></script> | |
</head> |
Title: A 2012 blog post
Date: 2012-01-01T00:00:00
Tags: foo, bar, tag with spaces, baz
(defn a 5)