Skip to content

Instantly share code, notes, and snippets.

View SuzanaK's full-sized avatar

Suzana K. SuzanaK

View GitHub Profile
@SuzanaK
SuzanaK / README.md
Created February 11, 2014 04:39 — forked from tommaybe/LICENSE.md

Inspired by Trulia Trends - but with code and using SVG.

Example data shows concurrent user sessions over time, taken from a development environment.

@SuzanaK
SuzanaK / README.md
Last active August 29, 2015 14:03
Map Visualization of Bantu Languages

Map Visualization of Bantu (Narrow Bantoid) Languages.

The darker the color, the more "ancient" the language (more direct descendent of the original Proto-Bantu language).

Map data from MBostock's TopoJSON, language data from Glottolog. You can zoom in with the mouse wheel and move the map. A click on a language will open a link to its Glottolog page.

@SuzanaK
SuzanaK / README.md
Last active August 29, 2015 14:03 — forked from mbostock/.block
Color grid example of d3.js animated transformations

D3 2.5.0 supports matrix decomposition for animating 2D transforms. Any SVG transform attribute is decomposed into a canonical representation of translate, rotate, scale and skew. This allows two arbitrary transforms of different types to be transitioned smoothly—say from a simple translate to a scale plus rotate. These features are supported automatically by your browser for CSS3 transitions, but now you can have them in JavaScript for SVG, too!

@SuzanaK
SuzanaK / README.md
Last active August 29, 2015 14:03
D3.js Map Visualization of References to Bantu Languages

D3.js Map Visualization of Bantu (Narrow Bantoid) Languages.

The darker the color, the more linguistic publications exist for this language. The most referenced language is Suaheli (1936 references).

Map data from MBostock's TopoJSON, language data from Glottolog.

@SuzanaK
SuzanaK / README.md
Last active August 29, 2015 14:03
Guthrie's Classification of Bantu Languages

Guthrie's Classification of Bantu Languages

This visualisation does not contain all Bantu languages but only those where the Wikipedia article contains the Guthrie classification.

White circles are languages without Guthrie code or where the Guthrie code has not been entered yet into DBPedia.

Each circle contains a hyperlink to the corresponding Wikipedia article.

Map data from MBostock's TopoJSON, language data from Glottolog and DBPedia.

@SuzanaK
SuzanaK / googleit.sh
Last active August 29, 2015 14:21
script to automatically google error messages printed to STDERR, using firefox
#! /bin/bash
usage="\nWill google the error message from COMMAND, using Firefox.
\nUsage: COMMAND |& $0 \n or COMMAND 2>&1 >/dev/null | $0 (to silence STDIN) \n or $0 ERROR_MESSAGE"
if [ "$*" ] ; then
input="$*"
else
read -t0.2 -d'' -r input
fi
#! /bin/bash
if [ "$1" ] ; then exec < "$1" ; fi
test "$1" && exec < "$1"
echo $1
@SuzanaK
SuzanaK / languages_geo.json
Last active November 9, 2015 16:39
Language names, iso codes, and geographic coordinates (longitude, latitude) for 587 languages of the world, including sign languages. Glottolog's Licence applies (Creative Commons Attribution-Sharealike 3.0 Unported License).
[{"name": "Abe", "long": "5.59682", "iso2": "", "iso": "aba", "lat": "-4.38497", "iso_jw": "aba", "iso3b": ""}, {"name": "Abkhazian", "long": "42.2334", "iso2": "ab", "iso": "abk", "lat": "41.2963", "iso_jw": "ab", "iso3b": ""}, {"name": "Abua", "long": "4.83057", "iso2": "", "iso": "abn", "lat": "6.61492", "iso_jw": "abn", "iso3b": ""}, {"name": "Inabaknon", "long": "12.4264", "iso2": "", "iso": "abx", "lat": "124166", "iso_jw": "abx", "iso3b": ""}, {"name": "Abui", "long": "-8.31058", "iso2": "", "iso": "abz", "lat": "124588", "iso_jw": "abz", "iso3b": ""}, {"name": "Saint Lucian Creole French", "long": "15.3947", "iso2": "", "iso": "acf", "lat": "-61.3641", "iso_jw": "acf", "iso3b": ""}, {"name": "Acoli", "long": "3.57738", "iso2": "", "iso": "ach", "lat": "32.5147", "iso_jw": "ach", "iso3b": ""}, {"name": "Achi", "long": "15073", "iso2": "", "iso": "acr", "lat": "-90.3513", "iso_jw": "acr", "iso3b": ""}, {"name": "Adangme", "long": "5.9437", "iso2": "", "iso": "ada", "lat": "0.13243", "iso_jw": "ada", "is
@SuzanaK
SuzanaK / Useful entries in .bashrc (Ubuntu)
Created January 22, 2013 00:26
Useful entries in .bashrc
# do not save commands in history that are pwd or clear or that have only one or two letters or that are duplicates
export HISTIGNORE="pwd:clear:?:??:&"
# do not save sequences of duplicates or commands starting with a space
HISTCONTROL=ignoredups:ignorespace
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=100000
@SuzanaK
SuzanaK / Download from Springer via Proxy
Last active December 11, 2015 15:58
Download from the new Springer Link Website via University Proxy
# download Springer Link Books via University Proxy and add the ".pdf" file ending
export http_proxy="http://proxy.zfn.uni-bremen.de:3128";
wget -r -l 1 --reject html,js,css,jpg,png --proxy-user STUD_IP_USERNAME --proxy-passwd STUD_IP_PASSWORD LINK_TO_BOOK;
for i in link.springer.com/content/pdf/*;
do j=`echo $i | cut -f 1`; j=$j".pdf";