Skip to content

Instantly share code, notes, and snippets.

Jay Hannah jhannah

View GitHub Profile
@jhannah
jhannah / photos.md
Last active Mar 19, 2019
Diventures Bimini Bahamas trip photos / videos March 2019
View photos.md
@jhannah
jhannah / go.md
Last active Feb 28, 2019
How Jay streams meat-space Go
View go.md

Also bought this for cam-knitting, but its not tall enough to get a top-down view on a Go board unless you put it on a box or something:

@jhannah
jhannah / omaha_code_schools.md
Last active Apr 10, 2019
Omaha Nebraska "code schools"
View omaha_code_schools.md
@jhannah
jhannah / jay.pl
Last active Feb 6, 2019
@_ is easy(tm)
View jay.pl
use 5.26.0;
package Foo;
sub new { bless {} }
sub bar {
my $baz = sub {
return join " ", @_;
};
say "Current code: " . $baz->();
View gist:c301caffb83d43dad097841e1caad7d6
{ "and": [
{ "==" : [ { "var": "gender" }, "women" ] },
{ "and": [
{ "<=" : [ { "var": "age" }, 34 ] },
{ ">=" : [ { "var": "age" }, 25 ] }
] },
{ "==": [ { "var": "have_childen" }, true ] }
]}
reduces to:
@jhannah
jhannah / gist:d55e2764e862ab38ad9ef683b101a66d
Last active Jun 27, 2018
becreativeletlous.com - 1 of 3 NS (systemdns.com) broken?
View gist:d55e2764e862ab38ad9ef683b101a66d
➜ 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.
View gist:6c0da1873f418c4126f6a1dd35b9a021
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 Nov 8, 2018
Silo Series - Hugh Howey
View silo_series.md
# 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 Mar 15, 2018
PostgreSQL 10.3 coalesce vs. greatest
View gist:30e54bbf9963a9ca4bb0af8edfd4a04b
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
View gist:cdcac34882c3e15ca8c826eab1d3026b
✗ docker build --tag nemo-pytest --target nemo-pytest .
Sending build context to Docker daemon 49.77MB
Step 1/21 : FROM perl:latest AS nemo-cpan
---> 9af9f1088155
...
Step 18/21 : COPY testapi/requirements.txt testapi/requirements.txt
---> Using cache
---> e75b13cbcffa
Step 19/21 : RUN pip install -r testapi/requirements.txt
---> Using cache
You can’t perform that action at this time.