Skip to content

nidhoggfgg/mini-projects

Repository files navigation

for-beginners

中文

some practical, mini and easy projects to help beginner used to writing code! all the projects is for study and practice not for product! every project is small(less than 1000 loc) and easy to understand.

drawille (Rust)

a copy version of drawille.

basic.png turtle.png cube.gif

neodonut (Rust)

a donut re-impl and enhanced version (support multi-threads).
a sample: default.gif

calculator (Rust)

a calculator which support variable, functions and plot. only 1000 line of code!

>>> 12.34 * 45.67 + 6! / 2^4 - 1.2+3*(1-2)
604.3678
>>> fun f(a b) = a^x + sin(b) * floor(a*b+5)
>>> x = 4
>>> f(ln(PI) E)
5.003415549553682
>>> fun g(x) = -sin(to_rad(10*x)) * 10 + 15
>>> %plot2d(g, 0, 72, 0.1)
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⢀⡴⠒⠲⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡴⠒⠲⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⣰⠋⠀⠀⠀⠈⢳⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⠋⠀⠀⠀⠈⢳⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⡴⠁⠀⠀⠀⠀⠀⠀⠱⡄⠀⠀⠀⠀⠀⠀⠀⠀⡴⠁⠀⠀⠀⠀⠀⠀⠹⡄⠀⠀⠀⠀⠀⠀⠀⠀⡀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⣄⠀⠀⠀⠀⠀⢀⡼⠁⠀⠀⠀⠀⠀⠀⠀⠀⠙⣄⠀⠀⠀⠀⠀⢀⡼⠁
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⢦⡀⠀⠀⣠⠞⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⢦⡀⠀⠀⣠⠞⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠒⠚⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠒⠚⠁⠀

plot2d

termgraph (Python, Rust)

a hack version of termgraph but simplified!

termgraph.png

framed-text (Python, Rust)

add frame to text. make text more attractive!

framed-txt.png

print-tables (Python, Rust)

make an tables in terminal! like the tables in rich, but more simple and easy to read and write your own code!

print-tables.png

tree-printer (Python)

print the tree structure in visual way! only few line, recursive, simple, and easy to understand!

tree-printer.png

hide the information in a invisible way!

hide-text.png

spark (Python, Rust)

a hack version of spark! there is nothing hard in this hack version!

spark.png