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 python3 | |
import argparse | |
import re | |
from pathlib import Path | |
from typing import List | |
from enum import Enum | |
def to_dir_path(arg: str) -> Path: |
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 <gtk/gtk.h> | |
enum | |
{ | |
COLUMN_ARTICLE = 0, | |
COLUMN_PRICE, | |
N_COLUMNS | |
}; | |
typedef struct |
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
TEMPLATE = template.tex | |
STYLESHEET = style.css | |
MD = $(wildcard *.md) | |
TEX = $(patsubst %.md,%.tex,$(MD)) | |
HTML = $(patsubst %.md,%.html,$(MD)) | |
PDF = $(patsubst %.md,%.pdf,$(MD)) | |
.PHONY: clean pdf html | |
all: pdf html |
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
import os | |
import sys | |
import re | |
import difflib | |
store = os.path.abspath('/home/matthias/dev/password-store/') | |
def get_password_names_old(name): | |
names = [] |
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
from concurrent.futures import Future, ThreadPoolExecutor | |
class promise(object): | |
executor = ThreadPoolExecutor(max_workers=100) | |
def __init__(self, func): | |
self.func = func |
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
import time | |
import gevent | |
import functools | |
class GreenletRunner(gevent.Greenlet): | |
def __init__(self, func, args, kwargs): | |
super(GreenletRunner, self).__init__() | |
self.func = func |
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
# - pre-configured paths for CMake | |
# | |
# Usage: | |
# configure_paths(<PREFIX>) | |
# | |
# Checks if configure-like prefix and installation paths were passed by the user | |
# and sets up corresponding variables for use in install() commands and to fill | |
# out .pc files: | |
# | |
# PREFIX_PREFIX defaults to ... CMAKE_INSTALL_PREFIX |
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
From 3201220ff9c80c9f47f69ad67e5f559036aa5464 Mon Sep 17 00:00:00 2001 | |
From: Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | |
Date: Tue, 22 Oct 2013 14:11:31 +0200 | |
Subject: [PATCH] Ignore ufo-mpi-messenger.h for gtkdoc-scangobj | |
--- | |
ufo/CMakeLists.txt | 1 + | |
1 file changed, 1 insertion(+) | |
diff --git a/ufo/CMakeLists.txt b/ufo/CMakeLists.txt |
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 coroutine(func): | |
def start(*args, **kwargs): | |
g = func(*args, **kwargs) | |
g.next() | |
return g | |
return start | |
def produce(consumer): | |
for item in (1,2,3,4): |
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
# -*- coding: utf-8 -*- | |
import re | |
import difflib | |
import codecs | |
from itertools import chain | |
_diff_split_re = re.compile(r'(\s+)(?u)') |
NewerOlder