Instantly share code, notes, and snippets.

View app-nav-config-category.json
"$schema": "",
"$id": "",
"type": "object",
"title": "Rubick App Nav Config",
"required": [
"properties": {
"user": {
View gist:6b74522c545105a97bac2661c1a62b84
const { get, post } = require("axios");
const url = ``;
const getParams = (text, desp) => encodeURI(`?text=${text}&desp=${desp}`);
async function getBeijingStores() {
const res = await get(
View debounce-promise.js
// Debounced promise:
// Like lodash.debounce, but multiple calls to a debounced function
// will return the same promise so that they will be notified when the debounced function returns
// In case the deboucned value is a promise, the last promise value shall be returned.
function debounceFn(fn, timeout) {
let timer = undefined;
let resPromise = undefined;
let resolver = undefined;
let rejector = undefined;
View markdown_here.css
* - The use of browser-specific styles (-moz-, -webkit-) should be avoided.
* If used, they may not render correctly for people reading the email in
* a different browser than the one from which the email was sent.
* - The use of state-dependent styles (like a:hover) don't work because they
* don't match at the time the styles are made explicit. (In email, styles
* must be explicitly applied to all elements -- stylesheets get stripped.)