Skip to content

Instantly share code, notes, and snippets.

View leefsmp's full-sized avatar

Philippe Leefsma leefsmp

  • Switzerland
  • 10:11 (UTC +02:00)
View GitHub Profile
@leefsmp
leefsmp / IoTSvc.js
Created February 8, 2016 13:25
IoTSvc Service: uses socket.io to wait for incoming controller connections and keep track of them.
/////////////////////////////////////////////////////////////////////
// Copyright (c) Autodesk, Inc. All rights reserved
// Written by Philippe Leefsma 2016 - ADN/Developer Technical Services
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warranty and
// restricted rights notice below appear in all supporting
// documentation.
@leefsmp
leefsmp / SpheroSvc.js
Created February 8, 2016 13:24
SpheroSvc Service: wraps calls to the sphero API
/////////////////////////////////////////////////////////////////////
// Copyright (c) Autodesk, Inc. All rights reserved
// Written by Philippe Leefsma 2016 - ADN/Developer Technical Services
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warranty and
// restricted rights notice below appear in all supporting
// documentation.
@leefsmp
leefsmp / cylon-bb8.js
Created January 27, 2016 10:05
BB8 Rest API Part I
/////////////////////////////////////////////////////////////////////
// Copyright (c) Autodesk, Inc. All rights reserved
// Written by Philippe Leefsma 2016 - ADN/Developer Technical Services
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warranty and
// restricted rights notice below appear in all supporting
// documentation.
@leefsmp
leefsmp / Autodesk.ADN.Viewing.Extension.Riot.js
Last active January 15, 2016 04:12
Viewer extension using Riot.js
/////////////////////////////////////////////////////////////////////
// Autodesk.ADN.Viewing.Extension.Riot
// by Philippe Leefsma, January 2016
//
/////////////////////////////////////////////////////////////////////
AutodeskNamespace("Autodesk.ADN.Viewing.Extension");
Autodesk.ADN.Viewing.Extension.Riot = function (viewer, options) {
Autodesk.Viewing.Extension.call(this, viewer, options);
@leefsmp
leefsmp / selenium.gallery.extensions.test.js
Created November 28, 2015 03:25
A selenium test in node.js for the View & Data API Gallery
@leefsmp
leefsmp / Autodesk.ADN.Viewing.Extension.ES7Async.js
Last active November 27, 2015 19:36
ES7 Async viewer extension demo
///////////////////////////////////////////////////////////////////////////////
// ES7Async viewer extension
// by Philippe Leefsma, November 2015
//
///////////////////////////////////////////////////////////////////////////////
AutodeskNamespace("Autodesk.ADN.Viewing.Extension");
Autodesk.ADN.Viewing.Extension.ES7Async = function (viewer, options) {
Autodesk.Viewing.Extension.call(this, viewer, options);
@leefsmp
leefsmp / Autodesk.ADN.Viewing.Extension.RadialMenu.js
Created November 13, 2015 13:43
Radial menu viewer extension
/////////////////////////////////////////////////////////////////////
// Autodesk.ADN.Viewing.Extension.RadialMenu
// by Philippe Leefsma, November 2015
//
/////////////////////////////////////////////////////////////////////
AutodeskNamespace("Autodesk.ADN.Viewing.Extension");
Autodesk.ADN.Viewing.Extension.RadialMenu = function (viewer, options) {
Autodesk.Viewing.Extension.call(this, viewer, options);
@leefsmp
leefsmp / download.js
Created October 30, 2015 14:31
Downloading View & Data model for offline viewing
var lmv = new Lmv(config);
function onError(error) {
console.log("Error");
console.log(error);
}
function onInitialized(response) {
// downloads package to target directory,
@leefsmp
leefsmp / Autodesk.ADN.Viewing.Extension.EventWatcher.js
Created October 12, 2015 20:53
Event Watcher Viewer Extension
///////////////////////////////////////////////////////////////////////////////
// EventWatcher viewer extension
// by Philippe Leefsma, October 2014
//
///////////////////////////////////////////////////////////////////////////////
AutodeskNamespace("Autodesk.ADN.Viewing.Extension");
Autodesk.ADN.Viewing.Extension.EventWatcher = function (viewer, options) {
Autodesk.Viewing.Extension.call(this, viewer, options);
@leefsmp
leefsmp / view-and-data-npm-test.js
Created October 2, 2015 22:54
A mocha/chai test for view-and-data npm package
/////////////////////////////////////////////////////////////////////
// Copyright (c) Autodesk, Inc. All rights reserved
// Written by Philippe Leefsma 2015 - ADN/Developer Technical Services
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warranty and
// restricted rights notice below appear in all supporting
// documentation.