Skip to content

Instantly share code, notes, and snippets.

View jedahan's full-sized avatar
💀
.

Jonathan Dahan jedahan

💀
.
View GitHub Profile
@jedahan
jedahan / twitcher.py
Last active June 7, 2021 17:45 — forked from imba3r/twitcher.py
#!/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
@jedahan
jedahan / README.md
Last active August 29, 2015 14:04 — forked from mbostock/.block

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.

@jedahan
jedahan / index.html
Last active August 29, 2015 14:04 — forked from mbostock/.block
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.link {
fill: none;
stroke: #666;
stroke-width: 1.5px;
}
#!/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}')

Title

GLAM Lab best practices

Abstract

Come up with a repeatable, testable framework for running a lab in context of GLAM R&D

Title

GLAM Lab best practices

Abstract

Come up with a repeatable, testable framework for running a lab in context of GLAM R&D

config = JSON.parse require('fs').readFileSync 'config.json'
zappa 80, {@config}, ->
get '/': ->
render 'index'
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'
@jedahan
jedahan / live-command-coloring.sh
Created December 24, 2010 11:56 — forked from paradoxxxzero/live-command-coloring.sh
fish-style syntax highlighting for zsh
#!/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