Notes from Deep Work (2016)
A very biased collection of notes and highlights
Main concepts
flowchart LR
A((Deep Work)) -->|Versus| B(Shallow Work)
B --> B1[Shallow work promotes more shallow work]
A very biased collection of notes and highlights
flowchart LR
A((Deep Work)) -->|Versus| B(Shallow Work)
B --> B1[Shallow work promotes more shallow work]
#!/bin/bash | |
wdate () { | |
search=$1; | |
zoneinfo=/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pytz/zoneinfo/; | |
format='%a %F %T'; | |
find -L $zoneinfo -type f \ |
''' | |
HTTP Reuests has following parameters: | |
1)Request URL | |
2)Header Fields | |
3)Parameter | |
4)Request body | |
PREREQUISITE | |
* head over to https://github.com/settings/tokens and generate a new token with 'gists' permissions |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
""" | |
iterate a bucket in s3 containing JSON log files | |
get each file, massage json a little and uploade to elasticsearc | |
""" | |
#!/bin/bash | |
FILENAME=records_111901_00000000.jsonl | |
split -a 5 -l 1 $FILENAME temp | |
n=1 | |
for f in temp* | |
do | |
cat $f >> Part${n}.json | |
rm $f | |
((n++)) | |
done |
#!/bin/bash | |
FILENAME=filename_here.csv | |
HDR=$(head -1 $FILENAME) | |
split -l 100 $FILENAME xyz | |
n=1 | |
for f in xyz* | |
do | |
if [ $n -gt 1 ]; then | |
echo $HDR > Part${n}.csv | |
fi |
# source: https://github.com/springernature/scigraph/blob/master/2018Q3/context/scigraph.json | |
{ | |
"@context": { | |
"@vocab": "http://schema.org/", | |
"@base": null, | |
"sg": "http://scigraph.springernature.com/id/", | |
"sgo": "http://scigraph.springernature.com/ontologies/core/", | |
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", | |
"rdfs": "http://www.w3.org/2000/01/rdf-schema#", |
{ | |
"@context": { | |
"@vocab": "http://schema.org/", | |
"@base": null, | |
"sg.articles": "http://scigraph.springernature.com/things/articles/", | |
"sg.persons": "http://scigraph.springernature.com/things/persons/", | |
"sg.grants": "http://scigraph.springernature.com/things/grants/", | |
"sg": "http://scigraph.springernature.com/ontologies/core/" | |
}, | |
"@id": "sg.grants:grant.2691278", |