Skip to content

Instantly share code, notes, and snippets.

Thomas Schüßler vindolin

  • Germany
Block or report user

Report or block vindolin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View code.html
<div class="typeahead-container">
<div class="typeahead-field">
<span class="typeahead-query">
<input id="meinpaket_category" name="meinpaket_category" type="search" placeholder="Meinmaket Kategorie" autocomplete="off" value="Technik &amp; Unterhaltung &gt; Musik &gt; Alternative &gt; Gothic &amp; Wave">
<input id="meinpaket_category_id" name="meinpaket_category_id" type="hidden" value="">
vindolin /
Last active Jan 25, 2016
Watch a directory for .x3g files and post them to a flashair sc card.
moved to:
import urwid
class MyEdit(urwid.Edit):
def keypress(self, size, key):
if key == 'enter':
return True
urwid.Edit.keypress(self, size, key)
edit = MyEdit(edit_text='Press ENTER to see my problem!')
#!/usr/bin/env python3
import urwid
palette = [
('highlight', '', '', '', 'bold,#ff0', ''),
('highlight_focus', '', '', '', 'bold,#ff0', '#da0'),
('item_focus','', '', '', '', '#da0'),
#!/usr/bin/env python3
import urwid
palette = [
('highlight', '', '', '', 'bold,#ff0', ''),
('item_focus','', '', '', '', '#da0'),
class Item(urwid.WidgetWrap):
#!/usr/bin/env python
# run with <(history)
import fileinput
history = [
line.strip().partition(' ')[2]
for line in fileinput.input()]
from __future__ import division, print_function
from gi.repository import Clutter
import random
from random import randint
from colorsys import rgb_to_hls, hls_to_rgb
from sys import argv
View attiny85_blinky
#define F_CPU 8000000UL
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include <avr/sleep.h>
#include <avr/power.h>
const uint8_t MINPWM = 1;
const uint8_t MAXPWM = 255;
from collections import defaultdict
def deep_defaultdict():
return defaultdict(deep_defaultdict)
d = deep_defaultdict()
d['x']['y']['z'] = 'foo'
normal_variable = "hello I'm a normal variable"
def lazy_variable():
from random import randint
return "hello I'm a lazy variable and my favorite number is {}".format(randint(0, 1000))
import sys
You can’t perform that action at this time.