Skip to content

Instantly share code, notes, and snippets.

View GrHalbgott's full-sized avatar
🐣
Huh? What did I have to do again? Who? When?? WAT?

Niko Kolaxidis GrHalbgott

🐣
Huh? What did I have to do again? Who? When?? WAT?
View GitHub Profile
@GrHalbgott
GrHalbgott / nominatim_geocoder.py
Last active March 20, 2025 10:57
Showcasing the workflow of geocoding an area-of-interest polygon using Nominatim
import sys
import geopandas as gpd
from geopy.geocoders import Nominatim
from shapely import wkt
# To run this script, you need to have geopy and geopandas installed:
# python -m venv .venv
# source .venv/bin/activate
# python -m pip install geopy geopandas
@GrHalbgott
GrHalbgott / morse_dictionary.json
Created March 16, 2025 01:21
A JSON dictionary for Morse code translation
{
"A": ".-",
"B": "-...",
"C": "-.-.",
"D": "-..",
"E": ".",
"F": "..-.",
"G": "--.",
"H": "....",
"I": "..",
@GrHalbgott
GrHalbgott / scales.json
Last active March 18, 2025 00:09
A JSON dataset of musical scales in integer notation, where each scale is represented as a list of half-step intervals from the root note.
{
"aeolian": [0, 2, 3, 5, 7, 8, 10],
"altered": [0, 1, 3, 4, 6, 8, 10],
"arabian": [0, 2, 4, 5, 6, 8, 10],
"augmented": [0, 3, 4, 7, 8, 11],
"augmented_heptatonic": [0, 3, 4, 5, 7, 8, 11],
"balinese": [0, 1, 3, 5, 7, 8, 11],
"bebop": [0, 2, 4, 5, 7, 9, 10, 11],
"bebop_dominant": [0, 2, 4, 5, 7, 9, 10, 11],
"bebop_locrian": [0, 1, 3, 5, 6, 7, 8, 10],
@GrHalbgott
GrHalbgott / Git-Bash_cheat_sheet.md
Last active August 22, 2022 15:30
Git-Bash cheat sheet

Git-Bash cheat sheet

The standard commands to use git in a local folder and to keep a current version online in GitHub (synchronisation).

Command Description
Go into the desired folder - right-click "Git-Bash here"` This way you don't have to cd into the folder. If you have cloned your repository, you are ready to go. If not, you don't need to specify a target location of the folder to be cloned.
git clone RepoURL (insert desired name (with path) or leave empty) Used to establish a connection between the repository and a local folder (creation of a git folder under hidden files with the required information). You can insert a target location if you don't want to use the current folder or repository name.
git pull Use to (re-)download existing data in a repository to the local folder.
git status Use to check the status of synchronization.