Instantly share code, notes, and snippets.

# Carlos Scheideggercscheid

• Sort options
Last active Jan 18, 2020 — forked from Alex-Devoid/110_admin.geojson
A viz of all the "remain in Mexico" (MPP) asylum cases.
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Created Nov 22, 2017
keybase.md
View keybase.md

### Keybase proof

I hereby claim:

• I am cscheid on github.
• I am cscheid (https://keybase.io/cscheid) on keybase.
• I have a public key ASCbHGh8DWbPaMRsAqX3jKu2t6uySLoIHP3RpjNWw7XvNQo

To claim this, I am signing this object:

Last active Jun 16, 2016 — forked from mbostock/.block
Cluster Dendrogram, not flipped
View .block
Last active Aug 29, 2015
probabilities, how do they work
View prob.py
 import math from pylab import * def fact(x): return math.gamma(x+1) def choose(n,k): return fact(n) / (fact(k) * fact(n-k)) def hypergeom_mass_at_k(N, K, n, k):
Last active Aug 29, 2015 — forked from mbostock/.block

The scatterplot matrix visualizations pairwise correlations for multi-dimensional data; each cell in the matrix is a scatterplot. This example uses Anderson's data of iris flowers on the Gaspé Peninsula. Scatterplot matrix design invented by J. A. Hartigan; see also R and GGobi. Data on Iris flowers collected by Edgar Anderson and published by Ronald Fisher.

Last active Aug 29, 2015 — forked from mbostock/.block
Created Sep 10, 2014
bare-bones stress majorization in julia
View main.jl
 # You should totally ignore this because it's the first piece of Julia I've ever written. # 2-clause BSD, blah. function make_cycle(n) result = Dict{Int32, Array{Int32}}() for i = 1:n ii = i - 1 push!(result, i, [1 + ((i+n-2) % n), 1 + i % n]) end result
Created Sep 10, 2014
A monotonic transformation from IEEE 754 floats to unsigned ints
View main.md

You need to get to the bit representation of the float, and then:

``````inline unsigned int float2fint(unsigned int f) {
return f ^ ((-(f >> 31)) | 0x80000000);
}
``````

Callahan et al. used this trick in this paper.

Caveats:

Created Mar 27, 2014 — forked from mbostock/.block