Skip to content

Instantly share code, notes, and snippets.

View trombonehero's full-sized avatar

Jonathan Anderson trombonehero

View GitHub Profile
@trombonehero
trombonehero / covid-data.py
Last active April 11, 2020 20:21
Simple (but grim) example of using Matplotlib and Pandas for data visualization
import matplotlib.pyplot as plt
import pandas as pd
#
# Read data and compute some summaries:
#
data = pd.read_csv('covid-data.csv')
data['Total'] = data['New'].cumsum()
data['Deceased'] = data['Deaths'].cumsum()
@trombonehero
trombonehero / test-8fd60b.cpp
Created July 13, 2018 12:29
Reduced test case for Clang 6.0.[01] assertion failure
template <class a>
struct b : a template <class c>
c
__declval() template <class d, class... e>
auto f(d g, e... h)
-> decltype(g(h...)) template <class, class d, class... e>
struct i
: decltype(f(declval<d>(), e()...)) template <class d, class... e>
using j = i<void, d, e...>;
template<class > struct function
Invalid operator call kind
UNREACHABLE executed at
/wrkdirs/usr/ports/devel/llvm60/work/llvm-6.0.0.src/tools/clang/lib/AST/StmtProfile.cpp:1250!
#0 0x0000000802fd5228 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/local/llvm60/lib/libLLVM-6.0.so+0x9d5228)
#1 0x0000000802fd5926 (/usr/local/llvm60/lib/libLLVM-6.0.so+0x9d5926)
#2 0x0000000802234946 handle_signal
/usr/local/jenkins/workspace/CADETS/bsd-cadets-build/freebsd/lib/libthr/thread/thr_sig.c:0:3
Stack dump:
0. Program arguments: /usr/local/llvm60/bin/clang-6.0 -cc1 -triple
digraph G {
subgraph cluster_17 {
style=filled;
color=lightgrey;
node [style=filled,color=white];
17 [ label = "17" ];
count_17 [ label = "count: 1" ];
left_17 [ label = "left" ];
right_17 [ label = "right" ];
This file has been truncated, but you can view the full file.
DBG(1)[749]> pkg initialized
Updating allendale repository catalogue...
DBG(1)[749]> PkgRepo: verifying update for allendale
DBG(4)[749]> Pkgdb: running 'SELECT count(name) FROM sqlite_master WHERE type='table' AND name='repodata';'
DBG(4)[749]> Pkgdb: running 'select count(key) from repodata WHERE key = "packagesite" and value = 'http://allendale.engr.mun.ca:8182/FreeBSD:10:amd64/latest''
DBG(4)[749]> Pkgdb: running 'SELECT id, origin, name, name as uniqueid, version, comment, prefix, desc, arch, maintainer, www, licenselogic, flatsize, pkgsize, cksum, manifestdigest, path AS repopath, 'allendale' AS dbname FROM packages AS p ORDER BY name;' query for all
DBG(1)[749]> Pkgrepo, begin update of '/var/db/pkg/repo-allendale.sqlite'
DBG(1)[749]> Fetch: fetching from: http://allendale.engr.mun.ca/FreeBSD:10:amd64/latest/meta.txz with opts "i"
DBG(1)[749]> Fetch: fetching from: http://allendale.engr.mun.ca/FreeBSD:10:amd64/latest/packagesite.txz with opts "i"
allendale repository is up-to-date.

Keybase proof

I hereby claim:

  • I am trombonehero on github.
  • I am trombonehero (https://keybase.io/trombonehero) on keybase.
  • I have a public key whose fingerprint is 563B 20C1 BFBF F638 610F C584 B11B 3804 9C0E E010

To claim this, I am signing this object: