Instantly share code, notes, and snippets.

View gist:c301caffb83d43dad097841e1caad7d6
{ "and": [
{ "==" : [ { "var": "gender" }, "women" ] },
{ "and": [
{ "<=" : [ { "var": "age" }, 34 ] },
{ ">=" : [ { "var": "age" }, 25 ] }
] },
{ "==": [ { "var": "have_childen" }, true ] }
]}
reduces to:
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
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
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
View docker-wut.md

uhh... what? du -h thinks 8GB but ls -h thinks 64GB?

ANSWERED BELOW -- see gist Comments

➜  Jays-MBP:com.docker.driver.amd64-linux  ls -al
total 16430392
drwxr-xr-x@ 13 jhannah  staff          416 Mar  7 14:06 .
drwxr-xr-x  23 jhannah  staff          736 Mar  7 14:07 ..
-rw-r--r--@  1 jhannah  staff  68719476736 Mar  9 12:29 Docker.raw
View gist:1a235cfb6e013b548cf1605c9ac91ea9
As of 20180117. 42 years old. $0 debt.
12.71% Savings
0.89% Checking
52.92% 401K - will soon be JFIVX index fund (0.03% expense ratio)
3.38% Roth/IRA
2.35% Scottrade
3.34% Crypto
3.20% Charity account
4.17% RV
View gist:5a52b081c088fb796ec5fab1cde5888a
From: https://gist.github.com/gnarf/5406589
✗ git pr 2528
* [new ref] refs/pull/2528/head -> pr/2528
Switched to branch 'pr/2528'
✗ git pr-clean 2528
git for-each-ref refs/heads/pr/* --format='%(refname)' | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done: -c: line 0: syntax error near unexpected token `"$@"'
git for-each-ref refs/heads/pr/* --format='%(refname)' | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done: -c: line 0: `git for-each-ref refs/heads/pr/* --format='%(refname)' | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done "$@"'
View gist:14f59e6d0c209da99e60afabd1704c3c
UPDATE: THIS IS A KNOWN ISSUE:
https://github.com/begriffs/postgrest/issues/411
Remove the need for primary key column when embedding parents in &select
Remind me again: Is this a feature or a bug?
I HAVE TO add 'id' to my 'select=' even though I don't want it.
curl "$N/table1?select=field1,table2\{field2\}"