当前位置:网站首页>A wave of open source notebooks is coming
A wave of open source notebooks is coming
2022-07-07 10:05:00 【Cut a little cold】
“ Copy ” You should not be unfamiliar with the word , It has a scientific name called “ Quick reference table ”(cheatsheet) It is a form used to quickly find your knowledge points and answers , Because of its small size 、 Imperceptible and other characteristics , Frequently appear in examination rooms and speeches ...
Friendship tips ️: Cheating in the exam is a pleasure , Catch is the crematorium !
I remember an exam in College , The teacher allowed each of us to bring one A4 Paper size “ Copy ” Enter the examination room , You can write anything on both sides . I take that one Dense and dense There is no blank “ Copy ”, Step into the examination room with confidence . This course has the highest score in all my classes , Later, the make-up students came to me to copy this “ Copy ”.
today , Although I won't take the exam anymore , But I still keep a cheat sheet handy . such as : When writing code, I suddenly can't remember grammar 、 code snippet 、 command , At this time, a cheat sheet ( Quick reference table ) Can work wonders ! With it, you can find the answer in an instant , Copy / Paste Can solve the problem , Greatly improved development efficiency .
below , It is specially prepared for programmers 「 Open source notes 」 aggregate , It contains Python、JavaScript、Linux、Git、K8s etc. , It is easy to read due to its large variety , I divided them into : Language 、 Command and synthesis are three categories .
Gossip , Go straight to the project !
One 、 Language class
Writing code is like writing a composition. There are times when you pick up your pen and forget your words , But this must not be allowed to interrupt the atmosphere of immersive coding . The following checklist items cover :Python、C++、Rust、JS Language , It can make you forget grammar 、 When the operation fails , Instantly retrieve the memory and switch back to the coding process .
1.1 Python(python-cheatsheet)
Star Count : 29.5k| chinese : no
Python The grammar of is very simple , It's also because it's simple that many people don't spend time deliberately remembering , With this project, you don't have to be grammar . It's right Python Common data types 、 function 、 Libraries are classified , It can help you quickly find the code fragments and syntax explanations you want , Only “ Fill in the blanks ” These codes can come right away .
from threading import Thread, RLock, Semaphore, Event, Barrierfrom concurrent.futures import ThreadPoolExecutor<thread> = Thread(target=<function>) # Use `args=<collection>` to set the arguments.<thread>.start() # Starts the thread.<bool> = <thread>.is_alive() # Checks if the thread has finished executing.<thread>.join() # Waits for the thread to finish.
It is strongly recommended to new contacts Python My friends , Feel good, remember to come back and praise !
1.2 C++(cpp-cheatsheet)
Star Count : 1.9k| chinese : no
C++ It was a required course when I was in College ! It is also the first programming language for many college students ( The nightmare ), If you mention C++ Grammar brain is a ball of paste , It's better to look at this project. Maybe you can build a clear C++ Knowledge system , At its worst, it can be copied / Paste and write what can run C++ Code .
#include <iostream> // Include iostream (std namespace)cin >> x >> y; // Read words x and y (any type) from stdincout << "x=" << 3 << endl; // Write line to stdoutcerr << x << y << flush; // Write to stderr and flushc = cin.get(); // c = getchar();cin.get(c); // Read charcin.getline(s, n, '\n'); // Read line into char s[n] to '\n' (default)if (cin) // Good state (not EOF)? // To read/write any type T:istream& operator>>(istream& i, T& x) {i >> ...; x=...; return i;}ostream& operator<<(ostream& o, const T& x) {return o << ...;}
1.3 Rust(cheats.rs)
Star Count : 2.9k| chinese : no
A lot of people say Rust Easy to learn, not easy to write . Here comes the Savior ! This project not only provides basic grammar quick reference , There are also notes to be paid attention to when explaining the execution sequence and writing . If you think it's not enough , The project also includes sample code (EX)、 Books (BK)、 standard (STD) And other related materials .
On-line :https://cheats.rs
1.4 JavaScript(modern-js-cheatsheet)
Star Count : 23k| chinese : no
Now the back-end will write some front-end more or less , Maybe because I haven't learned systematically JavaScript grammar , In most cases, we write while checking . The code examples of this project are particularly rich , I hope this can save the struggling JS Partners in the grammar puzzle .
async function getUser() { // The returned promise will be rejected! throw "User not found !";}async function getAvatarByUsername(userId) => { const user = await getUser(userId); return user.avatar;}async function getUserAvatar(username) { var avatar = await getAvatarByUsername(username); return { username, avatar };}getUserAvatar('mbeaudru') .then(res => console.log(res)) .catch(err => console.log(err)); // "User not found !"
in addition , Here's another one React+TypeScript A quick look-up of , Together with :
This project is different from the previous project , It elicits knowledge points in the form of questions and answers , And give answers and sample code .
Two 、 command
In addition to programming language in coding , It's also inseparable from many other things , such as : Tools 、 System 、 Services, etc. , To use them efficiently, you need to remember commands , But the order is too miscellaneous 、 Too much to remember . The following items cover , frequently-used Git、Linux、K8s command , Collect it quickly and it will be used one day !
2.1 Git(git-tips)
Star Count : 13.9k| chinese : yes
Git Version management tool , It is often used in daily development . In understanding work area 、commit、 Temporary storage area 、 Local repository 、 Remote warehouse After the concept, you can get started , But when encountering some special scenes , We need the following project to save the site ! When you don't know what to use Git When the command completes the operation or there is any simple method , Directly in this project Ctrl/Cmd+f
Search , The order to solve the problem can be found immediately .
Deletions have been merged into master The branch of git branch --merged master | grep -v '^\*\| master' | xargs -n 1 git branch -d
Here's another one GitHub Officially made Git Quick reference table .
Address :https://education.github.com/git-cheat-sheet-education.pdf
2.2 Linux(linux-command)
Star Count : 19k| chinese : yes
Developers are usually inseparable Linux operating system , and Linux The server is also a command line operation , If you don't know the command, you can't even open a file , however Linux There are too many orders for , I really can't remember everything . With this project , You can search as you like , It also supports Chinese search .
besides , Another large and comprehensive project has to be mentioned tldr:
An open source Linux Command query tool , A simplified version of man And “ as the medicine took effect , the symptoms lessened ”, It can be called 《 new edition Linux Encyclopedia of commands 》( english ).
project :https://github.com/tldr-pages/tldr
2.3 Kubernetes(cheatsheet-kubernetes-A4)
Star Count : 1.5k| chinese : no
With the unstoppable nature of cloud ,K8s It has also become one of the necessary skills for operation and maintenance and programmers . The project tries to be on a A4 Show its common commands on paper , Hence the name .
project :https://github.com/dennyzhang/cheatsheet-kubernetes-A4
It is worth mentioning that the author also wrote Docker edition , Good in pairs .
3、 ... and 、 comprehensive
I have seen the quick look-up table of the above sub areas , Here are some comprehensive projects , The project use methods introduced in this part have their own characteristics : There is something that can be printed , There are also commands to check directly , There are also web pages that can be used online , To be honest, I want to order one for myself 「 Fabulous 」 了 !
3.1 Data processing (ds-cheatsheets)
Star Count : 10.7k| chinese : no
Data processing is a wide range of fields , There are many knowledge points, including :SQL、R、Pandas、Jupyter、 big data 、 Data visualization, etc . This project covers all the above contents , And from basic to practical . a key ! Provides a high appearance 、 Full color PDF It can be printed out , On the wall 、 It's convenient to check it often under the screen .
3.2 Online website (cheatsheets)
Star Count : 11.8k| chinese : no
This is an open source 、 Comprehensive checklist website , Covering the front end 、 Back end 、 Operation and maintenance 、IDE In many ways , And the interface is friendly and concise, and it supports online viewing .
On-line :https://devhints.io
3.2 Command line (cheat.sh)
Star Count : 29.2k| chinese : no
Finally, this project is great , It's called 「 The only quick reference table you need 」. It not only supports direct query from the command line :
It also supports website online query :
Either way , All geeks are full !
On-line :https://cheat.sh
project :https://github.com/chubin/cheat.sh
Four 、 Last
The above is all shared in this issue 「 Open source notes 」 project , Have you found your dish ?
Often the most handy cheat sheet , It's a cheat sheet made by yourself ! I hope these open source projects in this issue can add some content to your Codex , Or provide some ideas on the convenience of use , So as to build the most suitable for yourself 、 The most handy “ Weapon of magic ”!
Someone might ask : Now there are AI Programming assistant (Copilot) What other notes are needed ?
Copilot It's really more convenient , But I think the process of making a cheat sheet is also The process of combing and precipitating knowledge , And maintaining an open source manuscript can not only leave a strong impression on yourself , Why not help others ! As the saying goes :“ From open source , Give back to open source ”.
Last , If you think the content of this issue is good : Praise 、 Please share 、 Please forward , Your support is my greatest encouragement ! See you next time ~
边栏推荐
- thinkphp3.2信息泄露
- PostgreSQL reports an error when creating a trigger,
- 大佬们,请问 MySQL-CDC 有什么办法将 upsert 消息转换为 append only 消
- 小程序实现页面多级来回切换支持滑动和点击操作
- 2020浙江省赛
- 农牧业未来发展蓝图--垂直农业+人造肉
- [original] what is the core of programmer team management?
- 根据热门面试题分析Android事件分发机制(二)---事件冲突分析处理
- sql 里面使用中文字符判断有问题,哪位遇到过?比如value&lt;&gt;`无`
- Qualifying 3
猜你喜欢
Win10安装VS2015
Delete a record in the table in pl/sql by mistake, and the recovery method
[original] what is the core of programmer team management?
Pit using BigDecimal
EXT2 file system
ORM模型--数据记录的创建操作,查询操作
Arthas simple instructions
Software modeling and analysis
Bean 作⽤域和⽣命周期
Basic chapter: take you through notes
随机推荐
20排位赛3
La différence entre viewpager 2 et viewpager et la mise en œuvre de la rotation viewpager 2
喜马拉雅网页版每次暂停后弹窗推荐下载客户端解决办法
request对象对请求体,请求头参数的解析
Gym - 102219j kitchen plates (violent or topological sequence)
用flinksql的方式 写进 sr的表,发现需要删除的数据没有删除,参照文档https://do
位操作==c语言2
Phpcms realizes PC website access to wechat native payment
AI moves from perception to intelligent cognition
Huffman encoded compressed file
flinkcdc采集oracle在snapshot阶段一直失败,这个得怎么调整啊?
EXT2 file system
ORM--分组查询,聚合查询,查询集QuerySet对象特性
Pytest learning - dayone
大佬们,请问 MySQL-CDC 有什么办法将 upsert 消息转换为 append only 消
Garbage disposal method based on the separation of smart city and storage and living digital home mode
ViewPager2和VIewPager的區別以及ViewPager2實現輪播圖
Web3.0 series distributed storage IPFs
How to use Mongo shake to realize bidirectional synchronization of mongodb in shake database?
小程序弹出半角遮罩层