Skip to content

Instantly share code, notes, and snippets.

Avatar

Michael Nischt michael-nischt

View GitHub Profile
View 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
@michael-nischt
michael-nischt / Steam-System-Info.txt
Created May 28, 2020
SteamVR, Steam System & Vulkan Info
View Steam-System-Info.txt
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 Mar 19, 2017
go-debug.conf with buildflags for CGO debugging
View go-debug.conf
{
"configurations": [
{
"name": "Debug CGO",
"mode": "debug",
"_args": [],
"_env": { },
"_cwd": "${workspaceRoot}",
"_host": "localhost",
"_port": 2345,
@michael-nischt
michael-nischt / touchmouse.js
Created Feb 20, 2016
Simple touch to (left) mouse click shim
View touchmouse.js
// 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 Dec 31, 2017
MD-WIKI server and daemon
View md-wiki
#!/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 Aug 29, 2015
server side dropbox
View 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
View AliasMethod.java
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 Jul 26, 2012
Java class that performs a fixed rate simulation.
View Simulation.java
/*
* 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 Jul 19, 2012
creating record like data structures from arrays grouped by an index cell
View grouped.m
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 Jul 19, 2012
accessing a sub-matrix of an unknown multi-dimensional matrix
View submat.m
% 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);