Run via a command like this:
lerna ls -a --loglevel silent | xargs -L1 ./restructure.js
Run via a command like this:
lerna ls -a --loglevel silent | xargs -L1 ./restructure.js
fps = ((max_buffer) => { | |
let lastTime, running, history; | |
function loop(){ | |
let now = window.performance.now(); | |
history.push(now - lastTime); | |
lastTime = now; | |
if(history.length > max_buffer){ | |
history.shift(); |
I hereby claim:
To claim this, I am signing this object:
Just some ideas. My original idea was to require everything to be mocked out before the tests run and to throw an exception if they try to hit an unmocked endpoint. However, axios wraps adapters in a promise which delays execution (and therefore knowledge of what is mocked/unmocked) until promise execution time. This caused me to change my approach.
Now the idea is that you call a specific resolve
method. This method will then work against all intercepted
requests and all mocked paths trying to resolve requests in submission order. If they passed true
into
#!/usr/bin/env node | |
//Reads a list of unique names from stdin then when the stream is closed, | |
//Prints the assignments to stdout | |
var es = require('event-stream'); | |
var random = require('random-item-in-array'); | |
var names = {}; |
0 info it worked if it ends with ok | |
1 verbose cli [ 'node', '/usr/local/bin/npm', 'i', 'handlebars@4.0.0' ] | |
2 info using npm@3.3.0 | |
3 info using node@v0.12.2 | |
4 verbose node symlink /usr/local/bin/node | |
5 silly loadCurrentTree Starting | |
6 silly install loadCurrentTree | |
7 silly install readLocalPackageData | |
8 silly fetchPackageMetaData handlebars@4.0.0 | |
9 silly fetchNamedPackageData handlebars |
//colors must be required use .yellow, .bold, etc. on strings | |
require('colors'); | |
//Dependencies | |
var words = require('in-words').en; | |
var calc = require('training-calculator'); | |
//If this was called directory, calculate the result | |
if(require.main === module){ | |
var args = process.argv.slice(2); |
#!/usr/bin/env node | |
var less = require('gulp-less'), | |
express = require('express'), | |
gulp = require('gulp'); | |
var app = express(); | |
app.get('/test.css', function(req, res){ | |
gulp.src('test.less') |