For continuous data such as time series, a streamgraph can be used in place of stacked bars. This example also demonstrates path transitions to interpolate between different layouts. Streamgraph algorithm, colors, and data generation inspired by Byron and Wattenberg.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local function difference(after, before) | |
return after - before | |
end | |
local function hms(seconds) | |
local hours = floor(seconds / 3600) | |
local minutes = floor((seconds % 3600) / 60) | |
local sec = floor(seconds % 60) | |
return hours, minutes, sec | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module pipeRegister(clk, reset, | |
stall, | |
regWrEnIn, memWrEnIn, mulSelIn, aluOutIn, PCIn, instrTypeIn, isBranchTakenIn, | |
regWrEnOut, memWrEnOut, mulSelOut, aluOutOut, PCOut, instrTypeOut, isBranchTakenOut | |
); | |
parameter BIT_WIDTH = 32; | |
input clk, reset; | |
input stall; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.pie_arc { | |
font-size: 0.75em; | |
} | |
.distillery { | |
font-weight: bold; | |
} | |
#svg { | |
text-align: center; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def list_condense(l): | |
run_start = None | |
in_run = False | |
last_item = None | |
out = '' | |
while len(l): | |
item = l.pop(0) | |
if not in_run: | |
run_start = item |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Node(object): | |
def __init__(self, name, lc=None, rc=None): | |
self.name = name | |
self.lc = lc | |
self.rc = rc | |
self.rn = None | |
# THE MEAT OF THE PROBLEM | |
@staticmethod | |
def link_rn(level_list): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl "https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py" | sudo python3.3 | |
curl "https://raw.github.com/pypa/pip/master/contrib/get-pip.py" | sudo python3.3 | |
sudo pip install virtualenv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#strace | |
# "-e trace=some_syscall" allows you to trace just the syscalls you want. | |
# lotta noise otherwise. comma separated list, but | |
# for our experiments, it'll prolly just be 1 | |
# syscall | |
# "-T" give us time data | |
# | |
# "program arg0 arg1" is the program we want to trace. this'll likely be |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#Local incremental backup of Windows' drives with RSync via Cygwin. | |
#Run like ./backup.sh cat_pictures_drive d g | |
#where d is the drive containing cat pictures | |
#and g is the destination of the backup. | |
#Backups will be made on g like G:\cat_pictures_drive_backup\backup-YY-MM... | |
#high-level description of the content we're backing up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Status | |
gst='git status' | |
gss='git status -s' | |
gstv='git status -v' | |
Remotes | |
gp='git push' | |
gl='git pull' | |
glom='git pull origin master' | |
ggpnp='git pull origin $(current_branch) && git push origin $(current_branch)' |