Skip to content

Instantly share code, notes, and snippets.

View DayBr3ak's full-sized avatar
🎯
Focusing

Benjamin G DayBr3ak

🎯
Focusing
View GitHub Profile
@DayBr3ak
DayBr3ak / curry.js
Last active April 23, 2018 12:40
Js Es6 Auto Currying
/** cu - auto currying function
*
* @param {function} fn the function to autocurry
* @param {integer} argc the number of args to autocurry if reflection is not possible
*/
function cu(fn, argc = null) {
const len = argc || fn.length;
const makeStack = (argsStack = []) => (...n) => {
// ==UserScript==
// @name twitch test
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.twitch.tv/*
// @grant none
// ==/UserScript==
const wait = t => new Promise(r => setTimeout(r, t));