Skip to content

Instantly share code, notes, and snippets.

@kynnjo
kynnjo / fonts.conf
Created March 16, 2016 16:43
query to fontconfig list
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match>
<test name="prgname" mode="not_eq"><string>chromium</string></test>
<edit name="family" mode="assign" binding="strong"><string>Terminus</string></edit>
<edit name="postscriptname" mode="assign" binding="strong"><string>Terminus</string></edit>
@kynnjo
kynnjo / fonts.conf
Created March 8, 2016 15:20
fonts.conf to force Chromium to use Terminus
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match>
<edit name="family" mode="assign" binding="strong">
<string>Terminus</string>
</edit>
<edit name="postscriptname" mode="assign" binding="strong">
@kynnjo
kynnjo / index.html
Last active March 8, 2016 15:02
Test of a browser's ability to display the Terminus font
<!DOCTYPE html>
<html>
<head>
<title>Terminus test</title>
<style>
body {
padding: 0px;
margin: 0px;
}
div {
@kynnjo
kynnjo / output_of_brew_reinstall_dv_emacs.txt
Created February 12, 2015 13:19
output of `brew reinstall -dv emacs`
% brew reinstall -dv emacs
/usr/local/Library/brew.rb (Formulary::FormulaLoader): loading /usr/local/Library/Formula/emacs.rb
==> Reinstalling emacs with --with-x11, --with-imagemagick
rm /usr/local/bin/grep-changelog
rm /usr/local/bin/etags
rm /usr/local/bin/emacsclient
rm /usr/local/bin/emacs-24.4
rm /usr/local/bin/emacs
rm /usr/local/bin/ebrowse
rm /usr/local/share/man/man1/grep-changelog.1.gz
@kynnjo
kynnjo / README.md
Last active December 27, 2015 21:39
exercise: populating a list

This is some exercise code on the problem of populating a <ul> element subject to constraints and other criteria. It uses an "out-of-sight" dummy list to compute the dimensions it needs to lay out the actual list.

@kynnjo
kynnjo / index.html
Created November 2, 2013 20:48
on the display property
<!DOCTYPE html>
<meta charset="utf-8">
<title>display property</title>
<style>
html,body,div,table,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0}
table{border-collapse:collapse;border-spacing:0;}
body{background:white;}
.content{
@kynnjo
kynnjo / about.md
Created October 27, 2013 12:30 — forked from antichris/about.md

Fork your own Gist

This is a bookmarklet that adds a fully functional Fork button to your own Gist.

If a Fork button is already present in the page, this bookmarklet will set focus to it instead of adding another one.

The change is temporary and the button will disappear as soon as you navigate away from that Gist (clicking the Fork button does this for you as well).


@kynnjo
kynnjo / index.html
Created October 27, 2013 12:05 — forked from kynnjo/README.md
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>noob d3</title>
<style>
button{display:inline}
#grid{background:#fff;border-collapse:collapse;}
#grid td{border-style:solid;border-color:#eee;}
#grid svg{display:block;}
@kynnjo
kynnjo / README.md
Created October 26, 2013 20:05 — forked from mbostock/.block

The scatterplot matrix visualizations pairwise correlations for multi-dimensional data; each cell in the matrix is a scatterplot. This example uses Anderson's data of iris flowers on the Gaspé Peninsula. Scatterplot matrix design invented by J. A. Hartigan; see also R and GGobi. Data on Iris flowers collected by Edgar Anderson and published by Ronald Fisher.

@kynnjo
kynnjo / README.md
Last active December 25, 2015 19:29
noob d3

This is just an exercise to implement grouping of curves according to the values of one of several possible "factors". In this example the factors are chosen only because they correspond to well-known n-somes, for n ∈ {2, 3, 4, 5}.

I've refactored this code many times, trying to make the code readable, but I think I've failed miserably in this regard, especially with the d3.js stuff. I think I just don't get d3.js... Comments welcome!