Skip to content

Instantly share code, notes, and snippets.

Avatar
👀
Emmmm...?

meteorlxy meteorlxy

👀
Emmmm...?
View GitHub Profile
@meteorlxy
meteorlxy / promise-all-concurrent.md
Last active Sep 28, 2020
Promise.all with concurrency limit
View promise-all-concurrent.md

Create n parallel runners to run Promises, to avoiding running too many Promises in the mean time with Promise.all()

@meteorlxy
meteorlxy / convert-string-perf.js
Last active Dec 13, 2019
string type convertion benchmark
View convert-string-perf.js
const emptyStringMethod = value => value + '';
const stringMethod = value => String(value);
const templateMethod = value => `${value}`;
const toStringMethod = value => value.toString();
const concatMethod = value => ''.concat(value);
const combinedMethod = value => {
if (value === null) {
return 'null';
}
if (value === undefined) {
@meteorlxy
meteorlxy / .editorconfig
Last active Feb 1, 2019
Correct end of line
View .editorconfig
# @see https://editorconfig.org/
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
@meteorlxy
meteorlxy / gist:f9d493cbeaee98c49cea6ce0e01c16d9
Created May 5, 2018 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup
View gist:f9d493cbeaee98c49cea6ce0e01c16d9

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
You can’t perform that action at this time.