This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Peer2 = require('peerjs'); | |
// require("script!../js/p5.min.js"); | |
// require("script!../js/p5.dom.js"); | |
/*! p5.kinect2.js v0.0.1 2015-07-23 */ | |
/** | |
* @module p5.kinect2 | |
* @submodule p5.kinect2 | |
* @for p5.kinect2 | |
* @main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region License | |
/* | |
* TestSocketIO.cs | |
* | |
* The MIT License | |
* | |
* Copyright (c) 2014 Fabio Panettieri | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use the http module: http://nodejs.org/api/http.html | |
var https = require('https'); | |
var fs = require('fs'); | |
var url = require('url'); | |
var options = { | |
key: fs.readFileSync('my-key.pem'), | |
cert: fs.readFileSync('my-cert.pem') | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// HTTP Portion | |
var http = require('http'); | |
var fs = require('fs'); // Using the filesystem module | |
var Twitter = require('twitter'); | |
var httpServer = http.createServer(requestHandler); | |
httpServer.listen(8000); | |
var io = require('socket.io').listen(httpServer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class MyBurst : MonoBehaviour { | |
ParticleSystem ps; | |
// Use this for initialization | |
void Start () { | |
ps = GetComponent<ParticleSystem> (); | |
var em = ps.emission; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Self Portrait</title> | |
<style type="text/css"> | |
body, #summer, #winter { margin:0; padding: 0; width: 100%} | |
#summer, #winter {display: none;} | |
</style> | |
<script type="text/javascript"> | |
//listens for page load, calls init upon load |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <RFM69.h> | |
#include <SPI.h> // the RFM69 library uses SPI | |
int ledPin = 9; | |
RFM69 radio; | |
#define myFrequency RF69_915MHZ // or RF69_433MHZ (check your radio) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var serial; // variable to hold an instance of the serialport library | |
var portName = '/dev/cu.usbserial-A703X44D'; // fill in your serial port name here | |
var myID = 0; | |
var heart = 0; | |
var breath = 0; | |
function setup() { | |
createCanvas(1920, 1080); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//include filter libraries | |
#include <FilterDerivative.h> | |
#include <FilterOnePole.h> | |
#include <Filters.h> | |
#include <FilterTwoPole.h> | |
#include <FloatDefine.h> | |
#include <RunningStatistics.h> | |
#include <RFM69.h> | |
#include <SPI.h> // the RFM69 library uses SPI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// punctuation serial communication | |
//int button1 = 0; | |
void setup() { | |
// configure the serial connection: | |
Serial.begin(9600); | |
while (Serial.available() <= 0) { | |
Serial.println("hello"); // send a starting message | |
} |