Skip to content

Instantly share code, notes, and snippets.

View tym-xqo's full-sized avatar
🩶

Thomas Yager-Madden tym-xqo

🩶
View GitHub Profile
@tym-xqo
tym-xqo / benchprep-sql-style-guide.md
Last active January 18, 2022 19:03 — forked from mattmc3/modern_sql_style_guide.md
BenchPrep SQL Style Guide
author title revision version description
tym-xqo
BenchPrep SQL Style Guide
2021-12-12
1.1.1
A guide to writing clean, clear, and consistent SQL.

BenchPrep SQL Style Guide [WIP]

pluscodes

Code from google/open-location-code is not usable in my environment. So I made a simple wrapper.

encode and decode are only methods in index. They ruturn false instead of throwing error

yarn add gist:70446302e9c04d29713c96cb94c55e3f

@tym-xqo
tym-xqo / index.html
Last active December 6, 2017 17:15 — forked from gka/index.html
simple tables in D3
<!DOCTYPE html>
<html>
<head>
<title>Simple tables in D3</title>
<meta charset="utf-8">
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src="https://cdn.jsdelivr.net/npm/d3-jetpack@2.0.15/build/d3-jetpack.min.js"></script>
<style type="text/css">
body { font-family: 'Helvetica Neue', Helvetica; font-weight: 300; padding: 20px;}
th { text-align: left; }
@tym-xqo
tym-xqo / date-loop.sh
Created March 18, 2016 20:20
loop-by-date.sh
#!/bin/bash
last="2016-02-23"
first="2015-12-31"
i=1
while [[ $last > $first ]]; do
this=$(date -I -d "$last - 3 days")
printf -v j "%02d" $i
@tym-xqo
tym-xqo / namer.py
Last active October 5, 2015 12:14
arbitrary two-word name generator
#!/usr/bin/env python3
#coding: utf-8
import random
from AppKit import NSPasteboard, NSArray
def namer():
adjectives = ("aliased",
"angelic",
"anonymous",