Skip to content

Instantly share code, notes, and snippets.

View zdxerr's full-sized avatar

Christoph Schniedermeier zdxerr

  • dSPACE GmbH
  • Paderborn, Germany
  • 15:29 (UTC +02:00)
View GitHub Profile
@zdxerr
zdxerr / circular_buffer.c
Created August 23, 2010 07:36
Circular Buffer
/******************************************************************************
* FILE circular_buffer.c
*
* DESCRIPTION
*
*
* AUTHOR(S)
* C. Schniedermeier
******************************************************************************/
@zdxerr
zdxerr / build.py
Created November 19, 2010 07:51
Simple build, pack and test script in Python.
import os
import shutil
import subprocess
from time import sleep
class ExecutionError(Exception):
""" Raised by run() if command returns non-zero exit code. """
pass
@zdxerr
zdxerr / Makefile
Created November 21, 2010 21:26
GKeyFile example.
GTK_CFLAGS = $(shell pkg-config gtk+-2.0 --cflags)
GTK_LIBS = $(shell pkg-config gtk+-2.0 --libs)
all: key_file
key_file: key_file.o
gcc -o key_file.exe key_file.o $(GTK_LIBS)
key_file.o: key_file.c
#include <stdio.h>
#include <windows.h>
#include <direct.h>
#include <string>
#include <vector>
#define REQUIRE_ARG if (opt >= argc) err(); return 1
@zdxerr
zdxerr / SciTEUser.properties
Created December 14, 2010 13:41
SciTE User Properties File
position.height=990
position.width=850
split.vertical=0
tabbar.multiline=1
toolbar.visible=1
statusbar.visible=1
all: sorted_list.exe
sorted_list.exe: sorted_list.c sorted_list.h
gcc sorted_list.c -o sorted_list.exe
@zdxerr
zdxerr / _vimrc
Created February 4, 2011 11:18
VIM configuration
syntax on
set autoindent
set cindent
set sw=4
set ts=4
" Wrap too long lines
set wrap
" Tabs are 2 characters
@zdxerr
zdxerr / exam-protocol-plac.tex
Created February 14, 2011 15:30
Prüfungsprotokoll PLaC
% Vorlage fuer Prüfungsprotokolle, Version vom 10.08.2010
\documentclass[11pt, a4paper]{article}
\usepackage[utf8x]{inputenc}
% Fuer Windows: \usepackage[Latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{ngerman}
import os, os.path
dir = 'E:\\profiler\\'
suffix = ('.c', '.h', '.rc', 'Makefile')
comment_start = '/*'
comment_end = '*/'
comment_line = '//'
du -k * | sort -nr | cut -f2 | xargs -d '\n' du -sh | less