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 pathlib | |
import numpy as np | |
from PIL import Image | |
bayer2x2 = 1/4 * np.array([ | |
[0, 2], |
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
" .vimrc | |
" | |
" Kevin Dungs <[email protected]> | |
" 2016-07-16 | |
filetype plugin on | |
set enc=utf-8 | |
" Defaults |
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
#pragma once | |
#include <string> | |
#include <utility> | |
struct Constant { | |
double value; | |
}; | |
double eval(const Constant& c) { return c.value; } |
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
""" Define a Check monad and corresponding functions. | |
""" | |
from functools import partial | |
class Check: | |
""" This super class is not really necessary but helps make the structure | |
clear. | |
data Check a = Pass a | Fail Message |
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 <iostream> | |
#include <boost/serialization/strong_typedef.hpp> | |
BOOST_STRONG_TYPEDEF(double, Time) | |
BOOST_STRONG_TYPEDEF(double, Distance) | |
BOOST_STRONG_TYPEDEF(double, Velocity) | |
Velocity calculateVelocity(Distance d, Time t) { | |
return Velocity{static_cast<double>(d) / static_cast<double>(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
package main | |
import ( | |
zmq "github.com/pebbe/zmq4" | |
//"golang.org/x/net/websocket" | |
"errors" | |
"fmt" | |
"strconv" | |
"strings" |
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
CXX=clang++ | |
CXXFLAGS=-O3 -Werror -Weverything -pedantic -Wno-c++98-compat -std=c++14 | |
all: test_mult | |
clean: | |
rm -f test_mult |
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 <cassert> | |
#include <functional> | |
// | |
// Classical Function Definition | |
// | |
int add(int x, int y) { | |
return x + y; | |
} |
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 python | |
import json | |
import TCKUtils.utils as ut | |
TCK = 0x6A1710 | |
streamers = [ | |
'Hlt1TrackMuonUnit', | |
'Hlt1DiMuonHighMassStreamer', |
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
PROJECT=main | |
build/${PROJECT}.pdf: build/${PROJECT}.bbl | |
lualatex --output-directory=build ${PROJECT} | |
build/${PROJECT}.bbl: build/${PROJECT}.bcf | |
biber build/${PROJECT} | |
build/${PROJECT}.bcf: ${PROJECT}.tex | |
lualatex --output-directory=build ${PROJECT} |
NewerOlder