Skip to content

Instantly share code, notes, and snippets.

danaabs

Block or report user

Report or block danaabs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Fade Type
var r = new Rune({
container: "#canvas",
width: 1600,
height: 600
});
function drawCircle() {
r.ellipse(200, 200, 300, 300)
.fill(255, 0, 0)
View Viral Logo
@danaabs
danaabs / server.js
Created Apr 10, 2017
Server side for Notch Real-time
View server.js
'use strict'
//express
var express = require('express');
var app = express();
//http
var http = require('http').createServer(app);
//port and server
View Notch Data Log
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
View 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 = {};
View 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 Mar 11, 2017
Button Code for Food (unity)
View Button Code for food
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 Mar 11, 2017
Button Code for hops (unity)
View Button code for Hops
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Vuforia;
public class PilsHops : MonoBehaviour, IVirtualButtonEventHandler {
private GameObject vbbuttonObject4;
//private GameObject showTest;
View 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
View Martian
var r = new Rune({
container: "#canvas",
width: 800,
height: 1100,
debug: true
});
//background
You can’t perform that action at this time.