Skip to content

Instantly share code, notes, and snippets.

@id0Sch
Created September 7, 2016 20:31
Show Gist options
  • Save id0Sch/f97b77abf6a0a59cc453015c541f53ae to your computer and use it in GitHub Desktop.
Save id0Sch/f97b77abf6a0a59cc453015c541f53ae to your computer and use it in GitHub Desktop.
'use strict';
const _ = require('lodash');
const members = ['ido', 'hengli', 'shir', 'eran', 'elad', 'rachel', 'maayan.Ben', 'maayan.Bat', 'igor', 'tamar', 'tal'];
const n = 6;
var chunkedArr = _.chain(members).shuffle().chunk(n).value();
setTimeout(() => {
console.log('making sure Tiki is not with ido');
setTimeout(() => {
console.log('matching good looks to skill');
setTimeout(() => {
console.log('balancing frontend to backend developer ratio');
setTimeout(() => {
console.log('forcing rachel to join us');
setTimeout(() => {
console.log('done!');
console.log('First Team:', chunkedArr[0]);
console.log('Second Team:', chunkedArr[1]);
}, 300);
}, 750);
}, 300);
}, 250);
}, 1500);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment