Skip to content

Instantly share code, notes, and snippets.

@tingwei628
tingwei628 / coding_ability.txt
Last active August 9, 2024 03:27
程式碼的功力
from : https://x.com/Barret_China/status/1187272143312015360
1. 專業知識學習 (會用、能改): 語言API、不依賴IDE、讀懂別人的code、調整別人code
2. 偵錯能力、抽象能力: 完整的測試、掌握複雜工具和參數、解決性能問題、快速定位問題
3. 掌握底層原理、運行機制: 底層設計原理、核心運作機制、設計高效的演算法
var arr = [];
for (var i = 1; i <4 ; i++) {
arr.push(function(j) {
return function() {console.log(j);}
}(i));
}
arr[0]();
arr[1]();
arr[2]();
@tingwei628
tingwei628 / checklist.md
Created March 16, 2024 05:54
checklist
@tingwei628
tingwei628 / x.md
Last active January 27, 2024 15:25
cloudflare tunnel

install cloudflared

cloudflared.exe service install [token]

stop cloudflared

sc stop cloudflared

start cloudflared

sc start cloudflared

@tingwei628
tingwei628 / readme.txt
Created July 8, 2023 14:58
TCP 是怎樣工作的
Repo: https://github.com/ituring/tcp-book
環境建立:
Mobaxterm 登入 vagrant ssh guest1 問題
參考
https://stackoverflow.com/a/68515228
@tingwei628
tingwei628 / abort_request.js
Last active August 21, 2022 15:24
abort xhr request
var xhr = new XMLHttpRequest(),
method = "your_api_method",
url = "you_api";
xhr.open(method, url, true);
xhr.send();
setTimeout(() => {
xhr.abort();
}, 1000)
@tingwei628
tingwei628 / mysql.md
Last active June 18, 2022 05:40
mysql
  • install mysql brew install mysql
  • start mysql brew services start mysql
  • stop mysql brew services stop mysql
  • server localhost, port 3306, user root
@tingwei628
tingwei628 / mongoDB.md
Last active June 25, 2022 19:03
mongoDB