Skip to content

Instantly share code, notes, and snippets.

View kescobo's full-sized avatar

Kevin Bonham kescobo

View GitHub Profile
@kescobo
kescobo / formatting.html
Created May 3, 2019 15:14
Some weird formatting in Weave outputs
<!DOCTYPE html>
<HTML lang = "en">
<HEAD>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
2018-12-23|09:56:41 ~ ksb$ mkdir makietest; cd makietest
2018-12-23|09:56:56 makietest ksb$ julia
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.0.3 (2018-12-18)
_/ |\__'_|_|_|\__'_| |
|__/ |
c1 c2 c3 c4 c5 c6
8/8/16 11/11/10 8/8/16 10/1/15 10/1/15 8/8/16
5/27/16 10/12/13 5/27/16 12/1/15 12/1/15 1/1/16
6/15/16 11/8/04 12/21/09 11/1/09 11/1/09 11/24/09
6/15/16 5/27/05 1/4/08 5/1/07 5/1/07 10/1/07
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Verifying my Blockstack ID is secured with the address 13QoGuqU8pAboL4a3nccTi7YsjTPYSTUob https://explorer.blockstack.org/address/13QoGuqU8pAboL4a3nccTi7YsjTPYSTUob
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 94 columns, instead of 21. in line 1.
B1017V5 0.000000 0.010023 0.006170 0.011632 0.010608 0.011730 0.010901 0.023581 0.010023 0.021487 0.010242 0.011559 0.022850 0.014656 0.023435 0.010510 0.010925 0.011803 0.010730 0.010755 0.027776 0.010023 0.002000 0.028044 0.010876 0.010925 0.022557 0.022825 0.010559 0.021947 0.012364 0.010267 0.009730 0.022582 0.012022 0.010023 0.027312 0.022874 0.010901 0.026435 0.010267 0.022996 0.022679 0.009852 0.010047 0.010218 0.023216 0.009657 0.011388 0.010267 0.023167 0.010486 0.010462 0.011900 0.009828 0.022703 0.013315 0.023924 0.012901 0.023752 0.011900 0.010925 0.023535 0.010730 0.011730 0.009754 0.010242 0.011437 0.027484 0.010925 0.010559 0.010584 0.010047 0.009609 0.022923 0.000341 0.024167 0.022363 0.024045 0.010486 0.011461 0.028288 0.014924 0.012608 0.022533 0.011193 0.011218 0.027337 0.010754 0.022923 0.010023 0.012900 0.010023
B1025V4 0.010023 0.000000 0.010803 0.011974 0.010852 0.011876 0.012608 0.023752 0.000000 0.023048 0.009559 0.011486 0.023752 0.014729 0.024801 0.010657 0.012632 0.011291 0.011535
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kescobo
kescobo / BC_benchmark_attempt.txt
Last active November 27, 2017 22:38
Attempt to do Distances Benchmark for Bray Curtis PR
Kevins-MacBook-Pro-2:~ kev$ julia .julia/v0.6/Distances/benchmark/print_table.jl
(1/2) tuning "colwise"...
(1/23) tuning Distances.SqEuclidean...
(1/2) tuning "specialized"...
done (took 5.872382365 seconds)
(2/2) tuning "loop"...
done (took 5.519243081 seconds)
done (took 11.692612147 seconds)
(2/23) tuning Distances.Chebyshev...
(1/2) tuning "specialized"...
@kescobo
kescobo / metadict_benchmarks.jl
Created October 16, 2017 16:31
Benchmarks for MetaGraph indexing schemes
using LightGraphs
using MetaGraphs
using BenchmarkTools
function name_lookup(mgraph::MetaGraph, name::String)
return collect(filter_vertices(mgraph, :name, name))[1]
end
function dict_assign!(mgraph::MetaGraph, spindex::Vector{Int}, meindex::Vector{Int}, weights::Vector{Float64})
for i in 1:10000
function hclustplot(hc::Hclust, useheight::Bool)
o = indexmap(hc.order)
n = [x for x in 1:length(o)]
pos = treepositions(hc, useheight)
xs = []
ys = []
for i in 1: size(hc.merge, 1)