Skip to content

Instantly share code, notes, and snippets.

View JanMisker's full-sized avatar
🏠
Working from home

Jan Misker JanMisker

🏠
Working from home
  • freelance
  • Rotterdam, NL
View GitHub Profile
// quick example of drawing a complex path shape based on multiple
SVG.Tube = SVG.invent({
create: function() {
SVG.Path.call(this);
this.type = 'tube';
this.attr('rx', 1);
this.attr('ry', 1);
this.attr('width', 2);
@JanMisker
JanMisker / external.js
Created October 13, 2012 11:45
Google Maps Javascript API loader for Dojo Toolkit 1.8
/**
* Dojo AMD loader plugin to load the Google Maps Javacript API
* Uses a slightly adapted version of the async plugin developed by Miller Medeiros
* https://github.com/millermedeiros/requirejs-plugins/blob/master/src/async.js
* The change in async.js is to remove the "config" parameter because Dojo plugins
* do not get called with this parameter.
*
* Author: Jan Misker
* Version: 0.1 (2012-10-13)
* Released under the MIT license