Skip to content

Instantly share code, notes, and snippets.

View m4r1vs's full-sized avatar

Marius Niveri m4r1vs

View GitHub Profile
import os
import matplotlib.pyplot as plt
import pandas as pd
cwd = os.getcwd()
def plot_file(file_path, filename):
print(f'Processing file: {file_path}')
with open(file_path, 'r') as file:
import java.util.Arrays;
/**
* Diese Klasse implementiert das Interface TitelListe mit "wachsenden" Arrays.
*
* @author Till Aust
* @author Axel Schmolitzky
* @author Petra Becker-Pechau
* @author Alexander Pokahr
* @author Christian Spaeh
@m4r1vs
m4r1vs / ask-totoro.sh
Created November 9, 2022 01:24
Ask Totoro Script
#!/bin/bash
# chmod +x ./ask-totoro.sh
# sudo mv ask-totoro.sh /path/to/bin/ask-totoro (e.g /usr/bin or ~/.local/bin)
# rofi -modi "ask-totoro:ask-totoro" -show ask-totoro
# i3 config (optional):
# bindym $mod+c exec --no-startup-id rofi -modi "ask-totoro:ask-totoro" -show ask-totoro
if [ ! -z "$@" ]; then
input=$(echo "$@")
@m4r1vs
m4r1vs / settings.json
Created October 9, 2022 21:21
settings file
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command": "find",
"keys": "ctrl+shift+f"
},
{
Game 1
In-Game
PfifferlingPhil: KATA BOT IF YOU DIE I QUIT
PfifferlingPhil: bye
PfifferlingPhil: for realk
PfifferlingPhil: fuck you
PfifferlingPhil: no
PfifferlingPhil: I was base
PfifferlingPhil: when I pinged and wrote in chat
PfifferlingPhil: ff
@m4r1vs
m4r1vs / Waage.jar
Last active December 7, 2020 13:32
/**
* Nimmt die Messung einer Waage entgegen und gibt zurück, wie sich das Gewicht verändert hat, Durchschnitt des Gewichts und max- min- Gewicht
*
* @author Lucas Rock und Marius Niveri
* @version (a version number or a date)
*/
public class Waage
{
private int _letztesGewicht; // Das letzte Gewicht in Gramm
/**
* Exemplare dieser Klasse zeichnen eine einfache Zeichnung.
* Um die Zeichnung auf dem Bildschirm anzuzeigen, muss die
* zeichneSimpel-Methode an einem Exemplar aufgerufen werden.
*
* Diese Klasse ist als fruehes Java-Lehrbeispiel mit BlueJ gedacht.
*
* @author Petra Becker-Pechau
*/
class Zeichner
@m4r1vs
m4r1vs / karel.txt
Last active November 16, 2020 14:59
Karel
/*
F1 = moveForward();
F2 = turnLeft();
F3 = turnAround();
F4 = turnRight();
F5 = pickBeeper();
F6 = dropBeeper();
*/
name = input()
print(name + ', ' + name + ', bo-b' + name[1:])
print('banana-fana fo-f' + name[1:])
print('fee-fi-mo-m' + name[1:])
print(name + '!')
@m4r1vs
m4r1vs / eg
Created October 24, 2018 18:47
minBetrag = min(max(5, 0.021 * balance), balance)
print(minBetrag)