異體字

異體字為意思一樣、但寫法不同的字集合。
因為漢字在多個國家使用,每個國家的正式寫法不同,且在歷史中會出現字形改變的情形,自然字形也不同。

閱讀全文 »

基本的 README 組成

  • 一句話解釋模組的目的
  • 簡潔可運行的範例
  • 詳細的API文件
  • 安裝說明
  • 注意事項和限制
  • 授權條款
  • 必要的背景資料或連結
  • 專業術語的資訊
閱讀全文 »

因為mustache語法(雙大括號)會被判斷成render命令,改成全形符號

簡介

採用簡潔的模板語法來宣告式地將資料渲染進 DOM 的系統

1
2
3
4
<!-- html part -->
<div id="app">
{{ message }}
</div>
1
2
3
4
5
6
7
8
9
10
11
12
13
//js part
var app = new Vue({
el: '#app',
data: {
message: 'Hello Vue.js!'
todo: []
},
methods: {
reverseMessage: function () {
this.message = this.message.split('').reverse().join('')
}
}
})

在 html tag 中 加入v-開頭的attributes以實作邏輯

閱讀全文 »

不用免費架站服務的理由

若只是要純粹建blog,用github page + hexo 即可。

更簡單的方法就是用痞客邦、Blogger等免費部落格。

不過自架有以下優點

閱讀全文 »

import this

The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren’t special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one– and preferably only one –obvious way to do it.
Although that way may not be obvious at first unless you’re Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it’s a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea – let’s do more of those!

閱讀全文 »

hexo 都實作得差不多了,純整理

html tag

<title>

  • 網頁的主題
  • <title>標記應該放在HTML文件的<head>標記區段中
    閱讀全文 »