随笔分类 -  Tools

摘要: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 阅读(69) 评论(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 阅读(85) 评论(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 阅读(123) 评论(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 阅读(162) 评论(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 阅读(128) 评论(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 阅读(148) 评论(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 阅读(127) 评论(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 阅读(102) 评论(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 阅读(101) 评论(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 阅读(111) 评论(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 阅读(186) 评论(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 阅读(212) 评论(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 阅读(142) 评论(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 阅读(238) 评论(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 阅读(160) 评论(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 阅读(143) 评论(0) 推荐(0) 编辑
摘要:You can open files into Vim directly from the terminal. This works for both single files and multiple files. In addition to reading these files into b 阅读全文
posted @ 2020-03-26 18:22 Zhentiw 阅读(98) 评论(0) 推荐(0) 编辑
摘要:You'll often find yourself going through a tutorial where you need to copy some code from a webpage and create a file and paste the contents onto your 阅读全文
posted @ 2020-03-23 16:26 Zhentiw 阅读(122) 评论(0) 推荐(0) 编辑
摘要:For example we have following code: $(el).hide() // el.style.display = 'none' $(el).forEach(() => {}) foo.hide() We want $(el).hide() replace with: el 阅读全文
posted @ 2020-03-05 17:58 Zhentiw 阅读(132) 评论(0) 推荐(0) 编辑
摘要:Are you using z? Greatly speed up your file system traversal and say goodbye to finder. Install: brew install z 2. Go the github: https://github.com/r 阅读全文
posted @ 2020-03-05 03:12 Zhentiw 阅读(198) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示