Skip to content

Instantly share code, notes, and snippets.

Riverside wireless login info Username: ummcguest Password: guestummc

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

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'

@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)
#!/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 / 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]
@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 / leaflet.html
Last active November 5, 2022 13:57
Leaflet.js as a Whole Slide Viewer
<!DOCTYPE html>
<html>
<head>
<title>Leaflet.js as a Whole Slide Viewer</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/leaflet/0.5.1/leaflet.min.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/leaflet/0.5.1/leaflet.ie.min.css" /><![endif]-->
#!/usr/bin/python2
#
# Youtube-upload is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Youtube-upload is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#!/bin/bash
# Uses a PID file to add daemon-like behavior to an arbitrary program.
################################################################################
usage() {
echo "Usage: `basename $0` PROGRAM {start|stop|restart|force-stop|force-restart|status} [PIDFILE|PID]" >&2
echo "Where: PROGRAM is an executable file." >&2
echo " PIDFILE is the file that contains (or will contain) the PID." >&2
echo " PID is a process id to use in place of a PIDFILE." >&2
}