Skip to content

Instantly share code, notes, and snippets.

View FlxVctr's full-sized avatar
🧐

Felix Victor Münch FlxVctr

🧐
View GitHub Profile
@FlxVctr
FlxVctr / tg-reshare-vanilla.gexf
Created January 30, 2024 14:44
SMO Telegram Starter Workshop Lützerath Reshare Network Data
<?xml version='1.0' encoding='utf-8'?>
<gexf xmlns="http://www.gexf.net/1.2draft" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.gexf.net/1.2draft http://www.gexf.net/1.2draft/gexf.xsd" version="1.2">
<meta lastmodifieddate="2024-01-23">
<creator>NetworkX 3.1</creator>
</meta>
<graph defaultedgetype="directed" mode="static" name="">
<attributes mode="static" class="edge">
<attribute id="2" title="weight2" type="long" />
</attributes>
<attributes mode="static" class="node">
@FlxVctr
FlxVctr / overwrite.py
Created July 7, 2021 11:43
A function to overwrite the last line in the terminal/stdout
'''
Usage:
previous_text_length = overwrite('text to be written', 0)
previous_text_length = overwrite('next text to be written', previous_text_length)
'''
def overwrite(text, previous):
print('\b' * previous, ' ' * previous, end="\r")
@FlxVctr
FlxVctr / convert_wma_to_flac.sh
Last active March 3, 2022 16:54
Convert wma to flac with ffmpeg (tested on MacOS)
# install ffmpeg and cd into folder containing wma files
# will save all results to output/ in same folder
mkdir output
for file in *.wma
do
echo $file
filename=`basename "$file" .wma`.flac
ffmpeg -i "$file" -acodec flac output/"$filename"
done
@FlxVctr
FlxVctr / independent_t-test.py
Last active May 15, 2017 06:40
An independent t-test with a possibility to visually confirm normal distribution of values
import matplotlib.pyplot as plt
import pandas as pd
from scipy.stats import ttest_ind
p_criterium = 0.01 # adjust for desired p-value
data_1 = [0,2,4,1,3,4,5,6,5,4,3,2] # insert array-like data
data_2 = [1,3,4,123,1234,3,2,3,4] # same here

Keybase proof

I hereby claim:

  • I am flxvctr on github.
  • I am flxvctr (https://keybase.io/flxvctr) on keybase.
  • I have a public key ASDuk74kqTJoVwTBnuB7qRlc9NZsv-Cw_VQ4subw0YmftAo

To claim this, I am signing this object: