This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (root, factory) { | |
if (typeof define === 'function' && define.amd) | |
define([], factory(root)); | |
else if (typeof exports === 'object') | |
module.exports = factory(root); | |
else | |
root.myPlugin = factory(root); | |
})(typeof global !== "undefined" ? global : this.window || this.global, function (root) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create an immediately invoked functional expression to wrap our code | |
(function() { | |
// Define our constructor | |
this.myPlugin = function() { | |
// Create global element references | |
this.element = null; | |
// Define option defaults |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env python | |
# expects python3 | |
################################################################################ | |
import argparse | |
import socket | |
import sys | |
################################################################################ |