Title: A 2012 blog post
Date: 2012-01-01T00:00:00
Tags: foo, bar, tag with spaces, baz
(defn a 5)
function *listen(el, evType) { | |
while (true) | |
yield function(cb) { | |
var fire = function(ev) { | |
el.removeEventListener(evType, fire); | |
cb(null, ev); | |
} | |
el.addEventListener(evType, fire); | |
} | |
} |
Title: A 2012 blog post
Date: 2012-01-01T00:00:00
Tags: foo, bar, tag with spaces, baz
(defn a 5)
Title: A 2012 blog post
Date: 2012-01-01T00:00:00
Tags: foo, bar, tag with spaces, baz
(defn a 5)
<!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> |
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 |
View this code at http://livecoding.io/5429444
View this code at http://livecoding.io/5427629
View this code at http://livecoding.io/5427602
<!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")); |
;; 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\\) " |