Skip to content

Instantly share code, notes, and snippets.

View Tucker-Eric's full-sized avatar
🤦‍♂️
Crushing It

Eric Tucker Tucker-Eric

🤦‍♂️
Crushing It
View GitHub Profile
@Tucker-Eric
Tucker-Eric / us_zips.csv
Last active January 16, 2025 08:12
US Zip Codes
We can't make this file beautiful and searchable because it's too large.
zip,city,state,state_abbr,county,count_code,latitude,longitude
99553,Akutan,Alaska,AK,Aleutians East,13,54.143,-165.7854
99571,Cold Bay,Alaska,AK,Aleutians East,13,55.1858,-162.7211
99583,False Pass,Alaska,AK,Aleutians East,13,54.841,-163.4368
99612,King Cove,Alaska,AK,Aleutians East,13,55.0628,-162.3056
99661,Sand Point,Alaska,AK,Aleutians East,13,55.3192,-160.4914
99546,Adak,Alaska,AK,Aleutians West,16,51.88,-176.6581
99547,Atka,Alaska,AK,Aleutians West,16,52.1224,-174.4301
99591,Saint George Island,Alaska,AK,Aleutians West,16,56.5944,-169.6186
99638,Nikolski,Alaska,AK,Aleutians West,16,52.9883,-168.7884
@Tucker-Eric
Tucker-Eric / Element.php
Created July 18, 2017 03:18
SimpleXMLElement extended
<?php
namespace EasyXML;
use SimpleXMLElement;
use DOMDocument;
use Closure;
class Element extends SimpleXMLElement
{
@Tucker-Eric
Tucker-Eric / git-version.sh
Last active October 19, 2018 20:18
Git Version
#!/bin/bash
# FROM: https://engineering.taboola.com/calculating-git-version/
branch=$(git rev-parse --abbrev-ref HEAD)
latest=$(git tag -l --merged master --sort='-*authordate' | head -n1)
semver_parts=(${latest//./ })
major=${semver_parts[0]}
minor=${semver_parts[1]}
@Tucker-Eric
Tucker-Eric / .bash_aliases
Last active January 7, 2019 17:29
dotfiles
alias ll="ls -al"
alias c="clear"
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias ~="cd ~"
if [ -f ~/.docker_aliases ]; then
. ~/.docker_aliases
fi