Programing
In the 21st century, knowing how to use a computer doesn’t just mean being able to browse the internet or write documents; it means being able to command the computer to reduce repetitive tasks and increase productivity—in other words, knowing how to program. However, since Fresh Shrimp Sushi House is not a blog for developers, we focus on simple tips rather than detailed theories.
Theory
- Types in Programming
- First-Class Objects in Programming
- Metaprogramming
- Programming Paradigms
- Why ’d’ and ‘f’ Are Used in Format Codes for Integers and Floats
- Row-Major and Column-Major Order in 2D Arrays
- Higher-Order Functions
- Map and Reduce
- Knuth’s Up-Arrow Notation: Why Exponentiation is Expressed as
^
in Programming
Cheatsheet
Python
- Web Scraping and Removing Tags
- How to Read Large
csv
Files at Once - How to Concatenate Rows and Columns in
numpy
Arrays - How to Swap Two Variable Values
- Difference Between
is
and==
- Three Ways to Pause a Program:
input()
,time.sleep()
,os.system("pause")
- Comprehensive Guide to the
shutil
Module - Comprehensive Guide to the
os
Module - Things to Be Careful About When Slicing
- How to Write Nested For Loops in One Line Using
itertools.product()
- How to Fix Issues When Opening
.npy
Files - How to Get Column and Row Names in DataFrames with
pandas
.columns
,.index
- How to Index Arrays with Tuples
- How to Convert Strings Like
"False"
,"no"
to BooleanFalse
Usingdistutils.util.strtobool()
- How to Clear Previous Output and Display Progress
- Python Library
easydict
for Convenient Use of Dictionaries - How to Pass Arguments When Running Python Files
- How to Check the Operating System Using
platform.system()
matplotlib
- How to Fix “Fail to create pixmap with TK_GetPixmap in …” Error
- How to Specify Plot Scale Range Using
plt.clim(a, b)
- How to Draw Vertical and Horizontal Lines Using
plt.axvline()
,plt.axhline()
- How to Remove Axes Using
plt.axis('off')
,plt.gca().axes.xaxis.set_visible(False)
- How to Create Subplots Using
plt.subplot
- How to Create Subplots with Complex Layouts Using
gridspec
- How to Draw Subplots at Arbitrary Positions or Overlap Them Using
fig.add_axes
- How to Draw Box Plots Using
plt.boxplot
pip
- How to Install
cv2
andPIL
Packages with pip - How to Check Package, Library, Module Versions Using
pip3 freeze
MATLAB
MATLAB is a software developed by MathWorks that offers powerful matrix algebra and applications. In fact, installing MATLAB is not straightforward, but if you have a license, you can simply run it online at this link.
Tutorial
- How to Comment/Uncomment Multiple Lines at Once: Ctrl+R, Ctrl+T
- How to Save Calculated Data to an Excel File
- How to Import Data from Excel
- How to Measure Code Execution Time
- How to Clear Workspace and Remove All Variables
Matrices
- Functions Related to Matrix Length and Size
- How to Perform Element-wise Operations on Two Matrices
- Functions to Create Special Matrices
- How to Select Specific Rows and Columns of a Matrix
- How to Generate Equally Spaced Row Vectors
Visualization
- List of Special Symbols Available in Graphs
- How to Display Multiple Figures on One Page
- How to Specify Graph Colors, Line Styles, and Marker Types
Image Processing
OS
- How to Upload and Download Files to/from a Server Using
scp
- How to Connect to an SSH Server Using CLI
- How to Check Text File Encoding in Terminal
- How to Connect to a Windows Server from a Linux Client Using SAMBA
Windows
- How to Set Up an SSH Server
- How to Get a List of Files Using Command Prompt
- How to Install Python TensorFlow
- How to Install Python TensorFlow GPU
- Initial Settings for Windows 11
- How to Perform System Restore Using
rstrui
Linux
In the case of compiler languages, Linux is often more convenient than Windows.
- How to Run
a.out
After Compiling Fortran - How to Compile C Code Using GCC Compiler
- How to Initialize Swap Memory
- 🔒 (24/11/24) How to Remote Access Linux via Chrome and Fix Black Screen Issues
- 🔒(25/01/05) How to Exit vi or vim on Linux
Frontend
JavaScript
Program
Many people, when they first start coding, want to solve problems on their own with infinite confidence. However, true experts know when to program and when it’s unnecessary. Knowing some tips about popular commercial programs can significantly improve work efficiency.
MS Office
- How to Change Default Save Location in Excel, PowerPoint, Word
- How to Draw Histograms in Excel
- How to Create Maps in Excel
- 🔒 (24/11/04) How to Align Based on Equal Signs in PowerPoint
- 🔒 (24/11/08) How to Easily Create Large Square Matrices in PowerPoint
- 🔒 (24/11/12) How to Easily Create Large Rectangular Matrices in PowerPoint
git
VS Code
Visual Studio Code is a text editor developed by Microsoft and is currently the most widely used development environment.
- How to Change Default Terminal for
Ctrl+Shift+C
- Default Snippet Path
- How to Use Multiple Windows
- How to Change Auto Line Wrap Settings: Alt + z
All posts
- code summary
- 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
- How to Comment and Uncomment Multiple Lines at Once in MATLAB
- How to Save Data Calculated in MATLAB to an Excel File
- Importing Excel Data into MATLAB
- List of Special Symbols Available for Graphs in MATLAB
- How to Output Multiple Figures on One Page in MATLAB
- Matrix Size and Related Functions in MATLAB
- How to Perform Element-wise Operations on Two Matrices in MATLAB
- Creating Special Matrices in MATLAB
- Rotating an Image in MATLAB
- How to Specify Colors, Line Styles, and Marker Types in MATLAB Graphs
- Selecting Specific Rows and Columns in a Matrix in MATLAB
- How to Create Equally Spaced Row Vectors in MATLAB
- 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
- Resizing Images in MATLAB
- Measuring Code Execution Time in MATLAB
- Uploading and Downloading Files to and from a Server using SCP
- Meta-Programming
- How to Initialize the Workspace and Remove All Variables in MATLAB
- Compiling C Code with GCC Compiler on Linux
- How to Print and Save a 2D Array as a Heatmap Image in MATLAB
- 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
- How to Draw a Histogram in Excel
- 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
- How to Draw a Map in Excel
- 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
- How to Change the Default Save Location for Excel, PowerPoint, and Word
- Snippet Defualt Directory of vscode
- How to use multi window in vscode
- Changing Automatic Line Wrapping Settings in VSCode
- Example of Changing Output with a Button in JavaScript
- How to Use Functions Outside a JavaScript Module
- Knuth's Up-Arrow Notation: Why ^ is Used for Exponentiation in Programming
- How to Align Based on the Equal Sign in PowerPoint
- How to Easily Create Large Square Matrices in PowerPoint
- How to Easily Create Large Rectangular Matrices in PowerPoint
- Accessing Linux Remotely via Chrome and Solutions to the Black Screen Issue
- How to Access a Windows Server from Linux Clients using SAMBA