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
#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? |
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 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' ) |