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 | |
# Do What the Fuck You Want to Public License | |
# for Olli with love, for his birthday | |
from __future__ import print_function | |
import argparse | |
import os | |
import os.path | |
import sys |
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
// gcc -I/usr/include -lfprint -o ftest fptest.c | |
// before: dnf install libinput-devel | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stddef.h> | |
#include <libfprint/fprint.h> | |
static struct fp_dev *active; |
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
//NIX DataFrame test | |
#include <nix.hpp> | |
#include <cstdlib> | |
#include <cstring> | |
#include <iostream> | |
#include "backend/hdf5/h5x/H5DataType.hpp" | |
#include "backend/hdf5/h5x/H5Group.hpp" | |
#include "backend/hdf5/h5x/H5DataSet.hpp" |
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
// Generated by JavaCPP version 1.1 | |
#ifdef __APPLE__ | |
#define _JAVASOFT_JNI_MD_H_ | |
#define JNIEXPORT __attribute__((visibility("default"))) | |
#define JNIIMPORT | |
#define JNICALL |
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){ }; |
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 <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
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
#!/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
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 |