Or the 25 hour work week. Heavily borrowed from cblgh.
The structure is simple:
- 1 pomodoro planning the work day
- 8 pomodoros of work
- 3 pomodoros of break
1+8+3=12 pomodoros,
const render = (template, values) => | |
template.replace(/\{\{([^}]+)\}\}/g, (_, key) => values[key]); | |
render("hello {{place}}", { place: "world" }) | |
// => "hello world" | |
render("shell='{{SHELL}}', term='{{TERM}}'", process.env) | |
// => "shell='/bin/bash', term='xterm-256color'" |
const tape = require('tape') | |
const hypercore = require('hypercore') | |
const ram = require('random-access-memory') | |
const { runAll, replicate } = require('./lib/util') | |
const { Kappa } = require('..') | |
const createIndexer = require('../sources/hypercore-sparse') | |
const topics = ['red', 'blue', 'green', 'yellow'] |
Or the 25 hour work week. Heavily borrowed from cblgh.
The structure is simple:
1+8+3=12 pomodoros,
Using substack's 'ack' branch of hypercore, you can set an 'ack' flag to 'true' when creating a hypercore replication feed, and you'll be able to tell, for any given hypercore log block you append to a hypercore feed, whether it has been received by a peer.
As a test, I ran "node testsend.js" below ... which generates a public key [KEY], and allows me to type messages into the terminal 'live'. In another directory, I ran "node testreceive.js [KEY]" in order receive those messages ...
Here's what it looked like on the 'send' side as I typed in new messages (I'm including a snippet after I'd already been testing a while) ...
2019-07-06T23:03:14.746Z> bubbles
So, as I mentioned last time, I have two fundamental goals with dat that are not addressed by simply running dat share
.
To break these down a bit more, uptime is a combination of two things:
quinlan@corinthian:~/.weechat/logs$ grep -B1 -rn 'tenyks.*LOLBOW$' ./irc.freenode.#infoforcefeed.weechatlog | grep -v 'LOLBOW' | grep -v '\-\-' | sed -r 's/([0-9 -:]*)(\s*)([a | |
-zA-Z1-9_-]*)(\s*)lol$/\3/g' | sort | uniq -c > /tmp/matches.txt | |
quinlan@corinthian:~/.weechat/logs$ cat /tmp/matches.txt | |
1 437815-2016-03-03 03:10:59 tenyks Link title: Urban Dictionary: Lol | |
1 446223-2016-04-05 19:07:17 Xe lol\ | |
1 466876-2016-06-09 15:13:39 nijotz BimboTea | |
1 469408-2016-06-24 23:06:43 dm lol me bb | |
1 469885-2016-06-27 14:35:13 lykkin lol that's a good typo | |
1 525127-2017-02-28 16:05:48 [2017] | |
1 527824-2017-03-14 19:15:10 [2017] |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import errno | |
import os | |
import shutil | |
from subprocess import check_output | |
import arrow |