templateKey | path | title |
---|---|---|
about-page |
/about |
About our values |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function shortenString(s, limit = 15, skippedReplacer = '...') { | |
if (!s || s.length <= limit) return s; | |
const trimmedLength = | |
Math.max(limit, skippedReplacer.length + 2) - skippedReplacer.length; | |
const chunkLength = Math.floor(trimmedLength / 2); | |
const [head, tail] = [ | |
s.substring(0, chunkLength + (trimmedLength % 2)), | |
s.substring(s.length - chunkLength, s.length), | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Define very hea database | |
const foodDatabase = { | |
"🍔": { id: "🍔", type: "main", price: 25 }, | |
"🥪": { id: "🥪", type: "main", price: 20 }, | |
"🌭": { id: "🌭", type: "main", price: 30 }, | |
"🥗": { id: "🥗", type: "side", price: 20 }, | |
"🍟": { id: "🍟", type: "side", price: 15 }, | |
"🥛": { id: "🥛", type: "drink", price: 12 }, | |
"🥤": { id: "🥤", type: "drink", price: 10 }, | |
"🧋": { id: "🧋", type: "drink", price: 20 } |
I hereby claim:
- I am nwingt on github.
- I am nwingt (https://keybase.io/nwingt) on keybase.
- I have a public key ASBfYgY74f7HSM96VH_T025-dVXPiHde--4Fv2nTrGSe6Ao
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var popupWindow = window.open("http://www.nlcitychurch.org.hk"); | |
popupWindow.onunload = function () { | |
console.log("do something when the pop up closes"); | |
} |
- http://kirikirikag.sourceforge.net/contents/index.html [日本語]
- http://blog.yam.com/_suidream/article/8108430 [中文版]
- https://developer.novelsphere.jp/ (Need to sign up) [日本語]
- https://developer.novelsphere.jp/doc/o2doc2/ (Documentation) [日本語]
- http://www.doddlercon.com/main/?p=202 (Sublime Text)
NewerOlder