I hereby claim:
- I am kra3 on github.
- I am kra3 (https://keybase.io/kra3) on keybase.
- I have a public key ASDFa3YNbsbfrmC-8WfUOSMiBDUfYeRpU7-5-EDSFXrisgo
To claim this, I am signing this object:
// our cool promise of future; serialize promises | |
function future(val){ | |
console.log("lala ", val); | |
return new Promise((resolve, reject) => { | |
setTimeout(resolve, 2000, val); | |
}) | |
} | |
//1. await waits in this case | |
(async () => { |
{ | |
"scripts": { | |
"---Dev": "---", | |
"storybook": "start-storybook -p 9001 -c .storybook", | |
"dev:start": "npm run storybook", | |
"start": "npm run dev:start", | |
"---Build": "---", | |
"clean": "echo 'Cleaning lib folder...\n' && rm -rf ./lib", | |
"build": "npm run clean && echo 'Building...\n' && babel src --out-dir lib --copy-files --ignore **/__tests__", | |
"watch": "babel src -w -s inline --out-dir lib --copy-files --ignore **/__tests__", |
const flatten = (arr) => { | |
const _helper = (arr) => arr.reduce( | |
(acc, itm) => Array.isArray(itm) ? [...acc, ..._helper(itm)] : [...acc, itm], []); | |
return _helper(arr); | |
} | |
// upgrade to old version https://gist.github.com/kra3/f802061437e3efe062ab2d4c047fe7c0 | |
// still, I advocate to use underscore, lodash or ramda ;) they are more battle tested |
# -*- coding: utf-8 -*- | |
__author__ = 'Arun KR (kra3) <the1.arun@gmail.com>' | |
__license__ = 'Simplified BSD' | |
import sys | |
""" | |
wiki_helper.py rules.txt data.txt > result.txt |
// no way to reset, at the moment | |
const get = (() =>{ | |
let counter = 0; | |
return (url) => { | |
return new Promise((resolve, reject) => { | |
if(counter > 100) { | |
reject(false); | |
} |
check :: String -> String -> Char -> (Bool, String) | |
check word display c | |
= (c `elem` word, [if x==c | |
then c | |
else y | (x,y) <- zip word display]) | |
turn :: String -> String -> Int -> IO () | |
turn word display n = | |
do if n==0 | |
then putStrLn "You lose" |
I hereby claim:
To claim this, I am signing this object:
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
{ | |
"always_show_minimap_viewport": true, | |
"bold_folder_labels": false, | |
"caret_style": "phase", | |
"color_scheme": "Packages/User/Alpenglow (SublimePythonIDE).tmTheme", | |
"ensure_newline_at_eof_on_save": true, | |
"font_face": "Fira Code", | |
"font_size": 9, | |
"heighlight_line": true, | |
"heighlight_modified_tabs": true, |
{ | |
"Python": { | |
"python": "~/.envs/<virtual_env_name>/bin/python", | |
"pythonExtraPaths": [ | |
"~/.envs/<virtual_env_name>/lib/python3.5/site-packages/" | |
] | |
}, | |
"folders": [ | |
{ | |
"path": "<relative_project_path_from_this_file>", |