Skip to content

Instantly share code, notes, and snippets.

View meteorlxy's full-sized avatar
👀
Emmmm...?

Xinyu Liu meteorlxy

👀
Emmmm...?
  • Hangzhou, China
  • 05:39 (UTC +08:00)
View GitHub Profile
@meteorlxy
meteorlxy / gist:f9d493cbeaee98c49cea6ce0e01c16d9
Created May 5, 2018 11:21 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

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:
@meteorlxy
meteorlxy / .editorconfig
Last active December 9, 2020 15:51
Correct end of line
# @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 / convert-string-perf.js
Last active December 13, 2019 02:37
string type convertion benchmark
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 / promise-all-concurrent.md
Last active September 28, 2020 03:44
Promise.all with concurrency limit

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