發表文章

目前顯示的是 2016的文章

Markdown

Verilog

http://www.sutherland-hdl.com/papers/1996-CUG-presentation_nonblocking_assigns.pdf     p.18 http://www.cnblogs.com/oomusou/category/84456.html http://cocdig.com/docs/show-post-43091.html http://cocdig.com/docs/show-post-43253.html

Homebrew

http://mac-osx-for-newbie-book.kejyun.com/software/SoftwareManageHomebrew.html 需要先取得XCODE的license 再來到 http://brew.sh/ 找到這行貼在終端機上 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

[Try] Bulid a chat-bot with Hubot on Slack

npm install -g hubot coffee-script yo generator-hubot mkdir test-bot && cd test-bot yo hubot run with bin/hubot npm install hubot-slack --save HUBOT_SLACK_TOKEN=YOUR_SLACK_API_TOKEN_HERE ./bin/hubot --adapter slack https://api.slack.com/docs/oauth-test-tokens add some script in your /script/script.js module.exports = function(robot){     robot.respond(/hello/, function(res){         res.send('world');     }); }

[node.js] UTF-8 to Big5

https://github.com/ashtuchkin/iconv-lite https://github.com/bnoordhuis/node-iconv

[Vim]

http://harttle.com/2015/11/22/vim-frontend.html http://www.cyberciti.biz/faq/vi-show-line-numbers/ https://chusiang.gitbooks.io/working-on-gnu-linux/content/12.vim-plugin-neobundle.html vi  ~/.vimrc set number :ser nu

[KOA]

ppm install -g yo& generator-koa yo koa localhost:3000/ npm install --save wiston&moment npm install -g bower bower init bower install -save bootstrap bower manage front end package npm manage back end package npm install -g grunt-cli

[Node.js] 共乘資訊分享

起因: 看見批踢踢上的共乘版資訊眾多,但無法有效檢索,故希望改進。 目標: 進度: 1. 透過 cherrio 將資料爬下來 V 2. 將資料儲存 V 3. 將資料分析  V 4. 將資料格式改寫以便搜索儲存 V 5. 將查詢範圍擴大      抓上一頁的URLV      重複爬 6. 做一些UI設季 7. 使用DB做結構化儲存 8. 細部調整 9. 部署 10. 測試 額外: 模組化設計 導入GIT V 學習寫測試 問題: learn how to design callback function learn the skill to design async log: 7/16 : problem with  async

ptheard

圖片
add -lptheard with gcc warning: implicit declaration of function ‘sleep’ [-Wimplicit-function-declaration]  sleep(1); http://stackoverflow.com/questions/14818084/what-is-the-proper-include-for-the-function-sleep-in-c according to man page sleep(3) http://linux.die.net/man/3/sleep http://www.gnu.org/software/coreutils/manual/html_node/sleep-invocation.html#sleep-invocation should add    #include <unistd.h>

Learn Git (1)

圖片