Git Commit Message Guideline

Chinese ref: https://blog.louie.lu/2017/03/21/%E5%A6%82%E4%BD%95%E5%AF%AB%E4%B8%80%E5%80%8B-git-commit-message/ English version: https…

Read

How to write a Gatsby based blog

Gatsby 是 React + GraphQL based的網站/blog生成器. 可以用 React方式修改UI. 參考: https://www.gatsbyjs.org/tutorial/ , 建議 看完, 走完就有一個可以寫Markdown file的blog…

Read

Math Puzzle

ref: https://iwastesomuchtime.com/77301 THIS PROBLEM CAN BE SOLVED BY PRE-SCHOOL CHILDREN.

Read

A list of Bluetooth API/Library for Electron Desktop Application

RFCOMM (Bluetooth ver. <4.0, Serial I/O). Use Node.js Package: https://github.com/eelcocramer/node-bluetooth-serial-port https://github.com…

Read

Introduction to TypeScript

參考: TypeScript的官網 , e.g. Node.js + TypeScript 的 example: https://github.com/Microsoft/TypeScript-Node-Starter VS Code上的TypeScript說明: https…

Read

在Atom及VS Code上面安裝外掛增強 JavaScript IDE 開發功能

symbol (function, global variable, etc.) list Atom - JavaScript 需安裝 nuclide , 使用toggle outline功能即可 可裝不可裝 ide-typescript , 強化nuclide…

Read

Regular Expression Puzzle

Puzzle: http://jimbly.github.io/regex-crossword My answer

Read

Introduction to GitHub Pages and use Custom Domain on it

GitHub Pages Notes: GitHub pages分成兩大種, a. User & Organization Pages (使用master branch) b. Project Pages. (使用gh-pages branch) 詳細介紹 https…

Read

Notes about writting Markdown Articles on GitHub Pages

總共有3大種Markdown語法, 以下1~3跟GitHub相關 GitHub Flavored Markdown (修改於 kramdown) + fenced code blocks + Syntax Highlight(<-不知那一個套件). GitHub uses…

Read

DI (Dependency Injection) & Tests in Golang

Ref: 编写测试友好的Golang代码: https://ipfans.github.io/2016/04/writing-testable-golang-code/ :

Read

An excellent recording screen software

It is Screenium 3 and its site is http://www.syniumsoftware.com/screenium

Read

Closure in Go, C#, Objective-C, Javascript and so on

A closure is a function value that references variables from outside its body. Closure in GO: https://tour.golang.org/moretypes/25 Closure…

Read

Spread, Rest and Destructuring assignment in JavaScript

spread operator: , 展開東西 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_operator (只講解ES6的) ES6: array…

Read

My JavaScript e-book

e-book Link: https://grimmer0125.gitbooks.io/learning-javascript/content/ Notes (depreciated, use the above link): everything is object…

Read

Redux Notes

Redux ref url: http://redux.js.org/docs/introduction/PriorArt.html Another important difference from Flux is that Redux assumes you never…

Read

Docker Notes

Docker: 1.”docker-machine create” or “docker-machine ls; docker-machine start”, 2. docker-machine env default 3. eval ”$(docker-machine env…

Read

GitHub Pull Request Uses No Fast Forward Merge

It means it always uses So if you want to use fast-forward way, the steps of the solution is create a pull request first don’t click…

Read

Do Not Track Files Already In Remote Repos

way1 http://oomusou.io/phpstorm/phpstorm-git-rm-idea/ : 選擇要移除的.idea目錄諸檔,Actions -> Stop Tracking。 其實這就相當於git rm —cached -r .idea。 way…

Read

Use the description of Git Branch

I notice that people can add some description to a Git Branch. From this article, http://bahmutov.calepin.co/git-branches-with-descriptions…

Read

The Benefit Of process.nextTick in JavaScript

to lower the memory usage due to the callback hell. to avoid blocking UI for a long time.

Read

pthread_join and pthread_detach

http://man7.org/linux/man-pages/man3/pthread_detach.3.html : Either pthread join(3) or pthread detach() should be called for each thread…

Read

Some notes about 2015 Smart City Summit & Expo

Smart City Summit & Expo IBM-IoT-Talk: https://www.icloud.com/keynote/0bYfcYxUgLy-dJceTT51Gt9wg#IBM%E7%89%A9%E8%81%AF%E7%B6%B2 Smart health…

Read

Mobile Chrome App

Introduciton to mobile chrome app https://www.icloud.com/keynote/0enR2_AaBDjgGLCbHJnJnDSmg#mobile%5Fchrome%5Fapp

Read

Injection in c#

http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj721614(v=vs.105).aspx : *Injecting platform-dependent code using interfaces…

Read

Callback In CSharp

http://www.cnblogs.com/oomusou/archive/2011/02/08/action generic delegate.html : C# 1.0提出了Delegate取代C/C++的function pointer後,C# 2.…

Read

Notes about new feature, async & await on .NET 4.5

新的.NET 4.5的await/async的東西。如果不加await,function會被執行(如果是 xxAsync的function就會在背景做它的事, 然後程式會馬上可以走到下一行) , 但是無法知道它成功與否或是return值。Example…

Read

Migrate To Git From SVN

Steps: 使用git-svn。mac預設就有裝。ubuntu請用 sudo apt-get install git-core git-svn。請打如下的command 如果你的project有所謂的trunk, tags, branches目錄,請用—stdlayout…

Read

Use Git Step1

Git 是個比svn更適合拿來當多人一起開發時的版本控管的工具,以下是一開始使用時的初步設定注意事項。 1.決定你的帳號名, e.g grimmer,通知git server管理者做設定. 2.Git server主要有兩種帳號管理,一種是ssh/Linux的帳號,一種是用key…

Read

Let Objective-C use C++ code

Rules: 文件可以混合 和 程式碼 文件可以混合 , & 程式碼 & 不能混合有 程式碼 所以方法有三種: 使用 從 使用 ,再透過 來使用 就能達到目的。 把編譯器的Compile Sources As選項改为 。預設是According to…

Read

XFakeKey on Linux

一個按鍵事件的產生: http://maddrone.blogspot.com/2006/08/blog-post_31.html Keyboard and Pointer Events: http://tronche.com/gui/x/xlib/events…

Read

Remaster Ubuntu by Tradtional Way

簡短的紀錄一下,大致上都是照以下這教學 https://help.ubuntu.com/community/LiveCDCustomization” 不過因為預設的apt-get相關設定有時會抓不到套件,所以在要進入 前 Copy resolv.conf and sources…

Read

How to use wxBufferedDC in wxwidget

wxBufferedDC的目的是為了減少閃碩等畫面更新可能帶來的問題,它有幾個預設的constructer,若是要在wxBufferedDC中自己維持一個bitmap以增進速度,則方法是先new出一個bitmap object 然後在繪圖的function中,把此bitmap…

Read

How to use Deque of C++ STL

基本上,deque是個雙向佇列,所以可自由的從最前面或最後面加入元素。當要清空deque時,若使用 則bulid debug mode下的project會過不了,在release mode下會過但執行時有時會跳出例外。最後我找到的soultion則是使用 這樣就OK了。

Read