Skip to content

Instantly share code, notes, and snippets.

View leefsmp's full-sized avatar

Philippe Leefsma leefsmp

  • Switzerland
  • 04:57 (UTC +02:00)
View GitHub Profile
@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 / 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 / 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.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 / 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 / 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 / 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 / Autodesk.ADN.Viewing.Extension.ModelLoader.js
Last active February 12, 2016 17:43
ModelLoader View & Data Extension: Allows loading, transformation and unloading of multiple models into the same scene
/////////////////////////////////////////////////////////////////////
// Autodesk.ADN.Viewing.Extension.ModelLoader
// by Philippe Leefsma, Feb 2016
//
/////////////////////////////////////////////////////////////////////
AutodeskNamespace("Autodesk.ADN.Viewing.Extension");
Autodesk.ADN.Viewing.Extension.ModelLoader = function (viewer, options) {
Autodesk.Viewing.Extension.call(this, viewer, options);
@leefsmp
leefsmp / Autodesk.ADN.Viewing.Extension.Markup.js
Created February 19, 2016 10:04
View & Data API Markup Extension
/////////////////////////////////////////////////////////////////////
// Autodesk.ADN.Viewing.Extension.Markup
// by Philippe Leefsma, Feb 2016
//
/////////////////////////////////////////////////////////////////////
AutodeskNamespace("Autodesk.ADN.Viewing.Extension");
Autodesk.ADN.Viewing.Extension.Markup = function (viewer, options) {
Autodesk.Viewing.Extension.call(this, viewer, options);
@leefsmp
leefsmp / snap-arc-demo.html
Last active June 21, 2020 02:16
SVG Arc Path Demo with Snap.svg
<!-- Written By Philippe Leefsma, Feb 2016 -->
<!DOCTYPE html>
<html>
<head lang="en">
<meta name="viewport" content="width=device-width, height=device-height, minimal-ui">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta charset="UTF-8">
<title>Snap SVG Arc Path Demo</title>