随笔分类 -  Tools

摘要:https://github.com/mike-north/professional-ts/blob/master/notes/04-mikes-ts-setup.md#api-surface-report--docs Install: yarn add -D @microsoft/api-extr 阅读全文
posted @ 2020-11-23 03:30 Zhentiw 阅读(546) 评论(0) 推荐(0)
摘要:Using Volta: volta pin node yarn In add into package.json: "volta": { "node": "14.15.1", "yarn": "1.22.10" } 阅读全文
posted @ 2020-11-20 04:11 Zhentiw 阅读(92) 评论(0) 推荐(0)
摘要:As simple as: npx gitignore node 阅读全文
posted @ 2020-11-20 04:03 Zhentiw 阅读(123) 评论(0) 推荐(0)
摘要:Volta’s job is to manage your JavaScript command-line tools, such as node, npm, yarn, or executables shipped as part of JavaScript packages. Similar t 阅读全文
posted @ 2020-11-14 18:00 Zhentiw 阅读(114) 评论(0) 推荐(0)
摘要:ou can create diffs in markdown to show what has changed in a code snippet. I use this in blog posts to highlight changed lines for readers. This work 阅读全文
posted @ 2020-11-04 01:13 Zhentiw 阅读(72) 评论(0) 推荐(0)
摘要:To compute this formula, you need to do: Actually, to make it simpler, we can do Vectorization, that formula is actually equals to: So we can code it 阅读全文
posted @ 2020-08-19 19:10 Zhentiw 阅读(94) 评论(0) 推荐(0)
摘要:For: v = zeros(10, 1); for i=1:10, v(i) = 2^i; end; # the same as indices=1:10 for i=indices, disp(i) end; while & if & break: i=1; while i <=5, v(i) 阅读全文
posted @ 2020-08-19 02:49 Zhentiw 阅读(128) 评论(0) 推荐(0)
摘要:t=[0:0.01:0.98]; y1 = sin(2*pi*4*t); plot(t, y1) If you draw tha cos function, it will replace the sin function figure to a new one y2 = cos(2*pi*4*t) 阅读全文
posted @ 2020-08-19 02:27 Zhentiw 阅读(169) 评论(0) 推荐(0)
摘要:When working in a codebase that has frontend, backend, middleware, service, and other concerns all in the same GIT repository, it can be helpful to co 阅读全文
posted @ 2020-08-18 02:10 Zhentiw 阅读(136) 评论(0) 推荐(0)
摘要:Search for "Polacode" in extensions and install it: After installer, open "Command palette" Type "polocode". Use mouse to select code you want to crea 阅读全文
posted @ 2020-08-18 02:01 Zhentiw 阅读(152) 评论(0) 推荐(0)
摘要:Mutiplate materix: Everytime you see '.' mean element wise operator. >> A = [1 2; 3 4; 5 6]; >> B = [11 12; 13 14; 15 16]; >> C = [1 1; 2 2]; >> A*C a 阅读全文
posted @ 2020-08-17 22:04 Zhentiw 阅读(132) 评论(0) 推荐(0)
摘要:Load data: load featuresX.dat who: Check how many variables in your current session: who whos: details about variables: whos Clear one variable: clear 阅读全文
posted @ 2020-08-17 21:36 Zhentiw 阅读(105) 评论(0) 推荐(0)
摘要:You can do baisc math: 5+6 32-8 1/2 2^3 1 == 2 % ans = 0 means false 1 ~=1 % 1 not equals to 2. ans = 1 means true 1 && 0 1 || 0 xor(1, 0) Change the 阅读全文
posted @ 2020-08-17 20:39 Zhentiw 阅读(109) 评论(0) 推荐(0)
摘要:Renaming every file in a directory with zsh is a common scenario when you're working with a series of related files. Using zsh's "for" loop, you can a 阅读全文
posted @ 2020-07-27 20:03 Zhentiw 阅读(115) 评论(0) 推荐(0)
摘要:Many people just drop all of their Zsh functions inside of their .zshrc and forget about it. But as your collection of functions begins to grow, you s 阅读全文
posted @ 2020-06-18 14:49 Zhentiw 阅读(192) 评论(0) 推荐(0)
摘要:A common problem you'll run into when working inside of your terminal is the desire to rename the directory you're currently in. This is achieved in 3 阅读全文
posted @ 2020-06-18 14:32 Zhentiw 阅读(218) 评论(0) 推荐(0)
摘要:pkg allows you to take any of your node projects and bundle them up into standalone apps that you can ship to people or servers that do not have node. 阅读全文
posted @ 2020-06-17 20:03 Zhentiw 阅读(149) 评论(0) 推荐(0)
摘要:Mirage JS lets you mock out production APIs directly alongside your frontend React code. You can tweak the data or force a network request to hang, so 阅读全文
posted @ 2020-05-28 14:55 Zhentiw 阅读(245) 评论(0) 推荐(0)
摘要:It can be difficult to work on multiple projects that use different versions of Node. nvm (Node Version Manger) make this easier by allowing you to do 阅读全文
posted @ 2020-05-28 01:57 Zhentiw 阅读(166) 评论(0) 推荐(0)
摘要:When you or your team work on various npm or yarn projects it gets hard to remember which one is which. This lesson shows you how to create a custom n 阅读全文
posted @ 2020-05-12 14:15 Zhentiw 阅读(147) 评论(0) 推荐(0)