This file contains hidden or 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
| function hyphenize (arg = '') { | |
| return arg.match(/([a-z]{1,2})/ig).join('-'); | |
| } |
This file contains hidden or 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
| (async function () { | |
| const fetch = require('node-fetch'), | |
| moment = require('moment'), | |
| users = new Map(), | |
| size = 100; | |
| let i = -1, | |
| nth = -1, | |
| done = false; |
This file contains hidden or 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
| new_recommended = db.profiles.aggregate([{$unwind: "$recommended"}, {$group: {_id : "$_id", recommended: {$push: "$recommended"}}}]).toArray(); | |
| new_recommended.forEach(function (x) {db.profiles.update({_id: x._id}, {$set: {recommended: x.recommended}})}); |
This file contains hidden or 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
| 'use strict'; | |
| const url = require('url'), | |
| config = require('./config.json'), | |
| mongodb = require('mongodb'), | |
| keysort = require('keysort'); | |
| function clone (arg) { | |
| return JSON.parse(JSON.stringify(arg)); | |
| } |
This file contains hidden or 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
| function curry (fn, ...x) { | |
| const lfn = fn.apply(fn, x); | |
| return function (...y) { | |
| return lfn.apply(lfn, y); | |
| }; | |
| } |
This file contains hidden or 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
| function bin2dec (arg) { | |
| let output = 0; | |
| arg.split("").reverse().forEach((i, idx) => { | |
| let v = Number(i); | |
| if (v > 0) { | |
| output += idx > 0 ? Math.pow(2, idx) : 1; | |
| } | |
| }); |
This file contains hidden or 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
| Wordlist ver 0.732 - EXPECT INCOMPATIBLE CHANGES; | |
| acrobat africa alaska albert albino album | |
| alcohol alex alpha amadeus amanda amazon | |
| america analog animal antenna antonio apollo | |
| april aroma artist aspirin athlete atlas | |
| banana bandit banjo bikini bingo bonus | |
| camera canada carbon casino catalog cinema | |
| citizen cobra comet compact complex context | |
| credit critic crystal culture david delta | |
| dialog diploma doctor domino dragon drama |
This file contains hidden or 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
| ### Keybase proof | |
| I hereby claim: | |
| * I am avoidwork on github. | |
| * I am jasonmulligan (https://keybase.io/jasonmulligan) on keybase. | |
| * I have a public key whose fingerprint is A46E 0C2C 229C 5068 236E 4D1E FD34 0167 2668 CACA | |
| To claim this, I am signing this object: |
This file contains hidden or 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
| { | |
| "identifier": "", | |
| "sender": "", | |
| "sent": "", | |
| "status": "", | |
| "msgType": "", | |
| "scope": "", | |
| "restriction": "", | |
| "addresses": "", | |
| "incidents": "", |