Skip to content

Instantly share code, notes, and snippets.

View derf's full-sized avatar
😶‍🌫️
overcommitted

Birte Friesel derf

😶‍🌫️
overcommitted
View GitHub Profile
@derf
derf / feh-toggle-info-button.patch
Created July 18, 2013 14:56
feh patch for "toggle_info" button
diff --git a/src/events.c b/src/events.c
index fadae9b..0998a3c 100644
--- a/src/events.c
+++ b/src/events.c
@@ -108,6 +108,7 @@ void init_buttonbindings(void)
feh_set_bb(&buttons.next, 0, 5);
feh_set_bb(&buttons.blur, 4, 1);
feh_set_bb(&buttons.rotate, 4, 2);
+ feh_set_bb(&buttons.toggle_info, 4, 3);
@derf
derf / nn.py
Created February 26, 2015 16:54
Neuronales Netzwerk in Python
# -*- coding: utf8
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import animation, cm
class NeuralNetwork(object): # {{{
# Lernrate: 0.1 bis 0.3 ist sinnvoll (zu hoch -> Schießt über das Ziel hinaus)
# alpha: Steilheit des Sigmoid. Sollte < 5 bleiben, sonst gibts
# numerische Fehler
#
# CCS811_RPi
#
# Petr Lukas
# July, 11 2017
#
# Version 1.0
import struct, array, time, io, fcntl
#!/usr/bin/env python3
import aiohttp
import asyncio
from datetime import datetime
import json
class EFA:
def __init__(self, url, proximity_search=False):