Skip to content

Instantly share code, notes, and snippets.

import gab.opencv.*;
PImage src;
OpenCV opencv;
int thresh = 70;
float approx = 0.02;
float minArea = 1.0;
ArrayList<Contour> contours;
ArrayList<Contour> polygons;
@n1ckfg
n1ckfg / Palette.pde
Last active December 28, 2020 17:15
import java.util.*;
class Col {
color c;
float d;
Col(color _c, float _d) {
c = _c;
d = _d;
}
@echo off
cd %~dp0
cd C:\Program Files (x86)\ZED SDK\samples\bin
echo ...............................................
echo 0 - H.264 AVI, left + right
echo 1 - H.264 AVI, left + depth
echo 2 - 8bpc PNG sequence, left + right
echo 3 - 8bpc PNG sequence, left + depth
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Reveal : MonoBehaviour {
public bool runOnStart = true;
public bool hideOnStart = true;
public float startDelay = 1f;
public float revealDelay = 0.1f;
@n1ckfg
n1ckfg / persee_ubuntu_setup.txt
Last active January 15, 2019 21:24
Persee Ubuntu 16.04 setup
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
*** 1. Enable autologin ***
https://askubuntu.com/questions/162722/how-can-i-enable-autologin-for-my-user-account-when-the-option-is-not-there
Open this file with root /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf
Then append the following code:
[SeatDefaults]
greeter-session=lightdm-gtk-greeter
Osceleton message format
Joint names (15) are:
"head", "neck", "torso", "r_shoulder", "r_elbow", "r_hand", "l_shoulder", "l_elbow", "l_hand", "r_hip", "r_knee", "r_foot", "l_hip", "l_knee", "l_foot"
Channel name is always:
"/joint"
Message pattern is:
sifff
1. Build environment:
1.1. Get package manager from Magic Leap
1.2. Get custom Unity version from Unity
1.3. Install Lumin SDK with package manager
1.4. Get Unity package from the package manager
1.5. Run mldb from package manager and confirm that Leap is connected.
2. Register app:
2.1. Set up user ID on Magic Leap website
2.2. Get cert via the Magic Leap website
Markdown Cheatsheet
Adam Pritchard edited this page on May 29, 2017 · 96 revisions
This is intended as a quick reference and showcase. For more complete info, see John Gruber's original spec and the Github-flavored Markdown info page.
Note that there is also a Cheatsheet specific to Markdown Here if that's what you're looking for. You can also check out more Markdown tools.
Table of Contents
Headers
Emphasis
Lists
import processing.net.*;
Client client;
void setup() {
size(960, 540, P3D);
client = new Client(this, "vr.fox-gieg.com", 8080);
client.write("GET / HTTP/1.0\r\n");
client.write("\r\n");
}
"use strict";
let x = 250;
let y = 250;
function setup() {
createCanvas(500, 500);
noStroke();
}