Skip to content

Instantly share code, notes, and snippets.

View BorisKourt's full-sized avatar

Boris Kourtoukov BorisKourt

View GitHub Profile
@BorisKourt
BorisKourt / KuratorState.cs
Last active June 2, 2020 08:37
This script can load a session and insert or update the transforms of the entities in it.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization.Formatters.Binary;
using System.IO;
using UnityEngine;
/**
* KuratorState is a global Singleton that handles local state management.
@BorisKourt
BorisKourt / KuratorSerializeEntity.cs
Created May 7, 2020 12:33
Proposal for JSON Transform serialization. With possibility to expand to other Entity data.
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace KuratorCore.Serialize {
[Serializable]
public class KuratorTransform {
@BorisKourt
BorisKourt / musicbox.ino
Created April 20, 2020 13:37
[Musicbox] OSC via Serial
// This code runs on the Teensy
// Uses https://github.com/CNMAT/OSC
// It sends a bundle, 0 - 1 for each musicbox
// In order to make sure that there is clear start
// and stop to the packets SLIP is used:
// https://en.wikipedia.org/wiki/Serial_Line_Internet_Protocol
// As this sketch is incredibly minimal, the
// OSC library above is effectively the documentation.
// A MAX example is available at:

Keybase proof

I hereby claim:

  • I am boriskourt on github.
  • I am boriskourt (https://keybase.io/boriskourt) on keybase.
  • I have a public key ASBfEVSyqtG70_i1Lhiekzv03d0UU5RLEqJjpHlCmJI2SQo

To claim this, I am signing this object:

/* automatically generated by rust-bindgen */
pub const __WORDSIZE: u32 = 64;
pub const __DARWIN_ONLY_64_BIT_INO_T: u32 = 0;
pub const __DARWIN_ONLY_VERS_1050: u32 = 0;
pub const __DARWIN_ONLY_UNIX_CONFORMANCE: u32 = 1;
pub const __DARWIN_UNIX03: u32 = 1;
pub const __DARWIN_64_BIT_INO_T: u32 = 1;
pub const __DARWIN_VERS_1050: u32 = 1;
pub const __DARWIN_NON_CANCELABLE: u32 = 0;
" init.vim
" Vundle Setup
filetype off
set rtp+=~/.config/nvim/bundle/Vundle.vim/
call vundle#rc('~/.config/nvim/bundle')
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
package work.serverart;
import intel.rssdk.*;
import processing.core.PApplet;
import processing.core.PImage;
public class LandmarksOnly extends PApplet {
private final int tracked_faces = 4;
import processing.core.*;
import intel.rssdk.*;
public class MainCapture extends PApplet {
int nframes = 0;
PImage imgDepth = null;
pxcmStatus sts = pxcmStatus.PXCM_STATUS_NO_ERROR;
PXCMSenseManager senseMgr = null;
PXCMFaceData faceData = null;
@BorisKourt
BorisKourt / no-weave.lit
Created February 10, 2016 18:01
noWeave Test file
@code_type d .d
@comment_type // %s
@title No Weave Test
@s Notes
Provide a set of fields for the Block class that denote any modifiers.
Create a place to describe modifiers.
@BorisKourt
BorisKourt / .ctags
Created February 8, 2016 21:12
ctags + vim tagbar for the Literate project.
--langdef=literate
--langmap=literate:+.lit
--regex-literate=/^@s[ \t]+(.+)/\1/s,section/i
--regex-literate=/^---[ \t](.+)/\1/c,code/i
--regex-literate=/@{(.*)}/\1/i,includes/i