Skip to content

Instantly share code, notes, and snippets.

@joedaniels29
joedaniels29 / format.rb
Created November 21, 2013 16:12
Format3.rb
module Format
def self.pad_mrn(mrn)
if mrn.to_i != 0
mrn.rjust(7, "0")
else
nil
end
end
def self.clean_patient_name_vital(name)
@joedaniels29
joedaniels29 / reports_helper.rb
Created November 25, 2013 22:17
Url for radconnect :)
def url_for_radconnect(options)
"radconnect://infosheet/?acc=#{options[:accession]}&mrn=#{options[:mrn]}"
end
define(function, exports, module) {
var View = require('famous/core/View');
var Entity = require('famous/core/Entity');
var Modifier = require('famous/core/Modifier');
var Transform = require('famous/core/Transform');
var Transitionable = require('famous/transitions/Transitionable');
var TransitionableTransform = require('famous/transitions/TransitionableTransform');
function FlexGrid() {
View.apply(this, arguments);
function startServersR(){
if [[ -z $1 ]]; then
echo "No port Supplied. Default to 3000/4000";
1=0;
fi
rails s -p$(expr 3000 + $1) &
}
function startServersE(){
if [[ -z $1 ]]; then
set-option -g default-shell /bin/zsh
bind-key C-c run-shell 'tmux save-buffer - | reattach-to-user-namespace pbcopy'
bind-key C-v run-shell 'reattach-to-user-namespace pbpaste | tmux load-buffer - \; paste-buffer -d'
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e'"
source "/usr/local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf"
set -g mouse on
#set -g mode-mouse on
{
"Profiles": [
{
"Set Local Environment Vars" : true,
"Working Directory" : "\/Users\/Joe",
"Prompt Before Closing 2" : 0,
"Selected Text Color" : {
"Green Component" : 0.9017454,
"Blue Component" : 0.9017454,
"Red Component" : 0.9017454
<?xml version="1.1" encoding="UTF-8"?>
<!DOCTYPE keyboard SYSTEM "file://localhost/System/Library/DTDs/KeyboardLayout.dtd">
<!--Created by Ukelele version 2.2.8 on 2014-07-15 at 11:58 (EDT)-->
<!--Last edited by Ukelele version 3.0.5.81 on 2016-08-12 at 13:41 (GMT-4)-->
<keyboard group="126" id="-17407" name="U.S." maxout="1">
<layouts>
<layout first="0" last="17" mapSet="16c" modifiers="f4"/>
<layout first="18" last="18" mapSet="984" modifiers="f4"/>
<layout first="21" last="23" mapSet="984" modifiers="f4"/>
<layout first="30" last="30" mapSet="984" modifiers="f4"/>
<?xml version="1.0"?>
<root>
<item>
<name>Remap Escape Functions</name>
<appendix>Optional Description of Setting</appendix>
<identifier>Unique Identifier of Setting</identifier>
<autogen>__SimultaneousKeyPresses__ KeyCode::ESCAPE, ConsumerKeyCode::BRIGHTNESS_DOWN, KeyCode::F1</autogen>
<autogen>__SimultaneousKeyPresses__ KeyCode::ESCAPE, ConsumerKeyCode::BRIGHTNESS_UP, KeyCode::F2</autogen>
<autogen>__SimultaneousKeyPresses__ KeyCode::ESCAPE, KeyCode::EXPOSE_ALL, KeyCode::F3</autogen>
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
def default_pods
pod 'AFNetworking', '~> 2.5'
pod 'FHSegmentedViewController', '~> 1.2'
pod 'MMMaterialDesignSpinner'
pod 'Fabric'
pod 'GoogleConversionTracking'
pod 'Crashlytics'
module.exports = function(grunt) {
// configure the tasks
grunt.initConfig({
//pkg: grunt.file.readJSON('package.json'),
clean: {
all: ['Epilepsy/Resources/HTMLContent']
},