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
{-# LANGUAGE RecordWildCards #-} | |
import XMonad | |
import XMonad.Config.Kde | |
import XMonad.Hooks.ManageDocks (avoidStruts) | |
import XMonad.Hooks.ManageHelpers | |
import XMonad.Layout.Grid | |
import XMonad.Layout.NoBorders | |
import XMonad.Util.EZConfig | |
import Graphics.X11.Xlib |
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
:set -XOverloadedStrings | |
:set prompt "\ESC[1;34m%s\n\ESC[0;35mλ> \ESC[m" |
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 | |
# | |
# Convert files between different serialization formats, i.e. | |
# YAML to JSON, JSON to YAML, etc. | |
# | |
import argparse | |
import json | |
import yaml | |
from os.path import splitext |
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
# This is Git's per-user configuration file. | |
[include] | |
path = .gituser | |
[alias] | |
ap = add -p | |
ch = checkout | |
chb = checkout -b | |
cho = !git fetch && git checkout | |
br = branch | |
brd = branch -d |
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
" | |
" usual options | |
" | |
syntax on | |
set nocompatible | |
set ts=4 sts=4 sw=4 sr | |
set autoindent expandtab | |
set incsearch nowrap nu modeline autoread | |
set guioptions=agi | |
set spelllang=de |
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
/** @file filter.c | |
* | |
* IIR filter | |
* | |
* Functions to set up and apply second order low-, high- and bandpass filters. | |
* | |
* @date 09.02.2016 (created) | |
* @author giermanr | |
*/ |
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
/** @file spiasync.c | |
* | |
* Non-blocking SPI transfer | |
* | |
* @date 08.02.2016 | |
* @author mo@liberejo.de | |
*/ | |
#include "spiasync.h" |
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
""" | |
Binterpret | |
Convert binary data to named records. | |
Example of a record definition: | |
>>> inclDef = { | |
>>> "index": INT, | |
>>> "left_pitch100": INT, |
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
void printf(const char *fmt, ...) | |
{ | |
#ifdef DEBUG | |
const char *p; | |
va_list argp; | |
int i; | |
unsigned long j; | |
long l; | |
char *s; | |
struct tm *t; |
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 subprocess import run, PIPE | |
from sys import exit, argv | |
DESCRIBE = ["git", "describe", "--dirty", "--abbrev=4"] | |
TEMPLATE = """ | |
#ifndef _AUTO_VERSION_H_ | |
#define _AUTO_VERSION_H_ | |
#define VERSION "{tag}" |
NewerOlder