GLAM Lab best practices
Come up with a repeatable, testable framework for running a lab in context of GLAM R&D
#!/usr/bin/env python | |
#------------------------------------------------- | |
# file: twitcher.py | |
# author: Florian Ehmke | |
# description: dmenu for twitch streams | |
#------------------------------------------------- | |
import argparse | |
import requests | |
from subprocess import Popen, PIPE, STDOUT |
#!/bin/sh | |
VBM=VBoxManage | |
VMNAME="smartos2" | |
VBDIR=$($VBM list systemproperties | awk '/^Default.machine.folder/ { print $4 }') | |
DISK=1024 # MB | |
RAM=512 # MB | |
VRAM=128 # MB | |
mkdir -p "${VBDIR}/${VMNAME}" && cd $_ | |
[[ -f ${VMNAME}.iso ]] || curl -C - -o "${VMNAME}.iso" https://download.joyent.com/pub/iso/latest.iso | |
MD5=$(curl -C - https://download.joyent.com/pub/iso/md5sums.txt | awk '/latest.iso$/ { print $1}') |
config = JSON.parse require('fs').readFileSync './config.json', 'utf8' | |
zappa 80, {config}, -> | |
@config = config | |
get '/': -> | |
render 'index' | |
zappa 33, {config}, -> | |
helper fakeData: -> | |
include 'faker.coffee' |
config = JSON.parse require('fs').readFileSync 'config.json' | |
zappa 80, {@config}, -> | |
get '/': -> | |
render 'index' |
#!/bin/zsh | |
# Copyleft 2010 paradoxxxzero All wrongs reserved | |
# With contribution from James Ahlborn | |
# https://gist.github.com/752727 | |
# Fork of https://gist.github.com/586698 by nicoulaj / dingram / roylzuo ... | |
# From http://www.zsh.org/mla/users/2010/msg00692.html | |
# Token types styles. | |
# See http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#SEC135 |
Click to add nodes! Nodes near the cursor will be linked to the new node.
D3's force layout uses the Barnes–Hut approximation to compute repulsive charge forces between all nodes efficiently. Links are implemented as geometric constraints on top of position Verlet integration, offering greater stability. A virtual spring between each node and the center of the chart prevents nodes from drifting into space.
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
.link { | |
fill: none; | |
stroke: #666; | |
stroke-width: 1.5px; | |
} |