Skip to content

Instantly share code, notes, and snippets.

@Lauviah0622
Lauviah0622 / .md
Created December 9, 2022 11:14
炒河粉

備料

  • 青菜
    • 60 克高麗菜(約 1/4 顆)切粗絲
    • 半顆洋蔥切絲
    • 1/4 根🥕切絲
    • 蔥段一手把
    • 40 克豬肉絲(約半個拳頭的量),用以下材料醃漬
      • 半勺米酒
      • 半勺蠔油
1. https://jsfiddle.net/lauviah0622/3e7r6yk8/5/
2. https://jsfiddle.net/lauviah0622/nrkqta47/3/
3.
4. https://jsfiddle.net/lauviah0622/judpwgem/6/
5. https://jsfiddle.net/lauviah0622/fw67uLh8/2/
6. https://codesandbox.io/s/objective-wozniak-1mn8cc?file=/src/App.js
7. 1,在該次的 scope 裡面可以把 count 視為 0,而兩次的 setCount 都是 setCount(1),因此為
@Lauviah0622
Lauviah0622 / orderAPI.yaml
Last active October 19, 2021 14:57
long Island order API
openapi: 3.0.1
info:
title: Order API
description: >-
Order API practice
termsOfService: http://swagger.io/terms/
contact:
email: apiteam@swagger.io
license:
name: Apache 2.0
@Lauviah0622
Lauviah0622 / gist:2326463984a777d90ea000f703426005
Created July 25, 2021 14:18
生菜的 Promise Race 問題
// 填补的安全检查
if (!Promise.observe) {
Promise.observe = function(pr,cb) {
// 从侧面观察`pr`的解析
pr.then(
function fulfilled(msg){
// 异步安排回调(作为Job)
Promise.resolve( msg ).then( cb );
},
function rejected(err){
@Lauviah0622
Lauviah0622 / History|-109f36a5|entries.json
Last active April 17, 2022 08:17
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"file:///Users/feversocial/Documents/journal/note/prisma.client.md","entries":[{"id":"MUs8.md","source":"undoRedo.source","timestamp":1649861663801},{"id":"CnV7.md","timestamp":1649861685458}]}
@Lauviah0622
Lauviah0622 / cloudSettings
Created December 6, 2019 02:06
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-12-06T02:06:38.244Z","extensionVersion":"v3.4.3"}