- Fix libglyr, implement echonest
- Things to look at:
- weechat + bitlbee
- mutt (finally?) or evolution looks good too.
- taskwarrior extended
- tmux
- i3
- IPython
- Coding:
- Clutter
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 | |
def find_next_free_x_display(): | |
for i in range(10): | |
try_path = "/tmp/.X" + str(i) + "-lock" | |
try: | |
with open(try_path,"r"): | |
print("-- " + str(i) + " is there") | |
except: | |
return i |
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 | |
import os, sys, time | |
def find_next_free_x_display(max_tries = 10): | |
""" | |
Find the next free X Display by | |
investigating the Xlocks in /tmp | |
""" | |
for i in range(max_tries): |
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 | |
import os, sys | |
def find_next_free_x_display(max_tries = 10): | |
""" | |
Find the next free X Display by | |
investigating the Xlocks in /tmp | |
""" | |
for i in range(max_tries): |
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 | |
import sqlite3, unittest | |
class KittehDB: | |
def __init__(self,path): | |
""" | |
Creates database at specified path | |
""" | |
print("Creating Database") |
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 | |
import re, urllib.request, sys | |
from html.parser import HTMLParser | |
from urllib.error import HTTPError,URLError | |
class TableHTMLParser(HTMLParser): | |
def __init__(self): | |
super(TableHTMLParser,self).__init__() | |
self.__interest = False | |
self.__lastday = "Montag" |
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
#include <stdexcept> // std::invalid_argument | |
#include <cstdio> // printf() | |
#include <cstdlib> // EXIT_SUCCESS | |
#include <cstring> // memset() | |
namespace NV | |
{ | |
template<typename FloatType, unsigned w, unsigned h> class matrix |
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
#include <glib.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdio.h> | |
/////////////////////////////// | |
gsize gunicode_strlen(const gunichar * s) | |
{ | |
gsize cnt = 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
#!/usr/bin/env python | |
# encoding: utf-8 | |
''' | |
Das ist die eigentliche Anwendung die ihr schreiben sollt. | |
Unten findet ihr bereits eine minimale Flask Anwendung. | |
Jetzt müsst ihr sie nur noch erweitern. | |
''' |
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
>>> def co(): | |
... try: | |
... while True: | |
... item = yield | |
... print('Received:', item) | |
... except GeneratorExit: | |
... print('Exit.') | |
... | |
... | |
... |