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.
<?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> |
<?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"> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Terminus test</title> | |
<style> | |
body { | |
padding: 0px; | |
margin: 0px; | |
} | |
div { |
% 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 |
<!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{ |
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).
<!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;} |
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.
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!