Skip to content

Instantly share code, notes, and snippets.

View schinken's full-sized avatar

Christopher Schirner schinken

View GitHub Profile
#include <Wire.h>
const int I2C_ADDR = 0x50;
void dumpEEPROM(bool dumpAsCode = false)
{
for (int i = 0; i < 256; i++) {
const byte eepromByte = readByte(I2C_ADDR, i);
if (dumpAsCode)
{
#!/usr/bin/python2
import subprocess
import requests
import sys
import re
login_url = 'http://....'
login_user = 'foobar'
login_pass = '123123123'
@schinken
schinken / gist:9f953e0cf19feadfb89a
Created October 19, 2015 08:21 — forked from mtwhitley/gist:e2b04f5a034fac617d9c
FastLED Fire 2012 Demo (2 Strips)
#include <FastLED.h>
#define DATA_PIN 3
#define CLOCK_PIN 2
#define DATA_PIN_2 7
#define CLOCK_PIN_2 6
#define CHIPSET APA102
#define NUM_LEDS 144
#define BRIGHTNESS 100
Ft_ccc-bamberg-2015-04-28.jpg
Ft_ankuendigung-repaircafe-2015-04-25.jpg
Ft_SaferInternetDay.pdf
Ft_ankuendigung-tdot-2015.jpg
Feki.de_Der_backspace_-_Bamberger_Hacker_laden_ein.pdf
function fuck() {
killall -9 $2;
if [ $? == 0 ]
then
echo
echo " (╯°□°)╯︵$(echo $2|flip &2>/dev/null)"
echo
fi
}

Keybase proof

I hereby claim:

  • I am schinken on github.
  • I am schinken (https://keybase.io/schinken) on keybase.
  • I have a public key whose fingerprint is FFB7 E40D B2DD D24C C9B7 B5C5 703C F8B8 882C 871E

To claim this, I am signing this object:

@schinken
schinken / gist:5781953
Created June 14, 2013 13:51
the combination of filter and first-letter{ text-transform: uppercase; } lets IE8 and IE9 crash! :>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<style>
.trwurst {
width: 200px;
height: 40px;
border: 1px solid red;

Python Number Conversion Chart

From To Expression
import requests
from flask import Flask
app = Flask(__name__)
@app.route("/")
def toggle():
url = 'https://webrelais.bckspc.de/relais/3'
if requests.get(url).json()['response']:
requests.delete(url)
else:
import requests
from flask import Flask
app = Flask(__name__)
@app.route("/")
def toggle():
url = 'https://webrelais.bckspc.de/relais/3'
if requests.get(url).json()['response']:
requests.delete(url)
else: