#Ludique's Kinect Bundle https://code.google.com/p/lkb-kinect-bundle/
#UbiDisplay https://code.google.com/p/ubidisplays/downloads/list
#KinectTouch https://github.com/robbeofficial/KinectTouch
#Windows only
| <?php | |
| require_once(ABSPATH . 'auth.php'); | |
| $services = getenv("VCAP_SERVICES"); | |
| if($services != ""){ | |
| $services_json = json_decode($services,true); | |
| $mysql_config = $services_json["mysql-5.1"][0]["credentials"]; | |
| // ** MySQL settings from resource descriptor ** // | |
| define('DB_NAME', $mysql_config["name"]); |
| void fadeOut(float duration, float delay){ | |
| _duration = duration; | |
| _delay = delay; | |
| Color colorTo = renderer.material.color; | |
| colorTo.a = 0; | |
| foreach (Material mat in renderer.materials) | |
| { | |
| HOTween.To(mat, duration, new TweenParms() | |
| .Prop("color", colorTo) | |
| .Ease(EaseType.EaseInOutQuad) // Ease |
| using TouchScript.Gestures; | |
| using UnityEngine; | |
| using System.Collections; | |
| public class SpawnSparkle : MonoBehaviour | |
| { | |
| public Transform Container; | |
| public GameObject ParticlePrefab; | |
| [Range(0.0f, 100)] |
| function betterRound(number, roundness){ | |
| if(roundness === undefined){ | |
| roundness = 0; | |
| } | |
| var round = Math.pow(10, roundness); | |
| return Math.ceil(number * round) / round; | |
| } |
#Ludique's Kinect Bundle https://code.google.com/p/lkb-kinect-bundle/
#UbiDisplay https://code.google.com/p/ubidisplays/downloads/list
#KinectTouch https://github.com/robbeofficial/KinectTouch
#Windows only
| Access-Control-Allow-Methods: GET, POST | |
| Access-Control-Allow-Credentials: true | |
| Access-Control-Allow-Origin: http://origin.foo | |
| Access-Control-Allow-Headers: Content-Type, * |
| /** | |
| * Module dependencies. | |
| */ | |
| var express = require('express'), | |
| mongoStore = require('connect-mongo')(express), | |
| flash = require('connect-flash'), | |
| viewHelpers = require('./middlewares/view'), | |
| fs = require('fs'), | |
| upload = require('jquery-file-upload-middleware'); |
| /*from http://css-tricks.com/snippets/jquery/draggable-without-jquery-ui/ | |
| Added compatibility with iOS touch devices | |
| HTML should be something like : | |
| <div class="container"> | |
| <img id="image1" class="erb-image-wrapper" src="test.jpg"> <!-- this is your masked element --> | |
| <img id="image2" class="erb-image-wrapper" src="femme.png" style="cursor: move;"> <!-- this is your mask over the masked element--> | |
| </div> | |
| */ |
| var mongoose = require('mongoose'), | |
| Config = mongoose.model('Config') | |
| exports.create = function(req, res) { | |
| debugger; | |
| var conf = new Config(req.body); | |
| conf.save(function(err) { | |
| if (err) throw new Error('Error while saving option'); | |
| console.log("Ouray !"); |
| { | |
| "screens": [ | |
| { | |
| "crop_height": 600, | |
| "crop_width": 800, | |
| "margin_left": 200, | |
| "margin_top": 200, | |
| "name": "screen1", | |
| "pi": "45" | |
| }, |