Skip to content

Instantly share code, notes, and snippets.

View ungoldman's full-sized avatar
🤔
💭

Nate Goldman ungoldman

🤔
💭
View GitHub Profile
@ungoldman
ungoldman / index.html
Last active May 21, 2017 19:02
terraformer example
<script src="https://rawgit.com/Esri/Terraformer/master/terraformer.js"></script>
<script src="https://rawgit.com/Esri/terraformer-arcgis-parser/master/terraformer-arcgis-parser.js"></script>
<!-- CDN or locally hosted is ideal but I'm using raw github so that we get error reporting within the unminified source
<script src="http://cdn-geoweb.s3.amazonaws.com/terraformer/1.0.4/terraformer.min.js"></script>
<script src="http://cdn-geoweb.s3.amazonaws.com/terraformer-arcgis-parser/1.0.4/terraformer-arcgis-parser.min.js"></script>
-->
<script>
var input = {
"x": -66.796875,
"y": 20.0390625,
@ungoldman
ungoldman / index.js
Created October 22, 2014 18:35
requirebin sketch
var parser = require('terraformer-arcgis-parser');
var geo = {
"rings" : [
[
[-12451802.5859375, 3951471.76953125],
[-12451799.640625, 3951711.375],
[-12451797.6171875, 3951873.84765625],
[-12451794.78125, 3952103.45703125],
[-12451790.6171875, 3952439.73046875],
@ungoldman
ungoldman / modal-template.html
Created September 15, 2014 20:48
sample angular directive modal implementation
<tailcoat-modal>
<tailcoat-modal-btn>Kill All Humans</tailcoat-modal-btn>
<tailcoat-modal-content>
<h2>Do you really want to kill all humans?</h2>
<button class="btn primary" ng-click="killAllHumans()">Yes</button>
<button class="btn cancel" ng-click="killAllHumans()">Definitely</button>
</tailcoat-modal-content>
</tailcoat-modal>
@ungoldman
ungoldman / burgerweek-data-2014.geojson
Last active August 29, 2015 14:05
PDX Burger Week Data 2014
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.
@ungoldman
ungoldman / index.html
Created August 7, 2014 01:22
Source of 8/6/2014 http://fdlp.gov hack
<body style="background-attachment: fixed;" vlink="red" alink="#ff0000" background="http://www.alfran.es/images/sowa.jpg" bgcolor="black" lang="EN-US" link="#646464"><p align="center">&nbsp;</p>
</object>
<html>
<head>
<SCRIPT language=JavaScript>
<!--
function clickhandler() {
@ungoldman
ungoldman / valueFromPath.js
Last active August 29, 2015 14:00
Get value in object from path as array of keys
var obj = {
a: {
b: {
c: 'yay'
}
}
};
var path = ['a','b','c'];
@ungoldman
ungoldman / curl_post_json.md
Last active May 2, 2024 15:41
post a JSON file with curl

How do you POST a JSON file with curl??

You can post a json file with curl like so:

curl -X POST -H "Content-Type: application/json" -d @FILENAME DESTINATION

so for example: