Skip to content

Instantly share code, notes, and snippets.

Enclosure diagrams use containment to represent the hierarchy. Although circle packing is not as space-efficient as a treemap, it better reveals the hierarchy. Implementation based on work by Jeff Heer. Data shows the Flare class hierarchy, also courtesy Jeff Heer.

See also this zoomable version.

@ecerulm
ecerulm / README.md
Last active August 29, 2015 14:01 — forked from mbostock/.block
d3 pack radius fail

Enclosure diagrams use containment to represent the hierarchy. Although circle packing is not as space-efficient as a treemap, it better reveals the hierarchy. Implementation based on work by Jeff Heer. Data shows the Flare class hierarchy, also courtesy Jeff Heer.

See also this zoomable version.

@ecerulm
ecerulm / ecerulm-1.cfg
Created November 25, 2014 12:55
Deb metapackage
# sudo apt-get install -y equivs gdebi
# equivs-build ecerulm-1.cfg # will generate the .deb file
# use sudo gdebi -n ecerulm*.deb # to install the package
Section: misc
Priority: optional
Standards-Version: 3.9.2
Package: ecerulm
Version: 1.2
Depends: vim-nox,build-essential,tmux,byobu,python,python-dev
Depends: linux-generic,linux-headers-generic,dkms,git,meld,silversearcher-ag,ncdu,curl,apt-file
install_rabbitmq:
pkg.installed:
- name: rabbitmq-server
public class NoteFinderLuceneImplTest implements Lookup.Provider {
private static NoteFinderLuceneImpl instance;
private Lookup lookup;
private InstanceContent ic = new InstanceContent (); // see http://bit.ly/aL7q9M for more details
public NoteFinderLuceneImplTest() {
}
@BeforeClass
#include <math.h>
#include <float.h>
#include <limits.h>
int valx = 0;
int valy = 0;
int valz = 0;
int xaxis = 0;
#!/usr/bin/env ruby
# Input: WordPress XML export file.
# Outputs: a series of Textile files ready to be included in a Jekyll site,
# and comments.yml which contains all approved comments with metadata which
# can be used for a Disqus import.
# Changes from the original gist: http://gist.github.com/268428
# 1. Handles titles containing special characters. Those have to be YAML escaped
# 2. Use the original permalinks in wordpress.
/*
* Menu: Get Eclipse Icons > Make web page
* Script-Path: /EclipseIcons/monkey/make_web_page.gm
* Kudos: ecerulm
* License: EPL 1.0
*/
def findFilesinFolder(folder) {
def toReturn = new ArrayList();
#!/bin/bash
ext=$1
if [ ! $ext ]; then
ext="avi"
fi
FILES=`find . -iname "*.$ext" -printf "%p\n"`
IFS="
"
for i in $FILES; do
#
# script to merge two tikiwiki s
#
require "rubygems"
require "mysql"
require "log4r"
require "iconv"
include Log4r
def createInsert(dbh, table, row )