Skip to content

Instantly share code, notes, and snippets.

View angus-c's full-sized avatar

angus croll angus-c

View GitHub Profile
Array.apply(0,Array(123)).map(String.fromCharCode).slice(97)
i=96,r=[];while(i++<122)r.push(String.fromCharCode(i));r
String.fromCharCode[b='apply'](0,(a=Array)[b](0,a(123)).map(Date.call,Number)).slice(97)
eval('i=97;String.fromCharCode('+Array(26).join('i++,')+'i)')

So long as you write what you wish to write, that is all that matters; but to sacrifice a hair of the head of your vision, a shade of its colour, in deference to some professor with a measuring-rod up his sleeve, is the most abject treachery...

– Virginia Woolf on breaking the rules.

@angus-c
angus-c / index.html
Created September 22, 2014 04:18
A Bouncing Ball // source http://jsbin.com/figotoreqoxe/83
<!DOCTYPE html>
<html>
<head>
<title>A Bouncing Ball</title>
</head>
<body>
<canvas id="canvas" width="300" height="300"></canvas>
<input id="delay" type="range" max="2000" value="10"/>
@angus-c
angus-c / index.html
Created September 23, 2014 16:39
A Bouncing Ball // source http://jsbin.com/hidori/11
<!DOCTYPE html>
<html>
<head>
<title>A Bouncing Ball</title>
</head>
<body>
<canvas id="canvas" width="300" height="300"></canvas>
<input id="delay" type="range" max="2000" value="10"/>
@angus-c
angus-c / index.html
Created September 25, 2014 05:05
A Bouncing Ball // source http://jsbin.com/hidori/75
<!DOCTYPE html>
<html>
<head>
<title>A Bouncing Ball</title>
</head>
<body>
<canvas id="canvas" width="300" height="300"></canvas>
<input id="delay" type="range" max="2000" value="10"/>
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="http://code.jquery.com/jquery-git2.js"></script>
<title>bouncer</title>
</head>
<body>
<svg id="box" style="border: 1px solid; width: 200px; height: 200px" height="100%"></svg>
@angus-c
angus-c / index.js
Last active August 29, 2015 14:08
requirebin sketch
var reflux = require('reflux');
console.log(reflux.createAction);
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
function compose(f,g) {
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="http://code.jquery.com/jquery-git2.js"></script>
<title>bouncer</title>
</head>
<body>
<svg id="box" class="space" style="border: 1px solid; width: 400px; height: 400px" height="100%"></svg>
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="http://code.jquery.com/jquery-git2.js"></script>
<title>bouncer</title>
</head>
<body>
<svg id="box" class="space" style="border: 1px solid; width: 400px; height: 400px" height="100%"></svg>