Skip to content

Instantly share code, notes, and snippets.

View gy0857478's full-sized avatar
πŸ€
On vacation

Stanley gy0857478

πŸ€
On vacation
View GitHub Profile
@gy0857478
gy0857478 / cloudSettings
Last active September 17, 2020 15:54 — forked from jesty/computeHeading.js
Compute heading
{"lastUpload":"2020-09-17T15:53:58.876Z","extensionVersion":"v3.4.3"}
@FlandreDaisuki
FlandreDaisuki / sum.js
Last active May 1, 2020 14:18
ζ‡‰θ©²ζ˜―ζœ€ηΎŽηš„ currying sum
// ref: https://t.me/JavaScriptTw/52631
function sum(...args) {
const total = args.reduce((p, c) => p + c);
const sumFunc = sum.bind(null, total);
sumFunc.valueOf = () => total;
return sumFunc;
}