Skip to content

Instantly share code, notes, and snippets.

View xgqfrms's full-sized avatar
πŸ’­
πŸŽ‰ πŸ‘» πŸ’» πŸ•΅οΈβ€β™‚οΈ

xgqfrms xgqfrms

πŸ’­
πŸŽ‰ πŸ‘» πŸ’» πŸ•΅οΈβ€β™‚οΈ
View GitHub Profile
@xgqfrms
xgqfrms / node.js-charset-utf-8.md
Last active October 23, 2023 16:12
Node.js Express.js charset UTF-8

for who use the express.js server

UTF-8

Node.js Express.js charset UTF-8

charset=utf-8

'CharacterEncoding': 'UTF-8'

@xgqfrms
xgqfrms / Android material macro.md
Created October 19, 2023 13:38
Android material macro

Android material macro

@xgqfrms
xgqfrms / ηˆ±ε‘η”΅ bug.md
Created October 10, 2023 06:18
ηˆ±ε‘η”΅ bug

ηˆ±ε‘η”΅ bug

  1. 不会θ‡ͺεŠ¨η²˜θ΄΄ε‘«ε……

image

  1. ???

image

@xgqfrms
xgqfrms / US-ASCII and cookie-name.md
Created October 8, 2023 19:37
US-ASCII & `cookie-name`
@xgqfrms
xgqfrms / minimal-reproducible-example.md
Last active October 20, 2023 06:47
How to create a Minimal, Reproducible Example - Help Center - Stack Overflow
@xgqfrms
xgqfrms / Samba NAS Service.md
Created September 15, 2023 17:52
Samba NAS Service
@xgqfrms
xgqfrms / how-to-use-Promise-and-setTimeout-to-mock-an-api-call-in-javascript.md
Created September 8, 2023 05:00
How to use Promise and setTimeout to mock an API call in JavaScript

How to use Promise and setTimeout to mock an API call in JavaScript

如何使用 Promise ε’Œ setTimeout 在 JavaScript δΈ­ζ¨‘ζ‹Ÿ API 调用

args list version

const getMockData = async (data = '', error = 'unknown server error', delay) => {
  return new Promise((resolve, reject) => {
    setTimeout(() => {
@xgqfrms
xgqfrms / js Map.groupBy bug.md
Last active September 2, 2023 13:44
js Map.groupBy bug ❌

js Map.groupBy bug ❌

image

// polyfill all actual features - stable ES, web standards and stage 3 ES proposals:
// import "core-js/actual/index.js";
// ❌
// import "core-js/actual";