Skip to content

Instantly share code, notes, and snippets.

View aaronbuchanan's full-sized avatar

Aaron Buchanan aaronbuchanan

View GitHub Profile
@aaronbuchanan
aaronbuchanan / geojson_us.js
Created June 30, 2017 07:48 — forked from adamawolf/geojson_us.js
GeoJSON Multipolygon for the United States
{
"type": "MultiPolygon",
"coordinates":
[
[
[
[ -123.123779, 48.227039 ], // contig. u.s.
[ -123.318787, 49.000042 ],
[ -121.742592, 49.000267 ],
[ -95.157394, 49.000493 ],
https://news.ycombinator.com/item?id=13889155
7 git rules:
1. Separate subject from body with a blank line
2. Limit the subject line to 50 characters
3. Capitalize the subject line
4. Do not end the subject line with a period
5. Use the imperative mood in the subject line
6. Wrap the body at 72 characters

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
@aaronbuchanan
aaronbuchanan / maxmind-geo-issue.md
Last active March 2, 2017 17:53
maxmind-geo-issue.md

Maxmind is returning this data:

{
  "location": {
    "accuracy_radius": 10,
    "latitude": 33.7866,
    "longitude": -118.2987,
    "metro_code": 803,
    "time_zone": "America/Los_Angeles"
 },

Pastec.io is an OSS feature recognition project that provides an http interface to train and search for matches.

Setup on a Mac

Get pastec:

$ git clone [email protected]:Visu4link/pastec.git && cd pastec

Get dependencies:

@aaronbuchanan
aaronbuchanan / LICENSE.txt
Created February 23, 2017 00:17 — forked from jed/LICENSE.txt
generate random UUIDs
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
113542073_DwITk8Qx8Z76gZVo06bdXCwysqH2l0
TheDevOpsFactory.com
===================
### Site Architecture & Request Flow
TheDevOpsFactory.com is composed of a statically compiled Single Page Application (SPA) front-end responding to / routes, and a .NET back-end that responds to /api and /login routes. The .NET application is a proxy to DVLUP apis which requires users to authenticate with MSA's Live.com login.
```sequence
Users->SPA: GET /
SPA-->Users: Render HTML Response
@aaronbuchanan
aaronbuchanan / Gulpfile.js
Created October 19, 2015 17:50 — forked from ddprrt/Gulpfile.js
Gulp: Grabbing JavaScript assets from a CDN to add to your build pipeline
var gulp = require('gulp');
var source = require('vinyl-source-stream');
var request = require('request');
var merge = require('merge2');
var concat = require('gulp-concat');
var buffer = require('gulp-buffer');
/**
* 1. We request the latest jQuery version from the jQuery CDN. The
* request package allows for streaming. What we get in return
@aaronbuchanan
aaronbuchanan / top 100 domain occurrences by email.sql
Created September 1, 2015 03:43
MYSQL statement to parse the domain of an email and show the most common domains
select count(*) as occurrances, substring_index(email, "@", -1) as domain
from users
group by substring_index(email, "@", -1)
ORDER by occurrances DESC
limit 100;