To convert Markdown into Word format, pandoc is the best tool I found.
- Step1 : Install pandoc
- Step2 :
pandoc myfile.md -o myfile.docx
To convert Markdown into Word format, pandoc is the best tool I found.
pandoc myfile.md -o myfile.docx
ctrl + alt + /
: Show Keyboard Shortcutctrl + 口||
: Screenshotctrl + shift + 口||
: Screenshot regionctrl + shift + i
: Open developer toolsalt + search
: Toggle Caps Lockalt + shift + m
: Open file managerctrl + space
: Change input methodshift + esc
: Open task managerctrl + alt + t
: Open terminalsearch + button between esc and power
: F1~F10Recently I found that AWS Cloud9
is so good that help me coding in my chromebook.
Here I want to share how I use it with my nodejs project, it is free, fast and easy.
Create environment
and choose your preferenceEdit
> Keyboard mode
> Sublime
Vim
Emac
Setup nodejs developement environment via terminal
1 | # Clone repo |
To browse application webpage, go to Preview
> Preview Running Application
Always use man commandName
to know what the command is before copy and paste.
1 | # Open a new shell with root, exit with "exit" or "ctrl+d" |
Recently my co-worker recommends a great VS extension NPM task runner. Instead of running NPM task via a separate terminal, it will discover NPM task via package.json and run them inside Visual Studio by a double-click.
Install via Tools > Extensions and Updates > Online > Search NPM task runner
Task Runner Explorer locate in View > Other Windows > Task Runner Explorer
Run task by double-click tasks in sidebar, close it by x
button
If your task fails, it probably references to wrong NPM or Node.js, to fix it change the order in Tools > Options > Projects and Solutions > External Web Tools
. I lift-up ${PATH}
to the second one.
For security reason, private CI server may not have internet access. Instead, it connect to private registry like ProGet. To install public npm package, ProGet connector is here to help, steps as following :
npm config set registry http://{progethost}/npm/npm
Now try npm install
, it should work as it connect to public npm registry.
Reference : http://inedo.com/support/documentation/proget/feed-types/npm
一時興起參加了 LeetCode 的 Weekly Contest #40,用Javascript只解出了第一題計算二元樹每層平均值,思維是用兩個陣列,一個存每層的平均,一個存每層的總數量,最後相除得到每層的平均,實作如下:
1 | /** |
Sometimes I want to create empty branch for gh-pages or server-packages instead of branch from master, I will excute following command:
1 | git checkout --orphan empty.branch.name |
ESLint
extensionsettings.json
by pressing Ctrl,
Add following setting
1 | "eslint.validate": [ |
(Optional) Add "eslint.autoFixOnSave": true
for autofix on save.
It should work now, enjoy :)
Proxy means on behalf of
:
Proxy(Forward proxy)
on behalf ofuser
to reach websitesReverse proxy
on behalf ofserver
to receive users request
Thanks to Dean Sim’s picture on this answer, it is the best to help understand reverse proxy :
More detail on stackoverflow answer