Skip to content

Instantly share code, notes, and snippets.

View bdunnette's full-sized avatar
💭
🤔

Brian Dunnette bdunnette

💭
🤔
View GitHub Profile
@bdunnette
bdunnette / qgs.html
Last active December 16, 2015 15:19
Calculate a Quantitative Gleason Score
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Quantitative Gleason Score</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<style>body, input {font-size: xx-large; font-family: sans-serif;}</style>
</head>
<body>
GS3: <input type="number" id="gs3" size=2 maxlength=3 placeholder="90"><br/>
@bdunnette
bdunnette / mesh-tree-parse.py
Last active December 15, 2015 20:41
Parse an NLM MeSH Trees file into something usable as a Drupal taxonomy
from __future__ import print_function
# The data comes from the NLM's MeSH Trees file, which can be downloaded here: https://www.nlm.nih.gov/mesh/filelist.html
tree_file = open('mtrees2013.bin')
tree_outfile = open('mtrees2013-parsed.txt', 'w')
tree_array = {}
for row in tree_file.readlines():
#print(row)
# The 'index' of the term is whatever follows the semicolon
term_index = row[row.find(';') + 1:len(row) - 1]
#!/usr/bin/env ruby
# Aside from removing Ruby on Rails specific code this is taken verbatim from
# mislav's git-deploy (http://github.com/mislav/git-deploy) and it's awesome
# - Ryan Florence (http://ryanflorence.com)
#
# Install this hook to a remote repository with a working tree, when you push
# to it, this hook will reset the head so the files are updated
if ENV['GIT_DIR'] == '.'
@bdunnette
bdunnette / About.txt
Created February 15, 2012 15:06
Demonstration of the difference between printing web fonts via Firefox and Chromium
Here's a demonstration of the difference between printing web fonts in Firefox 10.0.1 and Chromium 16.0.912.77 (both on Ubuntu 11.10)

EB Unowned query

Owner = 'Nobody' AND 'CF.Bank' LIKE 'EAST' AND Status != 'resolved' AND Queue = 'servicedesk' AND 'CF.{Support_Method}' NOT LIKE 'Tech Admin' AND 'CF.{Support_Method}' NOT LIKE 'Service Desk' AND 'CF.{Support_Method}' NOT LIKE 'Immediate'

Markdown Cheatsheet

Header 1

Header 2

Header 3 ### (Hashes on right are optional)

Header 4

Header 5

Markdown plus h2 with a custom ID ## {#id-goes-here}

Link back to H2

Riverside wireless login info Username: ummcguest Password: guestummc