I hereby claim:
- I am vko-online on github.
- I am littleponyeater (https://keybase.io/littleponyeater) on keybase.
- I have a public key ASCMFSuxo34yRr0Xahl2E1zRcgNEICm-hhSavVUuC_bHMwo
To claim this, I am signing this object:
| const crypto = require('crypto'); | |
| const HASH_BYTES = 32; | |
| const SALT_BYTES = 16; | |
| const ITERATIONS = 15000; | |
| const ENCODING = 'base64'; | |
| const ALGORITHM = 'sha512'; | |
| exports.hashPassword = password => { | |
| return new Promise((resolve, reject) => { |
| /*interface BarData { | |
| day1: number; | |
| day2: number; | |
| ... | |
| day30: number; | |
| }*/ | |
| type LessThan<N extends number, A extends number[] = []> = | |
| N extends A['length'] ? A[number] : LessThan<N, [...A, A['length']]>; |
I hereby claim:
To claim this, I am signing this object:
| accessToken 244120591.2f646e9.06a1bfe2c26e49499252236b2be6436b | |
| clientId 924f677fa3854436947ab4372ffa688d | |
| accessToken 8987997106.924f677.8555ecbd52584f41b9b22ec1a16dafb9 |
| const request = require("request-promise-native"); | |
| const brain = require("brain.js"); | |
| const net = new brain.NeuralNetwork(); | |
| let DATA = []; | |
| const dataJson = require('./matches.json') | |
| const nsort = (a, b) => a - b | |
| function calc(val) { | |
| const train_list = dataJson.map(data => { |
| function flat(arr, old) { | |
| var plain = old || []; | |
| arr.reduce(function(prev, curr) { | |
| if(curr instanceof Array) { | |
| return flat(curr, plain); | |
| } else { | |
| plain.push(curr); | |
| return plain; | |
| } |
| //this will generate 8wde for example | |
| function genShortUid() { | |
| return ('0000' + (Math.random()*Math.pow(36,4) << 0).toString(36)).slice(-4); | |
| } |
| //use angular services inside browser's console | |
| var User = angular.injector(['lbServices']).get('User'); |
| //remove dangerous symbols | |
| function safeRegexp(query) { | |
| return query.replace(/([.?*+^$[\]\\(){}|-])/g, '\\$1'); | |
| } |