Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
#include <vector>
#include <librealsense2\rs.hpp>
// loadbagfile: load a bag file to a pipeline
void loadbagfile(rs2::pipeline & pipe, std::string filename)
{
rs2::config cfg;
cfg.enable_device_from_file(filename);
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SimpleRecursion : MonoBehaviour {
void Start () {
//Terminating condition
if(transform.localScale.x > 1.001f)
/*Apply body-wide style choices here*/
body {
padding:0;
margin:0;
text-decoration-color: white;
font-family: helvetica;
}
h1 {
#include <SoftwareSerial.h>
#include <Adafruit_Thermal.h>
#define TX_PIN 6
#define RX_PIN 5
SoftwareSerial mySerial(RX_PIN, TX_PIN);
Adafruit_Thermal printer(&mySerial);
String inputString = "";
import processing.serial.*;
import controlP5.*;
import de.looksgood.ani.*;
import ddf.minim.*;
Minim minim;
AudioPlayer middle_song, lower_song, upper_song, error_sound, reward_sound;
AniSequence voting_sequence;
// GUI variables
ControlP5 cp5;
import gab.opencv.*;
import processing.video.*;
import java.awt.*;
Capture video;
OpenCV opencv;
String timestamp;
void setup(){
size(1280,720);
video = new Capture(this, 1280,720);