Example usage:
journalctl --unit=NetworkManager --lines=500 | cut --bytes=72- | python log_markov_chain.py
The cut
takes off the timestamp, so the logs actually contain verbatim repitions of some lines [A, B, C, A, ...]
html > body > div > div > div > div > div > div > div > div > div > div > div > div > div > div > div > div > div > div > span > span { | |
display: none; | |
} | |
html > body > div > div > div > div > div > div > div > div > div > div > div > div > div > div > div > div > div > span > span > html-blob { | |
display: none; | |
} |
// Sort items by publication venue in Zotero | |
// Highlight a set of items first. | |
const items = Zotero.getActiveZoteroPane().getSelectedItems(); | |
itemsByPub = {}; | |
for (const i in items) { | |
itemInfo = items[i].toJSON(); | |
publication = itemInfo.publicationTitle; | |
if (!(publication in itemsByPub)) { | |
itemsByPub[publication] = []; | |
} |
Example usage:
journalctl --unit=NetworkManager --lines=500 | cut --bytes=72- | python log_markov_chain.py
The cut
takes off the timestamp, so the logs actually contain verbatim repitions of some lines [A, B, C, A, ...]
#!/usr/bin/env python | |
import requests | |
import lxml.etree | |
import tqdm | |
import math | |
import heapq | |
import numpy | |
import random | |
xml_text = requests.get("http://www.remush.be/tezauro/PIV.xml").content |
This is an index of Espernato resources on the web. I will eventually move this into a Wiki space somewhere. Within each sections, the links are approximately ordered by usefulness to me. This is in English because it is targetted towards beginners. When Esperanto words are in the title of a resource, the translation is in parentheses.
{ | |
"nodes": { | |
"nixpkgs": { | |
"locked": { | |
"lastModified": 1695227375, | |
"narHash": "sha256-76WTkeCu3npPZDkay2hB2Dj3cOuCiF0P41dbmXWUKtA=", | |
"owner": "NixOS", | |
"repo": "nixpkgs", | |
"rev": "fe977679240ac2027b151ecca1bc6ce808c2e8af", | |
"type": "github" |
import pathlib | |
import datetime | |
import pymc | |
import arviz | |
import runner | |
random_seed = 0 | |
cache = pathlib.Path(".cache") | |
df = runner.get_results() |
<?php | |
use Grocy\Controllers\ExceptionController; | |
use Grocy\Helpers\UrlManager; | |
use Grocy\Middleware\LocaleMiddleware; | |
use Grocy\Middleware\CorsMiddleware; | |
use Psr\Container\ContainerInterface as Container; | |
use Slim\Factory\AppFactory; | |
use Slim\Views\Blade; |