Day 315
Qutebrowser :buffer
/gt
command to search tabs
:buffer
works as a best-match tab filtering thingy, this in nice with 30+ tabs when tab number doesn’t cut it anymore
Tensorflow
Tensorflow Datasets easiest way to look inside with an iterator
iter(dataset).__next()__
Tensorflow Keras Callbacks
How to compute f1 score for named-entity recognition in Keras
NER PRC and F-score (F1, metrics, precision, recall)
… uses only tags. As in, we don’t count the “not a name” tags at all during calculation of PRC. Otherwise the results would be too good. This is a NER-specific thing, though.
Current qutebrowser config.py
# https://github.com/qutebrowser/qutebrowser/blob/master/doc/help/configuring.asciidoc
config.bind(',l', 'set tabs.position left')
config.bind(',t', 'set tabs.position top')
config.bind(",j", "set content.javascript.enabled true")
config.bind(",J", "set content.javascript.enabled false")
config.bind(",T", "set tabs.show multiple")
config.bind(",n", "set tabs.show switching")
config.bind(",h", "set tabs.show never")
config.bind(",o", "spawn --userscript outline.sh")
config.bind(",m", "spawn mpv {url} --vid no")
c.url.searchengines = {'ss': 'https://startpage.com/do/search?query={}',
'g': 'https://google.com/search?q={}',
'c': 'http://dict.cc/?s={}',
'DEFAULT': 'https://duckduckgo.com/?q={}',
'd': 'https://en.wiktionary.org/wiki/Special:Search?search={}',
'w': 'https://en.wikipedia.org/wiki/Special:Search?search={}',
'y': 'https://youtube.com/results?search_query={}'
}
mono = '10pt monospace'
small_mono = '9pt monospace'
c.hints.mode = 'number'
c.auto_save.session = True
# Numbers to tabs
config.bind('1', 'tab-focus 1')
config.bind('2', 'tab-focus 2')
config.bind('3', 'tab-focus 3')
config.bind('4', 'tab-focus 4')
config.bind('5', 'tab-focus 5')
config.bind('6', 'tab-focus 6')
config.bind('7', 'tab-focus 7')
config.bind('8', 'tab-focus 8')
config.bind('9', 'tab-focus 9')
config.bind('0', 'tab-focus 10')
config.bind('<Alt-1>', 'tab-focus 11')
config.bind('<Alt-2>', 'tab-focus 12')
config.bind('<Alt-3>', 'tab-focus 13')
config.bind('<Alt-4>', 'tab-focus 14')
config.bind('<Alt-5>', 'tab-focus 15')
config.bind('<Alt-6>', 'tab-focus 16')
config.bind('<Alt-7>', 'tab-focus 17')
config.bind('<Alt-8>', 'tab-focus 18')
config.bind('<Alt-9>', 'tab-focus 19')
config.bind('<Alt-0>', 'tab-focus -1')
config.bind('A', 'hint all tab-bg')
config.bind('a', 'set-cmd-text -s :open -t')
config.bind('e', 'open-editor')
config.bind('>', 'tab-move +')
config.bind('<', 'tab-move -')
config.bind('<Ctrl-P>', 'tab-pin;; tab-move 1')
pip install from github
Pip install from github is surprisingly easy: pip install git+https://github.com/guillaumegenthial/tf_metrics.git