Skip to content

Instantly share code, notes, and snippets.

@tagr
tagr / ZipCodesUS.json
Created February 6, 2023 04:22
Data source containing US postal code, city, and state
This file has been truncated, but you can view the full file.
[
{
"id": "00601",
"City": "ADJUNTAS",
"State": "PR"
},
{
"id": "00602",
"City": "AGUADA",
"State": "PR"
window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""));typeof Array.prototype.filter=="undefined"&&(Array.prototype.filter=function(n){"use strict";var i,f,r,e,t,u;if(this===void 0||this===null)throw new TypeError;if(i=Object(this),f=i.length>>>0,typeof n!="function")throw new TypeError;for(r=[],e=arguments[1],t=0;t<f;t++)t in i&&(u=i[t],n.call(e,u,t,i)&&r.push(u));return r});typeof Array.prototype.find=="undefined"&&Object.defineProperty(Array.prototype,"find",{value:function(n){var i,u,f,t,r;if(this==null)throw new TypeError('"this" is null or not defined');if(i=Object(this),u=i.length>>>0,typeof n!="function")throw new TypeError("predicate must be a function");for(f=arguments[1],t=0;t<u;){if(r=i[t],n.call(f,r,t,i))return r;t++}return undefined},configurable:!0,writable:!0});window.$xa=function(){var n,t;
//! moment.js
//! version : 2.27.0
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! lic
@tagr
tagr / xd2md.cs
Created June 26, 2018 23:50 — forked from formix/xd2md.cs
Generates Markdown From VisualSturio XML documentation files
using System;
using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
using System.Xml;
using System.Xml.Linq;
namespace Formix.Utils
{
class Program
@tagr
tagr / setup-apache-spark-1.6-cluster-centos-6.8.md
Last active January 10, 2018 02:10
Set up Apache Spark 1.6 cluster on CentOS 6.8

Apache Spark 3-node Cluster (CentOS 6.8)


Edit Hosts file (all machines)

This allows us to refer to other nodes using names instead of IP addresses.

  1. sudo nano /etc/hosts
  2. Example on master:
    127.0.0.1 master localhost
192.168.1.5 slave01
@tagr
tagr / home-page-nav-mobile.markdown
Last active November 29, 2016 16:04
Home Page Nav Mobile
@tagr
tagr / ogckml22_atom-author-link_xAL.cs
Last active September 28, 2015 12:59
KML 2.2.0 (C#) - generated using xsd.exe; Source: http://schemas.opengis.net/kml/
/**
* Parse hash bang parameters from a URL as key value object.
*
* For repeated parameters the last parameter is effective.
*
* If = syntax is not used the value is set to null.
*
* #!x+y:3 -> { x:null, y:3 }
*
* @param options
@tagr
tagr / KwRKYw.markdown
Created February 21, 2015 16:24
KwRKYw
@tagr
tagr / Sulleys-Fur.markdown
Created January 27, 2015 00:59
Sulley's Fur

Sulley's Fur

A random curve drawing using HTML5 Canvas Bezier and quadratic curves. RequestAnimationFrame loops the process.

A Pen by Andy on CodePen.

License.

@tagr
tagr / HTML-Canvas-Line-Demo.markdown
Created January 24, 2015 13:43
HTML Canvas Line Demo