Skip to content

Instantly share code, notes, and snippets.

View test_trs.md
@tsibley
tsibley / x.md
Last active Nov 17, 2022
markdown parsing tests
View output.json
{"filename": "guides/communicate/create-pdf.md", "lineno": 61, "status": "unchecked", "code": 0, "uri": "", "info": ""}
{"filename": "install.rst", "lineno": 24, "status": "unchecked", "code": 0, "uri": "#choosing-a-runtime", "info": ""}
{"filename": "guides/share/groups/migrate-from-s3.rst", "lineno": 98, "status": "unchecked", "code": 0, "uri": "#group-customization", "info": ""}
{"filename": "guides/share/groups/customize.rst", "lineno": 12, "status": "unchecked", "code": 0, "uri": "#groups-roles", "info": ""}
{"filename": "learn/parts.rst", "lineno": 5, "status": "unchecked", "code": 0, "uri": "#term-Augur", "info": ""}
{"filename": "learn/parts.rst", "lineno": 5, "status": "unchecked", "code": 0, "uri": "#term-Auspice", "info": ""}
{"filename": "learn/parts.rst", "lineno": 82, "status": "unchecked", "code": 0, "uri": "#term-JSONs", "info": ""}
{"filename": "learn/parts.rst", "lineno": 234, "status": "unchecked", "code": 0, "uri": "#term-Nextstrain-CLI", "info": ""}
{"filename": "guides/share/groups/custo
View git-branch-ttl-stats
#!/bin/bash
set -euo pipefail
main() {
merge-commits | branch-ttl
}
merge-commits() {
git log --first-parent --format="%h %at %s" | grep Merge
}
View ini
#!/usr/bin/env python3
import click
from configparser import ConfigParser
@click.command()
@click.argument("file", type = click.File(), metavar = "<file>")
@click.argument("section", metavar = "<section>")
@click.argument("option", metavar = "<option>")
@click.argument("value", metavar = "<value>", required = False)
@click.pass_context
View 1-augur-api-usage-symbol-freq.json
[
{"symbol": "augur.__version__.__version__", "count": 2, "percent": 1.4388489208633093, "histogram": "**"},
{"symbol": "augur.align.read_sequences", "count": 2, "percent": 1.4388489208633093, "histogram": "**"},
{"symbol": "augur.align.run", "count": 4, "percent": 2.8776978417266186, "histogram": "*****"},
{"symbol": "augur.ancestral.collect_mutations_and_sequences", "count": 1, "percent": 0.7194244604316546, "histogram": "*"},
{"symbol": "augur.clades.is_node_in_clade", "count": 4, "percent": 2.8776978417266186, "histogram": "*****"},
{"symbol": "augur.clades.read_in_clade_definitions", "count": 4, "percent": 2.8776978417266186, "histogram": "*****"},
{"symbol": "augur.dates.get_numerical_dates", "count": 1, "percent": 0.7194244604316546, "histogram": "*"},
{"symbol": "augur.distance.read_distance_map", "count": 1, "percent": 0.7194244604316546, "histogram": "*"},
{"symbol": "augur.export_v2.parse_node_data_and_metadata", "count": 1, "percent": 0.7194244604316546, "histogram": "*"},
View comm.tsv
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have columns, instead of 2. in line 1.
docker_only conda_only both
2to3
2to3-3.10
acountry
acyclic
adig
aggregate_scores_in_intervals.py
ahost
align_print_template.py
animate
@tsibley
tsibley / nopaste.diff
Last active Oct 18, 2022
linux-vs-macos.diff
View nopaste.diff
diff --git a/tmp/linux b/tmp/macos
index ef80b0a..b17ee08 100644
--- a/tmp/linux
+++ b/tmp/macos
@@ -3,7 +3,7 @@ package:
version: "20221018T182447Z"
build:
number: 1
- string: hb0f4dca_1_locked
+ string: h0dc7051_1_locked
View nopaste
<html>
<head>
<style>
pre { line-height: 1em; }
.ansi0 { color: #000; }.ansi1 { color: #f33; }.ansi10 { color: #6d6; }.ansi11 { color: #dd6; }.ansi12 { color: #99f; }.ansi13 { color: #f6f; }.ansi14 { color: #6dd; }.ansi15 { color: #fff; }.ansi2 { color: #2c2; }.ansi3 { color: #bb0; }.ansi4 { color: #55c; }.ansi5 { color: #d3d; }.ansi6 { color: #0cc; }.ansi7 { color: #bbb; }.ansi8 { color: #555; }.ansi9 { color: #f66; }.black { color: #000; }.blue { color: #55c; }.bold { font-weight: bold; }.bright_black { color: #555; }.bright_blue { color: #99f; }.bright_cyan { color: #6dd; }.bright_green { color: #6d6; }.bright_magenta { color: #f6f; }.bright_red { color: #f66; }.bright_white { color: #fff; }.bright_yellow { color: #dd6; }.concealed { visibility: hidden; }.cyan { color: #0cc; }.dark { opacity: 0.7; }.green { color: #2c2; }.grey0 { color: #0a0a0a; }.grey1 { color: #141414; }.grey10 { color: #6e6e6e; }.grey11 { color: #787878; }.grey12 { color: #828282; }.grey13 { color: #8
View nopaste
# This file may be used to create an environment using:
# $ conda create --name <env> --file <this file>
# platform: linux-64
@EXPLICIT
https://conda.anaconda.org/bioconda/linux-64/gofasta-1.1.0-h9ee0642_0.tar.bz2#6bfa6853756b739fb5fcd18a37012773
https://conda.anaconda.org/conda-forge/noarch/font-ttf-ubuntu-0.83-hab24e00_0.tar.bz2#19410c3df09dfb12d1206132a1d357c5
https://conda.anaconda.org/conda-forge/linux-64/libstdcxx-ng-12.1.0-ha89aaad_16.tar.bz2#6f5ba041a41eb102a1027d9e68731be7
https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.36.1-hea4e1c9_2.tar.bz2#bd4f2e711b39af170e7ff15163fe87ee
https://conda.anaconda.org/conda-forge/linux-64/libgfortran5-12.1.0-hdcd56e2_16.tar.bz2#b02605b875559ff99f04351fd5040760
https://conda.anaconda.org/conda-forge/noarch/font-ttf-inconsolata-3.000-h77eed37_0.tar.bz2#34893075a5c9e55cdafac56607368fc6