Skip to content

Instantly share code, notes, and snippets.

View klapauciuz's full-sized avatar
💩
fuck

Alice Polansky klapauciuz

💩
fuck
View GitHub Profile
@klapauciuz
klapauciuz / bash_tips.sh
Last active June 27, 2024 16:51
some bash hints for lists manipulation
# get first column(from file with ':' delimeter) and write into output.csv
cut -f1 -d':' input.csv >> output.csv
# get from first up to five column from dataset.csv
cut -f1-5 -d',' dataset.csv
# regex for json-type html parsing
\:(?:[^\:]*)@\C+
# get first column from output.csv
awk -F, '!seen[$1]++' output.csv >> uuu.csv
@Y4suyuki
Y4suyuki / print_anim.py
Created October 3, 2013 06:22
python script which print animation on console
import time
import sys
animation = "|/-\\"
for i in range(100):
time.sleep(0.1)
sys.stdout.write("\r" + animation[i % len(animation)])
sys.stdout.flush()