Skip to content

Instantly share code, notes, and snippets.

@danaabs
danaabs / Fade Type
Created August 30, 2017 02:55
Fade Type
var r = new Rune({
container: "#canvas",
width: 1600,
height: 600
});
function drawCircle() {
r.ellipse(200, 200, 300, 300)
.fill(255, 0, 0)
@danaabs
danaabs / Viral Logo
Created August 30, 2017 02:42
Viral Logo
@danaabs
danaabs / server.js
Created April 10, 2017 21:36
Server side for Notch Real-time
'use strict'
//express
var express = require('express');
var app = express();
//http
var http = require('http').createServer(app);
//port and server
@danaabs
danaabs / Notch Data Log
Created April 7, 2017 23:30
Notch Data
04-08 02:15:52.577 24919-24919/com.wearnotch.notchdemo.tutorial.mock D/REALTIME: Current frame:36
04-08 02:15:52.577 24919-24919/com.wearnotch.notchdemo.tutorial.mock D/REALTIME: ChestBottom ([0.8957017, 0.006287731, 0.44461083, 4.912615E-4]) ([0.024810316, 0.3976646, -0.01757712])
04-08 02:15:52.577 24919-24919/com.wearnotch.notchdemo.tutorial.mock D/REALTIME: Hip ([0.7954835, -0.08689952, -0.59637266, -0.06319772]) ([0.00816778, 0.039076377, -0.00251502])
04-08 02:15:52.597 24919-24919/com.wearnotch.notchdemo.tutorial.mock D/REALTIME: Current frame:36
04-08 02:15:52.597 24919-24919/com.wearnotch.notchdemo.tutorial.mock D/REALTIME: ChestBottom ([0.8957017, 0.006287731, 0.44461083, 4.912615E-4]) ([0.024810316, 0.3976646, -0.01757712])
04-08 02:15:52.597 24919-24919/com.wearnotch.notchdemo.tutorial.mock D/REALTIME: Hip ([0.7954835, -0.08689952, -0.59637266, -0.06319772]) ([0.00816778, 0.039076377, -0.00251502])
04-08 02:15:52.597 24919-24919/com.wearnotch.notchdemo.tutorial.mock D/REALTIME: Current frame:39
04
@danaabs
danaabs / server.js
Created April 7, 2017 23:27
Server.js
var http = require('http');
var express = require('express');
var osc = require('node-osc');
var app = express();
var client = new osc.Client('172.30.5.93', 8080);
var data = {};
@danaabs
danaabs / Notch.java
Created April 7, 2017 23:25
Notch.java
Runnable mLogRealTimeData = new Runnable() {
@Override
public void run() {
// Index of first new frame in the last update
int startingFrame = mRealTimeData.getStartingFrame();
// Elapsed time since the last update
long millisSinceUpdate = System.currentTimeMillis() - mUpdateStartTime;
// Recording frequency
float frequency = mRealTimeData.getFrequency();
// Milliseconds per frame
@danaabs
danaabs / Button Code for food
Created March 11, 2017 21:21
Button Code for Food (unity)
public class PilsFood : MonoBehaviour, IVirtualButtonEventHandler {
private GameObject vbbuttonObject3;
//private GameObject showTest;
private GameObject BPils;
private GameObject BAle2;
private GameObject BPils2;
@danaabs
danaabs / Button code for Hops
Created March 11, 2017 21:21
Button Code for hops (unity)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Vuforia;
public class PilsHops : MonoBehaviour, IVirtualButtonEventHandler {
private GameObject vbbuttonObject4;
//private GameObject showTest;
@danaabs
danaabs / HS_Unexpected_Items
Created February 2, 2017 16:47
HS_Unexpected_Items
The Fish Catching RC Boat. $69.95
The Star Wars Death Star Popcorn Maker. $49.95
The Sidewinding Circular Skates. $99.95
The Answer Master. $59.95
The Classic European Copper Distiller. $279.95
The Only Four Wheeled Rowing Cycle. $3,000.00
The Physicist's Perpetual Motion Clock. $9,500.00
The Authentic Himalayan Singing Bowl. $199.95
The U.S.S. Enterprise Quadcopter. $129.95
The RC Flying Car. $59.95
@danaabs
danaabs / Martian
Created October 5, 2016 19:29
Martian
var r = new Rune({
container: "#canvas",
width: 800,
height: 1100,
debug: true
});
//background