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
$ time ./script/bootstrap.py | |
real 5m14.329s | |
user 1m22.303s | |
sys 0m37.695s | |
$ time ./script/build.py | |
ninja: Entering directory `out/Release' | |
[1010/1010] STAMP Atom.app | |
ninja: Entering directory `out/Debug' |
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 audio = new Audio(); | |
audio.src = '/path/to/audio.wav'; | |
function play() { | |
audio.pause(); | |
audio.currentTime = 0; | |
audio.play(); | |
} |
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
up | |
install coreutils | |
install ffmpeg | |
install rbenv | |
install ruby-build | |
install rbenv-gemset |
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
[ | |
{ | |
"activity": "aerobics", | |
"geo": false, | |
"place": true, | |
"color": "bc4fff", | |
"units": "duration,calories" | |
}, | |
{ |
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
if (a) a.stop(); | |
console.time('create'); | |
a = context.createBufferSource(); | |
a.buffer = buffers[(Math.random() * buffers.length) | 0]; | |
a.connect(context.destination); | |
console.timeEnd('create'); | |
a.noteOn(0); | |
create: 0.068ms |
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 Emitter = require('events').EventEmitter; | |
var emitter = new Emitter(); | |
var io = require('socket.io')(); | |
var fwd = require('forward-events'); | |
var nsp = io.of('/what-time-is-it'); | |
fwd(emitter, nsp); | |
setInterval(function() { |
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
float xoff = 0.0; | |
float yoff = 0.0; | |
void setup() { | |
size(600, 600); | |
} | |
void draw() { | |
noStroke(); |
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 io = require('socket.io-client'); | |
var connection = process.env.LATENCY_CONNECTION || 100; | |
var host = process.env.LATENCY_HOST || 'ws://localhost:3000'; | |
var options = { | |
forceNew: true | |
}; | |
for (var i = 0; i < connection; i++) { | |
(function() { | |
var timerId; |
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 ioc = require('socket.io-client'); | |
var timers = []; | |
var clients = []; | |
var client = require('node-serf').connect({ port: 7373 }, function() { | |
client.stream({ Type: 'user:socket.io' }, function(res) { | |
console.log(require('util').inspect(res)); | |
try { | |
var payload = JSON.parse(res.Payload); |
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
Built-in Atom packages (77) | |
├── archive-view@0.36.0 | |
├── atom-dark-syntax@0.19.0 | |
├── atom-dark-ui@0.34.0 | |
├── atom-light-syntax@0.20.0 | |
├── atom-light-ui@0.29.0 | |
├── autocomplete@0.31.0 | |
├── autoflow@0.18.0 | |
├── autosave@0.15.0 | |
├── background-tips@0.16.0 |