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 commands | |
import sys | |
class PackageNotFoundError(StandardError): | |
pass | |
def pkg_config(*packages, **kw): | |
flag_map = {'-I': 'include_dirs', '-L': 'library_dirs', '-l': 'libraries'} |
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
// Created by Christian Kellner on 22/07/2014. | |
// Copyright (c) 2014 G-Node. All rights reserved. | |
// | |
#include <iostream> | |
#include <thread> | |
#include <vector> | |
#include <mutex> | |
#include <utility> |
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 buildpack-deps | |
# base on tomcat from docker | |
MAINTAINER Christian Kellner [email protected] | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update | |
RUN apt-get -y upgrade |
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 | |
# generate a list of files with: find `pwd` -type f | sed -e "s/\//file:\/\/`hostname`/" > list.txt | |
from __future__ import print_function | |
import argparse | |
from urlparse import urlparse | |
import rdflib | |
import sys | |
import mimetypes |
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
cmake_minimum_required(VERSION 2.8.11) | |
project(testproject) | |
message($ENV{QT5_DIR}) | |
if($ENV{QT5_DIR}) | |
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "$ENV{QT5_DIR}/lib/cmake") | |
endif() | |
# Find includes in corresponding build directories |
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 numpy as np | |
import scipy.optimize as optimize | |
import matplotlib.pylab as plt | |
import csv | |
import argparse | |
def main(): | |
parser = argparse.ArgumentParser(description='iris - sine fitter') |
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
ssize_t u8_nbytes(uint8_t bytes) { | |
std::bitset<8> bs(bytes); | |
size_t i; | |
for (i = 0; i < bs.size(); i++) { | |
if (bs[7 - i] == 0) { | |
break; | |
} | |
} |
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 <string> | |
#include <vector> | |
#include <cmath> | |
namespace odml2 { | |
ssize_t u8_nbytes(uint8_t bytes) { | |
std::bitset<8> bs(bytes); |
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 | |
# coding=utf-8 | |
from __future__ import print_function | |
from __future__ import division | |
import os | |
import re | |
import sys | |
from collections import namedtuple |
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 "nix.hpp" | |
#include <chrono> | |
#include <thread> | |
#include <nix/base/Entity.hpp> | |
/* | |
struct cleaner { | |
cleaner(const std::vector<std::reference_wrapper<nix::base::ImplContainer<nix::base::IEntity>>> &x) : e(x){ }; |