Skip to content

Instantly share code, notes, and snippets.

Avatar
💀
.

Jonathan Dahan jedahan

💀
.
View GitHub Profile
View 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
View README.md

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.

View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.link {
fill: none;
stroke: #666;
stroke-width: 1.5px;
}
View smartos_virtualbox_setup.sh
#!/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}')
View lab_report.md

Title

GLAM Lab best practices

Abstract

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

View lab_report.md

Title

GLAM Lab best practices

Abstract

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

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