Skip to content

Instantly share code, notes, and snippets.

View n1ckfg's full-sized avatar

Nick Fox-Gieg n1ckfg

View GitHub Profile
@n1ckfg
n1ckfg / setup-azure-kinect-on-jetson-x-nx.md
Created December 30, 2020 06:20 — forked from madelinegannon/setup-azure-kinect-on-jetson-x-nx.md
Notes on Setting up the Microsoft Azure Kinect on Ubuntu 18.04
@n1ckfg
n1ckfg / main-multi.cpp
Created January 30, 2021 19:43 — forked from prisonerjohn/main-multi.cpp
Sensing Machines FBOs
#include "ofApp.h"
int main()
{
ofGLFWWindowSettings settings;
settings.setSize(1280, 720);
settings.setPosition(glm::vec2(0, 0));
settings.resizable = true;
settings.decorated = true;
@n1ckfg
n1ckfg / main-multi.cpp
Created January 30, 2021 19:44 — forked from prisonerjohn/main-multi.cpp
Sensing Machines FBOs
#include "ofApp.h"
int main()
{
ofGLFWWindowSettings settings;
settings.setSize(1280, 720);
settings.setPosition(glm::vec2(0, 0));
settings.resizable = true;
settings.decorated = true;
@n1ckfg
n1ckfg / FooTool.cs
Last active February 18, 2021 06:11 — forked from andybak/FooTool.cs
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Conway;
using UnityEngine;
using Random = System.Random;
namespace TiltBrush.AndyB
{
@n1ckfg
n1ckfg / index.svg
Created March 19, 2021 05:26 — forked from spite/index.svg
WebGL in SVG via foreignObject
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@n1ckfg
n1ckfg / fill_depth_colorization.py
Created May 1, 2021 15:16 — forked from ialhashim/fill_depth_colorization.py
Python implementation of depth filling from NYU Depth v2 toolbox
# Original Matlab code https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
#
#
# Python port of depth filling code from NYU toolbox
# Speed needs to be improved
#
# Uses 'pypardiso' solver
#
import scipy
import skimage
@n1ckfg
n1ckfg / convert-mat.py
Created June 14, 2021 22:02 — forked from iaalm/convert-mat.py
Convert between .mat and .h5
#!/usr/bin/python3
import h5py
import numpy
import scipy.io
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("file", help="h5 file or mat file")
args = parser.parse_args()
@n1ckfg
n1ckfg / PointCloud2Voxel.py
Created July 24, 2021 00:06 — forked from hzxie/PointCloud2Voxel.py
Convert Point Cloud to Voxels
import numpy as np
import pandas as pd
from pyntcloud import PyntCloud
import binvox_rw
cloud = PyntCloud.from_file("test/00000.txt",
sep=" ",
header=0,
@n1ckfg
n1ckfg / map.glsl
Created December 8, 2021 05:12 — forked from companje/map.glsl
map() function for GLSL known from Processing & openFrameworks
float map(float value, float min1, float max1, float min2, float max2) {
return min2 + (value - min1) * (max2 - min2) / (max1 - min1);
}
@n1ckfg
n1ckfg / code-toolkit-2021-welcome.js
Last active December 29, 2021 22:16 — forked from rors/code-toolkit-2021-welcome.py
Homepage image for "Code Toolkit: Python", Fall 2021
let heights = [];
let moving_heights = [];
let r = 0;
function setup() {
createCanvas(800, 400, WEBGL);
for (let i=0; i<17; i++) {
heights.push([]);
moving_heights.push([]);
for (let j=0; j<17; j++) {