Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
echo "Extracting HTML Files"
for f in ~/*.zip
do
unzip -o "$f" '*.html'
done
zl=0

VXM

Proof-of-concept HLA virtual crossmatch in the browser

@bdunnette
bdunnette / start-a-free-geek.md
Last active August 29, 2015 14:22
Notes on starting a Free Geek (or similar social-benefit tech organization)

Starting a Free Geek

There's a lot involved in starting any small business - even (maybe especially!) if your business is not-for-profit (like a Free Geek).

People

Place

Plutus1

@bdunnette
bdunnette / svs2tif.sh
Last active August 29, 2015 14:20
Output SVS files in standard TIFF format
#Process SVS files
for s in *.svs
do
i="${s%.*}"
echo "Processing $s"
width=`vips im_header_int Xsize $s`
height=`vips im_header_int Ysize $s`
echo "$width px wide, $height px high"
# Export slide label as PNG
vips openslideload --associated label $s $i-label.png
@bdunnette
bdunnette / start-couchdb.sh
Last active March 15, 2016 14:06
Start CouchDB in a crouton chroot
sudo mkdir /var/run/couchdb && sudo couchdb -b -A /etc/couchdb/
@bdunnette
bdunnette / index.html
Last active October 29, 2015 16:27
Mary's Ghost: An attempt at formatting poetry with CSS
<!DOCTYPE HTML>
<head>
<link href='http://fonts.googleapis.com/css?family=Old+Standard+TT:400,700' rel='stylesheet' type='text/css'>
<style>
body {
font-family: 'Old Standard TT', serif;
}
h1,
h2,
#!/bin/bash
melt $1 -filter volume:"normalise" -consumer xml:$1.mlt video_off=1 all=1
melt $1.mlt -consumer avformat:$1-normalized.mp4 properties=MPEG-4
@bdunnette
bdunnette / case-numbers.css
Created December 16, 2014 15:00
CSS to add case numbering to ordered lists
ol {counter-reset: item; list-style-type: none;}
ol li:before {font-weight: bold; content: 'Case ' counter(item, decimal) ': '; counter-increment: item;}
@bdunnette
bdunnette / start-angular-couchapp.sh
Last active August 29, 2015 14:10
Start a basic Couchapp using AngularJS & CornerCouch
#!/bin/bash
couchapp generate $1
cd $1/_attachments
rm -Rf script/ style/
rm index.html
wget https://github.com/angular/angular-seed/archive/master.zip
unzip master.zip
mv angular-seed-master/app/* .
mv angular-seed-master/bower.json ..
rm -Rf master.zip angular-seed-master/