Skip to content

Instantly share code, notes, and snippets.

View michael-nischt's full-sized avatar

Michael Nischt michael-nischt

View GitHub Profile
@michael-nischt
michael-nischt / SteamVR-2020-05-31-AM_11_35_07.txt
Created May 31, 2020 09:48
SteamVR-2020-05-31-AM_11_35_07.txt
This file has been truncated, but you can view the full file.
SteamVR System Report created Sun May 31 11:35:01 2020
<Report>
SteamVR Version: 1.12.5 (1590711374)
SteamVR Date: 2020-05-29
Steam: Public
Steam Branch: beta
Steam AppID: 250820
Tracking: lighthouse
OS: Linux version 5.4.0-33-generic (buildd@lcy01-amd64-022) (gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu2)) #37-Ubuntu SMP Thu May 21 12:53:59 UTC 2020
@michael-nischt
michael-nischt / Steam-System-Info.txt
Created May 28, 2020 23:53
SteamVR, Steam System & Vulkan Info
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Laptop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
CPU Family: 0x6
@michael-nischt
michael-nischt / go-debug.conf
Created March 19, 2017 13:53
go-debug.conf with buildflags for CGO debugging
{
"configurations": [
{
"name": "Debug CGO",
"mode": "debug",
"_args": [],
"_env": { },
"_cwd": "${workspaceRoot}",
"_host": "localhost",
"_port": 2345,
@michael-nischt
michael-nischt / touchmouse.js
Created February 20, 2016 10:37
Simple touch to (left) mouse click shim
// This is free and unencumbered software released into the public domain.
//
// Anyone is free to copy, modify, publish, use, compile, sell, or
// distribute this software, either in source code form or as a compiled
// binary, for any purpose, commercial or non-commercial, and by any
// means.
//
// In jurisdictions that recognize copyright laws, the author or authors
// of this software dedicate any and all copyright interest in the
// software to the public domain. We make this dedication for the benefit
@michael-nischt
michael-nischt / md-wiki
Last active December 31, 2017 02:35
MD-WIKI server and daemon
#!/bin/sh
### BEGIN INIT INFO
# Provides: md-wikid
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Markdown Wiki Service
### END INIT INFO
@michael-nischt
michael-nischt / dropbox
Last active August 29, 2015 13:57
server side dropbox
#!/bin/sh
### BEGIN INIT INFO
# Provides: dropbod
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Dropbox Service
### END INIT INFO
package net.monoid.util;
import java.util.*;
/**
* based on:
* http://www.keithschwarz.com/darts-dice-coins/
* http://www.keithschwarz.com/interesting/code/?dir=alias-method
*/
public final class AliasMethod {
@michael-nischt
michael-nischt / Simulation.java
Created July 26, 2012 08:34
Java class that performs a fixed rate simulation.
/*
* Copyright (c) 2012 Michael Nischt
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
@michael-nischt
michael-nischt / grouped.m
Created July 19, 2012 00:10
creating record like data structures from arrays grouped by an index cell
function [ grouped ] = grouped( indices, varargin )
if iscell(indices)
I = indices;
else
I = grouped_indices( indices );
end
if isempty(varargin)
grouped = I;
@michael-nischt
michael-nischt / submat.m
Created July 19, 2012 00:10
accessing a sub-matrix of an unknown multi-dimensional matrix
% if ndims(A) == 3
% submat(A,i) = A(:,:,i)
% alternative use:
% submat(A,i:j) = A(:,:,i:j)
function B = submat( A, i )
s = size(A);