Skip to content

Instantly share code, notes, and snippets.

@jessejanderson
jessejanderson / macros.md
Last active March 26, 2024 08:33
Don't Write Macros (but do learn how they work)
import { render } from 'react-dom';
render(
<div>
<button>
Hello World!
</button>
</div>
,
document.getElementById('app'),
anonymous
anonymous / untrusted-lvl2-solution.js
Created April 6, 2015 03:57
Solution to level 2 in Untrusted: http://alex.nisnevich.com/untrusted/
/********************
* theLongWayOut.js *
********************
*
* Well, it looks like they're on to us. The path isn't as
* clear as I thought it'd be. But no matter - four clever
* characters should be enough to erase all their tricks.
*/
function startLevel(map) {
@risacher
risacher / main.js
Created July 1, 2014 02:23
glue to make blessed (low-level API) work in browserify with term.js
var blessed = require("blessed");
window.onload = function () {
var term = new Terminal({
cols: 80,
rows: 24,
useStyle: true,
screenKeys: true
});