Skip to content

Instantly share code, notes, and snippets.

View jhannah's full-sized avatar

Jay Hannah jhannah

View GitHub Profile
@jhannah
jhannah / omaha_streamers.md
Last active April 24, 2020 15:25
~Omaha Twitch streamers
@jhannah
jhannah / photos.md
Last active March 19, 2019 18:03
Diventures Bimini Bahamas trip photos / videos March 2019
@jhannah
jhannah / AV.md
Last active November 26, 2019 20:32
My A/V equipment
@jhannah
jhannah / omaha_code_schools.md
Last active June 6, 2022 20:29
Omaha Nebraska "code schools"
@jhannah
jhannah / jay.pl
Last active February 6, 2019 21:22
@_ is easy(tm)
use 5.26.0;
package Foo;
sub new { bless {} }
sub bar {
my $baz = sub {
return join " ", @_;
};
say "Current code: " . $baz->();
{ "and": [
{ "==" : [ { "var": "gender" }, "women" ] },
{ "and": [
{ "<=" : [ { "var": "age" }, 34 ] },
{ ">=" : [ { "var": "age" }, 25 ] }
] },
{ "==": [ { "var": "have_childen" }, true ] }
]}
reduces to:
@jhannah
jhannah / gist:d55e2764e862ab38ad9ef683b101a66d
Last active June 27, 2018 15:50
becreativeletlous.com - 1 of 3 NS (systemdns.com) broken?
➜ jhannah-Air:~ dig +trace www.becreativeletlous.com
;; Warning: Message parser reports malformed message packet.
; <<>> DiG 9.10.6 <<>> +trace www.becreativeletlous.com
;; global options: +cmd
. 446653 IN NS f.root-servers.net.
. 446653 IN NS e.root-servers.net.
@jhannah
jhannah / gist:6c0da1873f418c4126f6a1dd35b9a021
Last active April 9, 2018 17:17
Nebraska TIF locations
It would be great to geolocate all this (lat/long): https://github.com/opennebraska/pri-tif/issues/31
Querying the SQLite database (https://github.com/opennebraska/pri-tif/tree/master/db):
sqlite> select tif_id, county_name, city_name, location from project order by 1;
01-0001|ADAMS|HASTINGS|Lots 12-18, Block 17, original town, Hastings - Area I
01-0002|ADAMS|HASTINGS|701-725 S. Wabash - Area V
01-0003|ADAMS|HASTINGS|Lots 15-17, Block 6, St Joe addition - Area II
01-0005|ADAMS|HASTINGS|400, 404, 408-410, 412 F Street & 743 S. Kansas
01-0006|ADAMS|HASTINGS|Lots 1-9, Block 15, Veiths Park addition - Area V, City of Hastings
@jhannah
jhannah / silo_series.md
Last active September 28, 2019 02:28
Silo Series - Hugh Howey
# Book Pages % series complete Kindle Publish Date
1 Wool 37 2% (37) Wool Omnibus (1-5) July 30, 2011
2 Wool: Proper Gauge 80 8% (117) ^ November 30, 2011
3 Wool: Casting Off 89 14% (206) ^ December 4, 2011
4 Wool: The Unraveling 121 22% (327) ^ December 25, 2011
5 Wool: The Stranded 201 35% (528) ^ January 14, 2012
6 First Shift: Legacy 156 45% (684) Shift Omnibus (6-8) April 14, 2012
7 Second Shift: Order 151 55% (835) ^ November 20, 2012
8 Third Shift: Pact 213 70% (1048) ^ January 28, 2013
@jhannah
jhannah / gist:30e54bbf9963a9ca4bb0af8edfd4a04b
Last active March 15, 2018 20:00
PostgreSQL 10.3 coalesce vs. greatest
drop table t;
create table t(c1 int, c2 int);
insert into t values (1, null), (2, null), (null, 7), (null, 4), (3, 20);
# select * from t;
c1 | c2
----+----
1 |
2 |
| 7