This file contains hidden or 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 Event = require('geval') | |
| var Observ = require('observ') | |
| var event = Event(function(broadcast) { | |
| var releases = [] | |
| state.items(rebind) | |
| function handle (event) { | |
| if (event.event === 'start') { | |
| broadcast() | |
| } | 
  
    
      This file contains hidden or 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
    
  
  
    
  | // see https://msdn.microsoft.com/en-gb/goglobal/bb895996.aspx | |
| var exec = require('child_process').exec | |
| exec('reg query "HKEY_CURRENT_USER\\Keyboard Layout\\Preload"', {encoding: 'utf8'}, function(err, result) { | |
| if (result) { | |
| var match = result.match(/\s1\s+REG_SZ\s+0000([A-F0-9]+)/i) | |
| if (match) { | |
| console.log(match[1]) | |
| } | |
| } | 
  
    
      This file contains hidden or 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
    
  
  
    
  | function monitor(node){ | |
| var j = node.context.createScriptProcessor(4096, 1, 1) | |
| j.onaudioprocess = function(e){ | |
| console.log(e.inputBuffer.getChannelData(0)[0]) | |
| } | |
| node.connect(j) | |
| j.connect(node.context.destination) | |
| } | 
  
    
      This file contains hidden or 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 source = '/Users/matt/Documents/Loop Drop' | |
| var output = '/Users/matt/Projects/Destroy With Science/Drop' | |
| exportSetup('DWS-Time Travellers Die') | |
| function exportSetup(name){ | |
| var data = JSON.parse(fs.readFileSync(source + '/setups/' + name + '.json')) | |
| data.chunks.forEach(function(chunk){ | 
  
    
      This file contains hidden or 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 ArrayGrid = require('array-grid') | |
| var fs = require('fs') | |
| var map = { | |
| "Floating.json": [ | |
| { "from": "Meowra-Floating A.json", | |
| "chunks": { | |
| "Spit on a stranger": [0,0, 3,3, "A"], | |
| "Crunk Bass": [2,4, 3,6, "C"], | |
| "Overdrum": [6,0, 7,3, "B"], | 
  
    
      This file contains hidden or 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
    
  
  
    
  | ### Keybase proof | |
| I hereby claim: | |
| * I am mmckegg on github. | |
| * I am mmckegg (https://keybase.io/mmckegg) on keybase. | |
| * I have a public key whose fingerprint is 3D78 1FBE 44A0 7704 4C88 FE38 4100 3FA0 D8A3 AA97 | |
| To claim this, I am signing this object: | 
  
    
      This file contains hidden or 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 mutators = [ | |
| 'fill', 'pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift' | |
| ] | |
| function ObservableArray(onChange){ | |
| var array = [] | |
| array.set = set | |
| array.onchange = onChange | 
  
    
      This file contains hidden or 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
    
  
  
    
  | module.exports = animate | |
| var requestAnimationFrame = | |
| global.requestAnimationFrame || | |
| global.webkitRequestAnimationFrame || | |
| global.mozRequestAnimationFrame || | |
| global.msRequestAnimationFrame || | |
| global.oRequestAnimationFrame || | |
| function(fn, el) { | |
| setTimeout(fn, 1000/60) | 
  
    
      This file contains hidden or 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
    
  
  
    
  | ssh -R *:1234:localhost:9966 [email protected] | |
| # http://server.com:1234 |