Skip to content

Instantly share code, notes, and snippets.

View git-commit's full-sized avatar

Maximilian Berger git-commit

View GitHub Profile
{
"isodatetime": "2023-08-15T17:59:23.947191967Z",
"apps": [
{
"repoUrl": "https://git.flow3r.garden/rahix/nick-rahix",
"name": "Rahix' Nick",
"menu": "Badge",
"author": "rahix",
"description": "A custom nickname app with more purple and more comic sans.",
"version": "0"
{"isodatetime":"2023-08-15T17:42:41.387036174Z","apps":[{"repoURL":"https://git.flow3r.garden/rahix/nick-rahix","name":"Rahix' Nick","menu":"Badge","author":"rahix","description":"A custom nickname app with more purple and more comic sans.","version":0}]}
{
"isodatetime": "2013-01-01T00:00:00.000Z",
"apps": [
{
"repoUrl": "https://github.com/rahix/flow3r-example",
"name": "flow3r-example",
"menu": "Apps",
"author": "Rahix",
"description": "An example app for flow3r",
"downloadUrl": "https://rust.jetzt/coolcrab.png",
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
"""THIS EXAMPLE REQUIRES A SEPARATE LIBRARY BE LOADED ONTO YOUR CIRCUITPY DRIVE.
This example requires the adafruit_irremote.mpy library.
THIS EXAMPLE WORKS WITH CIRCUIT PLAYGROUND EXPRESS ONLY.
This example uses the IR transmitter found near the center of the board. Works with another Circuit
Playground Express running the circuitplayground_ir_receive.py example. Press the buttons to light
@git-commit
git-commit / sudo-touchid.zsh
Created July 14, 2022 16:50
ZSH script to use touch id for sudo
# Enable sudo via touch ID
grep -qxF "auth sufficient pam_tid.so" /etc/pam.d/sudo || sudo sed -i '' '1 a\
auth sufficient pam_tid.so
' /etc/pam.d/sudo
# Test TFF => If this prints 'Hello, World!' we're fine
import nest_asyncio
nest_asyncio.apply()
import tensorflow_federated as tff
tff.federated_computation(lambda: 'Hello, World!')()
@git-commit
git-commit / roc_evaluation.py
Last active March 29, 2021 15:30
roc evaluation multiclass
def roc(true_class, predicted_score):
print(f"roc_macro_ovr={sklearn.metrics.roc_auc_score(true_class, predicted_score, average='macro', multi_class='ovr')}")
print(f"roc_macro_ovo={sklearn.metrics.roc_auc_score(true_class, predicted_score, average='macro', multi_class='ovo')}")
print(f"roc_weighted_ovr={sklearn.metrics.roc_auc_score(true_class, predicted_score, average='weighted', multi_class='ovr')}")
print(f"roc_weighted_ovo={sklearn.metrics.roc_auc_score(true_class, predicted_score, average='weighted', multi_class='ovo')}")
roc(true_class, self.model.predict(self.x_val))
#!/bin/bash
#############################################################################################################
#Changelog #
#############################################################################################################
#Added prompts for user input to configure script instead of relying on hardcoded settings.
#Added a lot of errorchecking
#The script is now optionally compatible with dash (this is the reason for there being a sed command at the end of every echo -e instance, dash liked to print the -e part when I was testing.)
#Vastly improved compatibility across distributions
#Special thanks to everyone who contributed here: https://gist.github.com/i3v/99f8ef6c757a5b8e9046b8a47f3a9d5b
#Also extra special thanks to BAGELreflex on github for this: https://gist.github.com/BAGELreflex/c04e7a25d64e989cbd9376a9134b8f6d it made a huge difference to this improved version.
#include <Wiimote.h>
#include <HardwareSerial.h>
HardwareSerial oSerial(1); // RX, TX
typedef struct{
int16_t steer;
int16_t speed;
uint32_t crc;
} Serialcommand;
Serialcommand oCmd;
@git-commit
git-commit / .block
Created May 28, 2019 12:28 — forked from nbremer/.block
Radar Chart Redesign
height: 600
license: mit