Skip to content

Instantly share code, notes, and snippets.

View Mikelantonio's full-sized avatar

Michelantonio Trizio Mikelantonio

View GitHub Profile
@Mikelantonio
Mikelantonio / PoseController.cs
Created November 24, 2016 16:12
Tango codelab (Zaniah SDK) controller update https://goo.gl/ufKaoH
using UnityEngine;
using System.Collections;
using Tango;
using System;
public class PoseController : MonoBehaviour , ITangoPose {
private TangoApplication m_tangoApplication; // Instance for Tango Client
private Vector3 m_tangoPosition; // Position from Pose Callback
private Quaternion m_tangoRotation; // Rotation from Pose Callback
private Vector3 m_startPosition; // Start Position of the camera
@Mikelantonio
Mikelantonio / designer.html
Last active August 29, 2015 14:16
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@Mikelantonio
Mikelantonio / weatherParser.java
Created February 4, 2015 22:57
weather parsing json
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public class WeatherDataParser {
/**
* Given a string of the form returned by the api call:
* http://api.openweathermap.org/data/2.5/forecast/daily?q=94043&mode=json&units=metric&cnt=7
* retrieve the maximum temperature for the day indicated by dayIndex