Skip to content

Instantly share code, notes, and snippets.

View select_textarea.html
<textarea rows="10" cols="50" onclick="this.focus();this.select()" readonly="readonly">
example text
</textarea>
@jakebathman
jakebathman / Fluent.filter.php
Last active Oct 1, 2015
Flient.filter.php update
View Fluent.filter.php
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
* Filter Fluent: Create fluent style for multi-level object access.
*
* PHP version 5
*
* LICENSE: This source file is subject to version 3.0 of the PHP license
* that is available through the world-wide-web at the following URI:
* http://www.php.net/license/3_0.txt. If you did not receive a copy of
@jakebathman
jakebathman / nflPick.php
Last active Sep 30, 2015
NFL Game Picker (random)
View nflPick.php
<?php
$arrMap = array(
"gameId" => "eid",
"gsis" => "gsis",
"day" => "d",
"time" => "t",
"status" => "q",
"homeAbb" => "h",
"homeName" => "hnn",
"homeScore" => "hs",
@jakebathman
jakebathman / install-tmux
Last active Nov 16, 2015 — forked from rothgar/install-tmux
Install tmux 2.0 on rhel/centos 6
View install-tmux
# Install tmux on Centos release 6.5
# Forked from https://gist.github.com/rothgar/cecfbd74597cc35a6018
# which lists the steps for installing tmux 1.9
# install deps
yum install gcc kernel-devel make ncurses-devel
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
curl -OL https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
@jakebathman
jakebathman / Self-signed cert bash commands
Last active Nov 25, 2016
Add self-signed certificate for nginx server
View Self-signed cert bash commands
##########
#
# Replace full.domain.com with your domain
#
# This is tested on CentOS 6.x, but might work similarly on other OS installations
#
##########
# Generate a key
openssl genrsa -out "/etc/nginx/ssl/full.domain.com.key" 2048
@jakebathman
jakebathman / icd_regex.md
Last active Apr 8, 2021
ICD-9 and ICD-10 code regex
View icd_regex.md

ICD code matching regex

The regex patterns below only help validate when something is not valid ICD-10 or ICD-9. They do not ensure that the code exists. You should consult a list of valid ICD codes for that level of verification.

ICD-10-CM list: https://gist.github.com/jakebathman/063c50cb9772e4bfc864a9e1ff4ccc8d

ICD-9 list: https://gist.github.com/jakebathman/f1ed0d473f12091a708243b0ddf03d82

ICD-10/ICD-9 combined regex

Useful for validating field values that could contain both, and may or may not use decimals

View keybase.md

Keybase proof

I hereby claim:

  • I am jakebathman on github.
  • I am jakebathman (https://keybase.io/jakebathman) on keybase.
  • I have a public key whose fingerprint is 3891 05D9 9B00 89CA 6185 734B 6AB7 BF82 DEE3 ADC0

To claim this, I am signing this object:

@jakebathman
jakebathman / icd-10-cm.txt
Last active May 12, 2019
ICD-10-CM codes
View icd-10-cm.txt
A00
A00.0
A00.1
A00.9
A01
A01.0
A01.00
A01.01
A01.02
A01.03
@jakebathman
jakebathman / icd-9-cm.txt
Last active Apr 3, 2019
ICD-9-CM code list
View icd-9-cm.txt
0010
0011
0019
0020
0021
0022
0023
0029
0030
0031
@jakebathman
jakebathman / IDLE-ish Dark.tmtheme
Last active Oct 11, 2017
Custom dark theme for Sublime Text 3
View IDLE-ish Dark.tmtheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>author</key>
<string>Jake Bathman</string>
<key>name</key>
<string>IDLE-ish Dark</string>
<key>settings</key>
<array>