This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int clk = 12; | |
int dat = 13; | |
int clockspeed = 0; | |
unsigned long timer; | |
#define MAXLEDS 19 | |
byte ledred[MAXLEDS]; | |
byte ledgreen[MAXLEDS]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Connect your ET6202 pins and adapt constants below accordingly | |
const int kPinStb = 4; // Serial interface command mode port | |
const int kPinClk = 3; // Clock input port | |
const int kPinData = 2; // Data input and output port | |
/** | |
* Command (aka Order) to send to the chip. | |
*/ | |
enum Order { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Handle brightness (with xbacklight) | |
local awful = require("awful") | |
local naughty = require("naughty") | |
local tonumber = tonumber | |
local string = string | |
local os = os | |
-- A bit odd, but... | |
require("lib/icons") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!/bin/bash | |
# Dependencies: | |
# imagemagick | |
# i3lock-color-git | |
IMAGE=/tmp/i3lock.png | |
# All options are here: http://www.imagemagick.org/Usage/blur/#blur_args | |
BLURTYPE="0x3" # 7.52s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from itertools import chain | |
import os, re | |
import pp | |
import sys | |
def pointsto(url, target): | |
try: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from lxml import etree | |
from itertools import chain | |
import os, re | |
URL_PREFIX='http://de.wikipedia.org/' | |
URL=URL_PREFIX+'w/index.php?title=Spezial%3AAlle+Seiten&from=&to=&namespace=0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# bash double face palm | |
while (true) | |
do | |
echo -en "\r_o_"; sleep 0.5 | |
echo -en "\r\o/"; sleep 0.2 | |
echo -en "\r|o|"; sleep 0.2 | |
echo -en "\r A "; sleep 0.5 | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# merge two xournal/cournal files of same document | |
import gzip | |
import sys | |
if len(sys.argv) != 4: | |
print("usage: mergexoj.py FILE1 FILE2 OUTPUT") | |
exit() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
# Finde alle Filmordner | |
MOVIES=$(find . | grep STREAM$) | |
# Für jeden Film: | |
for M in $MOVIES | |
do | |
# Liste alle Filmdateien auf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style> | |
html,body { | |
background-color: #888; | |
margin: 0; | |
padding: 0; | |
width: 100%; | |
height: 100%; | |
text-align: center; |
NewerOlder