Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nikorasu/miscpython
These are a few of my miscellaneous python projects that don't fit elsewhere..
https://github.com/nikorasu/miscpython
digits misc miscellaneous numpy pi pygame python snake sounddevice spectrogram tau terminal terminal-based thematrix typing typing-practice typing-test typingspeedtest wpm wpm-counter
Last synced: 3 months ago
JSON representation
These are a few of my miscellaneous python projects that don't fit elsewhere..
- Host: GitHub
- URL: https://github.com/nikorasu/miscpython
- Owner: Nikorasu
- License: gpl-3.0
- Created: 2022-12-19T05:43:52.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-07T15:35:09.000Z (8 months ago)
- Last Synced: 2024-06-08T04:45:33.023Z (8 months ago)
- Topics: digits, misc, miscellaneous, numpy, pi, pygame, python, snake, sounddevice, spectrogram, tau, terminal, terminal-based, thematrix, typing, typing-practice, typing-test, typingspeedtest, wpm, wpm-counter
- Language: Python
- Homepage:
- Size: 62.5 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Miscellaneous Python Projects
This is a collection of my smaller Python projects that don't fit elsewhere.
---
## CalcPi
These are scripts I wrote to play with and visualize generating digits of Pi.
While researching that, I came across an article on [Spigot algorithms for Pi](https://www.gavalas.dev/blog/spigot-algorithms-for-pi-in-python/),
and their various Python implementations. The author seems to have discovered
one of the fastest ways of doing that in Python, & I couldn't find any faster.Using the generator function by [GavalasDev](https://github.com/GavalasDev),
`CalcPi.py` & `CalcTau.py` live-print the digits in color to the terminal, and
`PiPixel.py` & `TauPixel.py` use Pygame to draw digits as color-coded pixels.
`DigitCompare.py` takes 1000 digits of half-Pi, Pi, and Tau, prints them out
together in rows, coloring digits which overlap in either 2 or all 3 rows.---
## Matrix
This is my version of the classic Matrix code-rain animation, for the terminal.
Made this as a personal challenge on New Year's, and it turned out pretty nice.
I've since made improvements, some alternate versions, and added Japanese kana.
Might be Linux only, `Ctrl+C` to quit. [New version here!](https://github.com/Nikorasu/MatrixCode)---
## Snake
This is a terminal-based Snake game I made, without using additional libraries.
It's pretty basic, play area fills the terminal, so resize it to your liking.
Use arrow keys or wasd to move, `q` to quit.
To get arrow keys working, Esc key won't work quite right, and needs 3 presses.---
## Spectrogram
I put this together while learning to use sounddevice & numpy's fft function.
It's essentially just a reimplementation of sounddevice's spectrogram example,
using Pygame instead of ascii. The _save version outputs timestamped images.---
## TypingWPM
This is a little typing-speed-test I wrote, after seeing someone make something
similar using Curses. I wanted to try doing it without Curses, and it worked!
`typingwpm.py` should be pretty portable, just needs the `pangrams.txt` file.*Note: Slower terminals may bug after rapidly pressing 2 keys at the same time.*
---
If you like my projects and want to help me keep making more,
please consider donating on [my Ko-fi page](https://ko-fi.com/nik85)! Thanks![![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/F1F4GRRWB)
---
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program.
If not, see: https://www.gnu.org/licenses/gpl-3.0.htmlCopyright (c) 2022 Nikolaus Stromberg - [email protected]