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
How to Draw: Drawing and Sketchin... ░░░░░░░░░░░░░ 0% | |
Database Internals: A deep-dive i... ░░░░░░░░░░░░░ 0% | |
Designing Data-Intensive Applicat... ██████▌░░░░░░ 50% |
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
export type ReplaceBigIntByString<T> = { | |
[K in keyof T]: | |
T[K] extends object | |
? ReplaceBigIntByString<T[K]> | |
: T[K] extends BigInt | |
? string | |
: T[K] | |
} |
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
// usage : await sleep(1000) | |
function sleep(milliseconds: number) { | |
return new Promise(resolve => setTimeout(resolve, milliseconds)) | |
} | |
export { sleep } |
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
/** | |
* Wrapper for json.stringify that will prevent circular reference error | |
* and format the output with the provided space | |
* @param input any | |
*/ | |
export default function stringify(input: any) { | |
const seen: Set<any> = new Set<any>() | |
return JSON.stringify( | |
input, | |
(_, value) => { |
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
[filter "lfs"] | |
clean = git-lfs clean -- %f | |
smudge = git-lfs smudge -- %f | |
process = git-lfs filter-process | |
required = true | |
[user] | |
email = [email protected] | |
name = antoine drouhin | |
[core] | |
editor = vim |
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
if empty(glob('~/.vim/autoload/plug.vim')) | |
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs | |
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | |
endif | |
call plug#begin() | |
Plug 'sonph/onehalf', {'rtp': 'vim/'} |
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
{"lastUpload":"2021-01-07T17:48:23.696Z","extensionVersion":"v3.4.3"} |
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
printer(L) :- | |
L= [ | |
Root, | |
% Print functions | |
Print, | |
IncPrint, | |
LazerPrint, | |
IncBnW, |