Programing
In the 21st century, being able to use a computer doesn’t just mean you can browse the internet or write documents; it means you can command the computer, reduce repetitive tasks, and enhance productivity—in other words, it means knowing how to program. However, as this is not a blog for developers at the Shrimp Sushi Restaurant, it focuses on simple tips rather than detailed theories.
theory
- Types in Programming
- First-class Objects in Programming
- Meta Programming
- Programming Paradigms
- Reasons for using d and f in Integer and Floating-point Format Codes
- Row-major and Column-major in 2D Arrays
- Higher-order Functions
- Map and Reduce
cheatsheet
python
- Web Document Crawling and Tag Removal
- Reading Large
csv
Files at Once - Row and Column Merging with
numpy
Array - Swapping Two Variables
- Difference between
is
and==
- Three Ways to Pause a Program:
input()
,time.sleep()
,os.system("pause")
- Comprehensive Guide to the
os
Module - Comprehensive Guide to the
shutil
Module - Things to Watch Out for When Slicing
- Writing Multiple for-loops in One Line with
itertools.product()
- Solutions When npy Files Won’t Open
- Getting Column and Row Names in
pandas
Data Frames with.columns
,.index
- Indexing Arrays with Tuples
- Converting Strings like
"False"
,"no"
to BooleanFalse
withdistutils.util.strtobool()
- Clearing Previous Output and Displaying New Progress
- Python Library for Convenient Dictionary Use:
easydict
- Passing Input Arguments When Executing Python Files
- Getting PC Name with
os.getlogin()
- Checking the Operating System with
platform.system()
matplotlib
- Solving the Error: Fail to create pixmap with TK_GetPixmap in …
- Setting the Scale Range for Figures with
plt.clim(a,b)
- Drawing Vertical and Horizontal Lines with
plt.axvline()
,plt.axhline()
- Removing Axes with
plt.axis('off')
,plt.gca().axes.xaxis.set_visible(False)
- Drawing Subplots with
plt.subplot
- Drawing Subplots in Complex Layouts with
gridspec
- Drawing Overlapping Subplots or Subplots at Arbitrary Locations with
fig.add_axes
- Drawing Box Plots with
plt.boxplot
pip
OS
- Uploading and Downloading Files to/from a Server with scp
- 🔒(24/03/09) Accessing SSH Servers via CLI
- Checking Text File Encoding in Terminal
window
- Setting up an ssh Server
- Getting File List from Command Prompt
- Installing Python TensorFlow
- Installing Python TensorFlow GPU
- Initial Setup for Windows 11
- 🔒(24/03/23) System Restore with
rstrui
linux
In fact, for compiled languages, Linux is often more convenient than Windows.
Frontend
Javascript
- 🔒(24/09/17) Example of Changing Output with a Button
- 🔒(24/09/19) Using Functions Outside a Module with
window.f = _f
Program
Many people, upon first getting into coding, want to solve problems on their own with boundless confidence. However, a true expert knows when programming is needed and when it’s not. Knowing a few tips about some popular commercial programs can significantly improve work efficiency.
git
VS Code
Visual Studio Code is a text editor developed by Microsoft, and is currently the most widely used development environment.
- Changing the Default Terminal with
Ctrl+Shif+C
- 🔒(24/09/05) Default Snippet Path
- 🔒(24/09/09) Using Multiple Windows
- 🔒(24/09/13) Changing Auto-wrap Settings with Alt + z
All posts
- How to Change the Default Save Location for Excel, PowerPoint, and Word
- Reasons for Using the Format Codes d and f for Integers and Floating-Point Numbers
- Web Scraping and Removing Tags with Python
- How to Execute a.out after Compiling Fortran in Linux
- How to Install TensorFlow for Python on Windows
- How to Get a List of Files from Command Prompt in Windows
- Programming Paradigm
- Programming Types
- First-Class Objects in Programming
- How to install the cv2 and PIL packages with pip in Python
- Reading Large CSV Files in Python at Once
- Merging Rows and Columns in numpy array in Python
- How to Swap the Values of Two Variables in Python
- Differences between is and == in Python
- Building an SSH Server on Windows
- Uploading and Downloading Files to and from a Server using SCP
- Meta-Programming
- Compiling C Code with GCC Compiler on Linux
- Equivalents Codes in Julia, MATLAB, Python, and R
- How to Save a Git Password
- Solution to the git warning: LF will be replaced by CRLF in …
- RGB Color Cheat Sheet
- Row-major and Column-major of 2D Arrays
- How to Solve the "Fail to create pixmap with TK_GetPixmap in TKImgPhotoInstanceSetSize" Error in Python matplotlib
- How to Initialize Swap Memory in Linux
- Installing TensorFlow GPU on Windows with Python
- Points to Note When Slicing in Python
- Three Ways to Pause a Program in Python
- Python OS Module Summary
- Writing Multiple for Loops in One Line Using Python
- Solutions When Python npy Files Won't Open
- Python shutil Module Summary
- How to Set Plot Scale Range in Python matplotlib
- How to Check Python Package, Library, and Module Versions
- How to Get Column and Row Labels of Data Frame in Python Pandas
- Drawing Vertical and Horizontal Lines in Python matplotlib
- How to Remove Axes in Python matplotlib
- How to Change the Default Terminal in VS Code with Ctrl+Shift+C
- Using Tuples for Indexing in Python
- How to Check Text File Encoding at the Terminal
- Higher-Order Functions in Programming
- Programming with Map and Reduce
- CSS color name tags
- Python Matplotlib Basics & Custom Line Styles
- Converting Strings like 'False', 'True' to Bool Type in Python
- How to Replace Existing Output with New Output in Python and Display Progress
- EasyDict: A Python Package for Convenient Dictionary Use
- How to Draw Subplots in Python matplotlib
- Drawing Subplots with Complex Layouts in Python matplotlib
- Drawing Subplots at Desired Arbitrary Locations or Overlapping in Python matplotlib
- How to Draw a Box Plot in Python matplotlib
- How to Pass Arguments When Executing a Python File
- Python's Command Line Parsing Module argparse
- Windows 11 Initial Setup
- How to Connect to an SSH Server via CLI
- Sampling with Replacement and without Replacement in Python
- How to Perform System Restore on Windows
- How to Get the PC Name in Python
- How to Check the Operating System in Python