Skip to content

Instantly share code, notes, and snippets.

View Schabernack's full-sized avatar

Nicolas Neu Schabernack

View GitHub Profile
using ghostscript, preinstalled by default on osxx
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=merged.pdf source1.pdf source2.pdf source3.pdf etc.pdf

Keybase proof

I hereby claim:

  • I am schabernack on github.
  • I am nicolasmneu (https://keybase.io/nicolasmneu) on keybase.
  • I have a public key whose fingerprint is D068 AD45 7872 1D18 D5A9 9A0F 9EE8 4F2A 38C4 0662

To claim this, I am signing this object:

#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <signal.h>
void signalHandler(int sig){
switch(sig){
case SIGUSR1:
printf("\nSIGUSR1 erhalten \n");
break;
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
typedef struct
{
unsigned short telefonNummer;
@Schabernack
Schabernack / gist:719089
Created November 28, 2010 16:57
alignment
import java.util.Arrays;
public class alignment {
public static int D= 1;
public static int MATCH = 2;
public static int MISMATCH = -1;
public static void main(String[] args){
import java.util.Arrays;
public class alignment {
public static int D= 1;
public static int MATCH = 2;
public static int MISMATCH = -1;
public static void main(String[] args){
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
public class needlemanwunsch {
public static int D= 1;
public static int MATCH = 2;
public static int MISMATCH = 0;
@Schabernack
Schabernack / ps_plot.py
Created November 24, 2011 23:57
Plot csv files for ps
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
import csv
files=[ "l1dsize.csv","l1dassoc.csv", "l2uassoc.csv", "l2usize.csv", "l3uassoc.csv", "l3usize.csv", "lsize.csv"]
for filename in files:
with open(filename, 'r') as csvfile:
@Schabernack
Schabernack / gist:2466195
Created April 22, 2012 19:03
Mengenaddierer
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Uhr</title>
</head>
<script type="text/javascript">
function Set(valuestring){
this.mengenwerte = new Array();
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Uhr</title>
</head>
<script type="text/javascript">
function getTime(){
date = new Date();
h = date.getHours();