I hereby claim:
- I am ppg on github.
- I am ppg (https://keybase.io/ppg) on keybase.
- I have a public key ASACzQSzdI5rxC2H0DDJpw9al7QtEZWpqqu79uu3EqVQtwo
To claim this, I am signing this object:
| 'use strict'; | |
| const chai = require('chai'); | |
| const expect = chai.expect; | |
| const err1 = new Error('test error'); | |
| const err2 = new Error('test error'); | |
| it('should match exact errors', function() { | |
| expect(err1).to.equal(err1); |
| 'use strict'; | |
| const chai = require('chai'); | |
| const expect = chai.expect; | |
| const mongoose = require('mongoose'); | |
| const ObjectId = mongoose.Schema.Types.ObjectId; | |
| const sinon = require('sinon'); | |
| const sinonChai = require('sinon-chai'); | |
| chai.use(sinonChai); |
| 'use strict'; | |
| const async = require('async'); | |
| // All fN functions should take n and m and return all permutations between the two; | |
| // i.e. for 2, 3: | |
| // ['0 - 0', '0 - 1', '0 - 2', '1 - 0', '1 - 1', '1 - 2'] | |
| function workerTraditional(i, j, callback) { | |
| // Put in a sleep |
| var async = require('async'); | |
| var tasks = []; | |
| for (var i = 0; i < 25; i++) { | |
| (function(i) { | |
| if (i % 2 === 0) { | |
| tasks.push(function(cb) { | |
| console.log('Start ' + i.toString() + ' - fast'); | |
| setTimeout(function() { | |
| console.log('Finish ' + i.toString() + ' - fast'); |
I hereby claim:
To claim this, I am signing this object:
| # foo LWRP | |
| action :create do | |
| service new_resource.name do | |
| action :start | |
| end | |
| end | |
| # Usage in a recipe | |
| foo "bar" | |
| template "something" do |