This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 | |
from evdev import InputDevice, categorize, ecodes, list_devices | |
import argparse | |
def main(): | |
parser = argparse.ArgumentParser(description="little evdev helper") | |
parser.add_argument("device", help='input device to open', default=None, nargs='?') | |
args = parser.parse_args() |
This file contains hidden or 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 sys | |
import numpy as np | |
def area(d, a, b): | |
return (a*b)/(a**2+b**2) * d**2 | |
def dpi(d, res, ratio): | |
a, b = ratio |
This file contains hidden or 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 sys | |
import numpy as np | |
def limit(ts, r): | |
return (r / ts) * 25.4 | |
def ds(w, h): | |
return np.sqrt(w**2 + h**2) / 25.4 |
This file contains hidden or 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
template<typename Container, typename E> | |
void replaceEntities(Container &container, const std::vector<E> &newEntities) { | |
auto cmp = [](const E &a, const E &b) { return a.name() < b.name(); }; | |
std::vector<E> new_entities(newEntities); | |
ObjectType ot = nix::objectToType<E>::type; | |
ndsize_t current = container.entityCount(ot); | |
size_t old_count = nix::check::fits_in_size_t(current, "entityCount() failed; count > size_t."); |
This file contains hidden or 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
/* -*- mode: C; c-file-style: "stroustrup"; indent-tabs-mode: nil; -*- */ | |
#include <gdk/gdk.h> | |
#include <gtk/gtk.h> | |
#ifdef GDK_WINDOWING_WAYLAND | |
#include <gdk/gdkwayland.h> | |
#endif | |
#ifdef GDK_WINDOWING_X11 | |
#include <gdk/gdkx.h> |
This file contains hidden or 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
commit a95e03f0be450bb30af5cf1cd968ca8191c2560d (HEAD -> master) | |
Author: Christian Kellner <[email protected]> | |
Date: Mon Jun 19 17:45:54 2017 +0200 | |
Add fallthrough comments to fix gcc warnings | |
diff --git a/qrenderdoc/3rdparty/scintilla/src/RESearch.cxx b/qrenderdoc/3rdparty/scintilla/src/RESearch.cxx | |
index 4e290309..100c6f84 100644 | |
--- a/qrenderdoc/3rdparty/scintilla/src/RESearch.cxx | |
+++ b/qrenderdoc/3rdparty/scintilla/src/RESearch.cxx |