看了《學徒模式》一書後,凍仁試著用 Gist 管理自己的待讀書單,並不時修改其閱讀順序。您可以在 revisions 找到編修記錄。
目錄:
| <template> | |
| <div class="winning-animation"> | |
| <canvas ref="canvas" width="512" height="512"></canvas> | |
| <div v-if="loading" class="loading">載入中...</div> | |
| <div v-if="error" class="error">錯誤: {{ error }}</div> | |
| </div> | |
| </template> | |
| <script> | |
| export default { |
| #!/bin/sh | |
| # | |
| # Setup a work space called `work` with two windows | |
| # first window has 3 panes. | |
| # The first pane set at 65%, split horizontally, set to api root and running vim | |
| # pane 2 is split at 25% and running redis-server | |
| # pane 3 is set to api root and bash prompt. | |
| # note: `api` aliased to `cd ~/path/to/work` | |
| # | |
| session="work" |
| const people = [ | |
| {name: "abc", income:100, gender: "male", city:"taipei"}, | |
| {name: "def", income:200, gender: "female", city:"taichung"}, | |
| {name: "ghi", income:300, gender: "male", city:"taipei"}, | |
| {name: "jkl", income:400, gender: "female", city:"kaohsiung"}, | |
| {name: "mary", income:500, gender: "male", city: "hualian"}, | |
| {name: "judy", income:600, gender: "female", city: "taipei"}, | |
| {name: "venessa", income:700, gender: "male", city: "taichung"}, | |
| {name: "candy", income:800, gender: "male", city: "hualian"}, | |
| {name: "jojo", income:900, gender: "female", city: "hualian"}, |
| const mix = require('laravel-mix'); | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Mix Asset Management | |
| |-------------------------------------------------------------------------- | |
| | | |
| | Mix provides a clean, fluent API for defining some Webpack build steps | |
| | for your Laravel applications. By default, we are compiling the CSS | |
| | file for the application as well as bundling up all the JS files. |
| <ifmodule mod_rewrite.c> | |
| <ifmodule mod_negotiation.c> | |
| Options -MultiViews | |
| </ifmodule> | |
| RewriteEngine On | |
| RewriteCond %{REQUEST_FILENAME} -d [OR] | |
| RewriteCond %{REQUEST_FILENAME} -f |
| root = true | |
| [*] | |
| charset = utf-8 | |
| end_of_line = lf | |
| insert_final_newline = true | |
| indent_style = space | |
| indent_size = 2 | |
| trim_trailing_whitespace = true |
| APP_NAME | |
| APP_ENV | |
| APP_DEBUG | |
| APP_URL | |
| ASSET_URL | |
| APP_KEY |
| <?php | |
| // your data | |
| $records[] = array('size' => "1"); | |
| $records[] = array('size' => "1"); | |
| $records[] = array('size' => "2"); | |
| $records[] = array('size' => "2+"); | |
| $records[] = array('size' => "3"); | |
| $records[] = array('size' => "3+"); | |
| $records[] = array('size' => "3+"); | |
| $records[] = array('size' => "4"); |
| # gitconfig | |
| [alias] | |
| # list all aliases | |
| la = "!git config -l | grep alias | cut -c 7-" | |
| delete-merged-branches = "!f() { git checkout --quiet master && git branch --merged | grep --invert-match '\\*' | xargs -n 1 git branch --delete; git checkout --quiet @{-1}; }; f" | |
| diff = diff --ignore-space-at-eol -b -w --ignore-blank-lines | |
| cnv = commit --no-verify | |
| co = checkout | |
| cob = checkout -b | |
| s = status --short |