I hereby claim:
- I am mdekstrand on github.
- I am mdekstrand (https://keybase.io/mdekstrand) on keybase.
- I have a public key ASCMp-KFf_h2tKxrC9Xt-PvSwbcdAGJmPuIoi6uQUf8dhwo
To claim this, I am signing this object:
| % Generated by Paperpile. Check out https://paperpile.com for more information. | |
| % BibTeX export options can be customized via Settings -> BibTeX. | |
| @ARTICLE{Cooper1973-ix, | |
| title = "A simulation model of an information retrieval system", | |
| author = "Cooper, Michael D", | |
| journal = "Information Storage and Retrieval", | |
| publisher = "Elsevier", | |
| volume = 9, | |
| number = 1, |
| package net.ekstrandom.htmlpdf; | |
| import java.util.Optional; | |
| import java.io.*; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import picocli.CommandLine; | |
| // import com.itextpdf.kernel.io.*; | |
| import com.itextpdf.kernel.pdf.*; | |
| import com.itextpdf.html2pdf.*; |
| #!/bin/sh | |
| for file in "$@"; do | |
| outfile="${file%%.pdf}.jpg" | |
| echo "Thumbnailing $file to $outfile" | |
| convert -resize 300 "$file[0]" "$outfile" | |
| done |
| make_polt = function(plot, file=NA, width=5, height=3, ...) { | |
| if (!is.na(file)) { | |
| png(paste(file, "png", sep="."), width=width, height=height, units='in', res=600, ...) | |
| print(plot) | |
| dev.off() | |
| cairo_pdf(paste(file, "pdf", sep="."), width=width, height=height, ...) | |
| print(plot) | |
| dev.off() | |
| } | |
| plot |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/sh | |
| set +e | |
| # This script just uses Ansible to bootstrap things | |
| apt-get -y install ansible wget | |
| wget -O /tmp/provision.yaml https://gist.githubusercontent.com/mdekstrand/af112b6b12c68949554f/raw/provision.yaml | |
| echo 127.0.0.1 >/tmp/inventory | |
| ansible-playbook -i /tmp/inventory --connection=local /tmp/provision.yaml |