Skip to content

Instantly share code, notes, and snippets.

@jlblcc
jlblcc / dateline.geojson
Last active April 20, 2020 23:26
Antimeridian
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jlblcc
jlblcc / expandall.js
Created July 11, 2019 03:28
Expand all JSV nodes
var j = 0;
JSV.visit(JSV.treeData, function(me) {
JSV.expand(me);
j++;
}, function(me) {
if (me.depth > 10 || j > 1000) {
return null;
}
@jlblcc
jlblcc / get_huc.html
Last active June 20, 2019 13:33
Get a HUC by lat/long
<a title="Get HUC" href="javascript:void%20function(){function%20e(){var%20e,t=new%20XMLHttpRequest,r=prompt(%22Enter%20Long,Lat%20e.g.%20-100.4687%2C38.4658%22,%22%22);r%26%26(e=%22https://apps.fs.usda.gov/arcx/rest/services/EDW/EDW_Watersheds_01/MapServer/3/query%3Fwhere=%26text=%26objectIds=%26time=%26geometryType=esriGeometryPoint%26inSR=4326%26spatialRel=esriSpatialRelWithin%26relationParam=%26outFields=HUC8%252CNAME%26returnGeometry=false%26returnTrueCurves=false%26maxAllowableOffset=%26geometryPrecision=%26outSR=4326%26returnIdsOnly=false%26returnCountOnly=false%26orderByFields=%26groupByFieldsForStatistics=%26outStatistics=%26returnZ=false%26returnM=false%26gdbVersion=%26returnDistinctValues=true%26resultOffset=%26resultRecordCount=%26queryByDistance=%26returnExtentsOnly=false%26datumTransformation=%26parameterValues=%26rangeValues=%26f=json%26geometry=%22+escape(r),t.addEventListener(%22load%22,function(){console.log(t);var%20e=JSON.parse(t.responseText).features,s='%3Ch1%20style=%22margin:50px%20aut
@jlblcc
jlblcc / Screenshot.png
Last active May 15, 2018 22:46
Plain Jane browser window
Screenshot.png
@jlblcc
jlblcc / ember_routes.js
Last active October 25, 2017 22:51
Grab a list of all the routes in an Ember.js application
//$E is the router from Ember Inspector
Object.keys($E.router.recognizer.names).map(function (name) {
var r = Ember.getOwner($E).lookup('route:' + name);
return r ? r.fullRouteName : undefined;
}).compact();

mdJSON Data Dictionary

additionalDocumentation Other documents related to, but not defining, the resource such as factsheets, data catalog pages, award documents, proposals, and informational websites.
address Addresses for this contact.
addressee Not defined.
ageReference Citation for works providing detailed information about any element of the geologicAge.
allocation Funds contributed to support the development of the resource.

@jlblcc
jlblcc / 115th_Congress_Boundaries_simplified.json
Last active September 22, 2017 00:20
115th_Congress_Boundaries_simplified.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jlblcc
jlblcc / index.js
Created May 17, 2017 09:44
requirebin sketch
// Welcome! require() some modules from npm (like you were using browserify)
// and then hit Run Code to run your code on the right side.
// Modules get downloaded from browserify-cdn and bundled in your browser.
var codes = require('mdcodes/resources/js/iso_topicCategory');
console.log(codes);
import Ember from 'ember';
const {
isArray,
typeOf,
isBlank
} = Ember;
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
init() {
let bar = {