Skip to content

Instantly share code, notes, and snippets.

View bdunnette's full-sized avatar
💭
🤔

Brian Dunnette bdunnette

💭
🤔
View GitHub Profile
if (Meteor.isServer) {
Accounts.onCreateUser(function(options, user) {
// Create blank user.emails field if it doesn't already exist
user.emails = user.emails || [];
if (user.services && user.services.google) {
// Add Google email address to user.emails - fixes issues with some packages that expect this field, e.g. yogiben-admin
user.emails.push({
address: user.services.google.email,
verified: user.services.google.verified_email
});
twbs:bootstrap
ian:accounts-ui-bootstrap-3
fortawesome:fontawesome
zimme:active-route
lbee:moment-helpers
momentjs:moment
aldeed:collection2
aldeed:autoform
#!/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