Skip to content

Instantly share code, notes, and snippets.

View RishikeshDarandale's full-sized avatar
🗨️
learning > implementing

Rishikesh Darandale RishikeshDarandale

🗨️
learning > implementing
View GitHub Profile
@RishikeshDarandale
RishikeshDarandale / pre-commit
Created May 13, 2018 06:18 — forked from jamtur01/pre-commit
A Terraform validation and formatting pre-commit hook
#!/usr/bin/env bash
set -e
# Formats any *.tf files according to the hashicorp convention
files=$(git diff --cached --name-only)
for f in $files
do
if [ -e "$f" ] && [[ $f == *.tf ]]; then
#terraform validate `dirname $f`
terraform fmt $f
@RishikeshDarandale
RishikeshDarandale / circle.yml
Created March 8, 2019 13:46 — forked from mxygem/circle.yml
Refactored circle.yaml
aliases:
- &restore_gem_cache
keys:
- v1-gemfile-{{ checksum "Gemfile.lock" }}
- &save_gem_cache
name: Saving gem cache
key: v1-gemfile-{{ checksum "Gemfile.lock" }}
paths:
- ~/data/vendor/bundle
@RishikeshDarandale
RishikeshDarandale / 2023-US-zip-codes-abatko.tsv
Created December 17, 2024 11:29 — forked from abatko/2023-US-zip-codes-abatko.tsv
All US ZIP codes from 2023 government data, with their geolocations (latitude and longitude coordinates), formatted as tab-separated values (TSV). Data source: https://www.census.gov/geographies/reference-files/time-series/geo/gazetteer-files.html under 'ZIP Code Tabulation Areas' > 'Download the ZIP Code Tabulation Areas Gazetteer File'. Unlike…
We can't make this file beautiful and searchable because it's too large.
ZIP LAT LNG
00601 18.180555 -66.749961
00602 18.361945 -67.175597
00603 18.457399 -67.124867
00606 18.158327 -66.932928
00610 18.295304 -67.12518
00611 18.276316 -66.807165
00612 18.416727 -66.70009
00616 18.420412 -66.671979
00617 18.446889 -66.561154