- 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 hidden or 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
import cairo | |
from math import pi | |
from gi.repository import Gtk, Gdk | |
class CairoGtkWidget(Gtk.DrawingArea): | |
def __init__(self): | |
Gtk.DrawingArea.__init__(self) | |
# Theming Information (so cairo widgets look natural) |
This file contains hidden or 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 | |
# Description: | |
# Script to query mpd's status and download a cover of the currently playing | |
# song on song-change and execute a user-defined command to show the cover. | |
# (e.g. with notify-send, by default with a image viewer for testing) | |
# Feel free to make your customizations here. | |
MPD_SERVER="--port 6600 --host localhost" # For default case. |
This file contains hidden or 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 | |
import sys | |
import os | |
def finish(data_set): | |
base_names = {} | |
for dup in data_set: |
This file contains hidden or 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.') | |
... | |
... | |
... |
This file contains hidden or 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
''' | |
Python coroutine Example for a Pipeline model. | |
--------- ------- ------- | |
| Source | => send() => | Pipe | => send() => | Sink | | |
--------- ------- ------- | |
close() shutdown the *whole* Pipeline. | |
''' |
This file contains hidden or 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 hidden or 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> | |
#include <locale.h> | |
/////////////////////////////// | |
// Old version | |
gsize levenshtein_plain_strcmp(const gchar * s, const gchar * t) |
This file contains hidden or 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 hidden or 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 |