Skip to content

Instantly share code, notes, and snippets.

@tchoi8
tchoi8 / mirror.js
Last active August 29, 2015 14:17 — forked from mnmly/mirror.js
var fs = require( 'fs' )
var struggle = fs.readFileSync( __dirname + '/struggle.txt', 'utf-8' )
console.log( mirror(struggle, 45, true ) );
console.log( '--------------------' );
console.log( mirror(struggle, 90, false ) );
function mirror( str, gap, keep ) {
var lines = str.split( '\n' )
@tchoi8
tchoi8 / main.cpp
Created February 19, 2014 05:02 — forked from kylemcdonald/main.cpp
#include "ofMain.h"
// what happens when we can look back in time? i.e., add delays to io?
// this can be modeled with one pass-through-gate or two not-gates.
// or with a single and-gate with both inputs connect to the same output.
// what happens when the the circuit can control its own topology?
// this can be modeled with a very large circuit that switches between sub-circuits
// what happens when we use gates with more than two inputs?
// this can be modeled with a sub-circuit
// what happens when gates have floating point values with schmitt triggers?