Skip to content

Instantly share code, notes, and snippets.

emartinez-usgs / A JS Coding Style Guide
Last active Nov 22, 2016
Document, largely by example, HazDev team preferred coding style for JavaScript
View A JS Coding Style Guide
This is a placeholder file to name the Gist.
emartinez-usgs / XSS - This Can Be Dangerous
Created Oct 1, 2014
Simplified example showing the potential dangers of using "this" in Javascript.
View XSS - This Can Be Dangerous
<!-- Placeholder for Gist Name Only -->
emartinez-usgs / ImageList
Last active Aug 29, 2015
Example Using ImageList Content Pattern
View ImageList
<!-- Placeholder for Gist Title -->
emartinez-usgs / Asynchronous Javascript
Last active Aug 29, 2015
Asynchronous Javascript Development
View Asynchronous Javascript
<!-- Placeholder Gist for Name Only -->
emartinez-usgs / 11-example.js
Last active Jan 2, 2016
Functions and Constructors
View 11-example.js
var MyClass = function () {
new MyClass(); // Constructor
MyClass(); // Function
emartinez-usgs / Function Definitions
Last active Dec 28, 2015
Example used to explain pass-by-value vs. pass-by-reference and which is used in Javascript.
View Function Definitions
* This function assigns a new value to the input parameter.
var func1 = function func1 (param1) {
param1 = [4, 5 ,6];
* This function acts on the input parameter.
You can’t perform that action at this time.