snippets
LLM prompt
latex format
**Prompt:**
Convert the following mathematical expressions from backslash format to LaTeX using `$...$` for inline formulas and `$$...$$` for standalone equations.
**Text to Convert:**
1. `y = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}`
2. `E = mc^2`
3. `\int_{a}^{b} x^2 dx`
4. `x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} and y = mx + c`
5. `\sum_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6}`
**Expected Conversion:**
1. $$y = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$$
2. $E = mc^2$
3. $$\int_{a}^{b} x^2 dx$$
4. $x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$ and $y = mx + c$
5. $$\sum_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6}$$
**Instructions:**
Use `$...$` for expressions within a line of text and `$$...$$` for centered equations.
---
This streamlined version focuses directly on the conversion task.Bash
Work flow
ls column by index
Add sbatch in do.sh
do.shFind how many works are running
Cancel homework from one id to another id
Find numbers of pattern in one file
Display all the content in many files
Find empty file of subdirectories
grep number
loop over some specific list
hard link
check disk space
delete many files
Tips
Git
How to add some specific file
add tag
Python
Algorithm
Ipython
Healpy
Numpy
Fits files operation
Matplotlib
colors
markers
h5 files operation
sav files operation
Latex
Plots
CMB tasks
Utils
Docs
tips
keywords argment
Special parameters
walrus operator
Looping Techniques
formatted string
save list and dict in a json file
namespace
static method
super method
dataclass
python directory structure
iterable and iterator
ArchLinux
pacman
Useful tools
For Shell
Zoxide
eza
fzf
toolong
history command
cd git directory
Last updated