Skip to content

Instantly share code, notes, and snippets.

@perilstar
Last active December 8, 2017 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save perilstar/aa6d15daa02ffa6016645e848ec50d22 to your computer and use it in GitHub Desktop.
Save perilstar/aa6d15daa02ffa6016645e848ec50d22 to your computer and use it in GitHub Desktop.
Analysis of procrastination data
const _ = require('underscore');
let a = `
Always
Often
Very often
Very often
Always
Rarely
Always
Often
Very often
Rarely
Often
Often
Often
Rarely
Very often
Often
Very often
Never
Always
Very often
`;
let b = `
Always
Often
Very often
Often
Very often
Often
Always
Always
Rarely
Often
Rarely
Rarely
Often
Often
Very often
Rarely
Very often
Very often
Rarely
Often
Very often
Very often`;
let c = `
Always
Very often
Always
Never
Always
Very often
Always
Always
Very often
Often
Rarely
Very often
Always
Often
Very often
Often
Very often`
let d = `
Rarely
Rarely
Often
Very often
Rarely
Often
Always
Often
Very often
Very often
Never
Often
Rarely
Very often
Very often
Rarely
Always
Rarely
Very often
Very often`
let e = `
Very often
Always
Often
Very often
Very often
Often
Often
Often
Always
Always
Very often
Often
Rarely
Very often
Often
Very often
Very often
Very often
Never
Always
Always
Always`
let f = `
Often
Very often
Often
Rarely
Very often
Rarely
Often
Very often
Very often
Rarely
Very often
Very often
Often
Very often
Often
Very often
Very often
Rarely
Often
Often
Rarely
Very often`
//naming things is hard
const doThing = (arr) => _.chain(arr.split("\n")).compact().shuffle().first(15).value();
g = [].concat(
doThing(a),
doThing(b),
doThing(c)
).sort();
h = [].concat(
doThing(d),
doThing(d),
doThing(f)
).sort();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment