Skip to content

Instantly share code, notes, and snippets.

View kreas's full-sized avatar
:shipit:
Heathen

Tim Warren kreas

:shipit:
Heathen
View GitHub Profile
{
subtypes: { ... },
frequency_id: value,
frequency: { ... },
description: string,
code: string,
category_id: value,
category: { ... },
sections: [
{
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Maintainer:
" Tim Warren
" http://github.com/kreas
"
" Version:
" 1.1 - 2016-08-12
"
" Sections:
" * Vundle Packages & Setup
defmodule Just do
defstruct value: nil
end
defmodule Nothing do
defstruct value: nil
end
defmodule Maybe do
defstruct id: :nothing, value: nil
order = Order.find(id)
order.address = order.patient.address unless order.address
order.save
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Maintainer:
" Tim Warren
" http://github.com/kreas
"
" Version:
" 1.1 - 2016-08-12
"
" Sections:
" * Vundle Packages & Setup
{
"meta_data": {
"total_pages": 229,
"total_entries": 2283,
"page_size": 10,
"page_number": 2,
},
"data": [
{
"user_defined_fields": {
# From the rails productio console
# Set up the client connection to Twilio
client = Twilio::REST::Client.new TWILIO_SID, TWILIO_TOKEN
# Get the "main" queue, or the queue where a call is stuck.
main = Twilio::CallQueue.get_queue("main")
# You can see how many calls are in the queue by running
main.current_size
SUBTYPE_DEFINITIONS = {
# Indor Modular AHU
'23.73.13': {
min_outdoor_damper: {
descritpion: "Min Outdoor Damper?",
type: "boolean",
required: false,
column_name:
},
integral_return_fan: {
# Add WalkIn to the headers
headers <- c("AccountNumber", "FirstName", "LastName", "PhoneNumber","MobileNumber", "Email", "DOB", "StreetAddress",
"City", "State", "Zip", "InsuranceCompany", "Insurance", "ProductCode", "ItemID",
"ItemName", "ServiceDate", "EligibilityDate", "SleepCoach", "DelayedActivationDate","Branch","Qty", "Allowable", "WalkIn")
# Add this block somewhere in for processor before rm(patients) Bright Tree
output$WalkIn <- sapply(patients$Sales.Order.Detail.Proc.Code, function(code){
walk.in.codes <- c('A7027', 'A7028', 'A7029', 'A7030', 'A7031', 'A7032', 'A7033', 'A7034')
if (code %in% walk.in.codes) T else F
})
@kreas
kreas / result.rb
Last active February 26, 2016 05:05
<Event id: 130,
user_guid: "5e843530-a5cb-11e5-bf7f-feff819cdc9f",
parameters: {
"guid"=>"1f49bfbd-232f-45f4-a406-ff671a1b111e",
"eventGuid"=>"1f49bfbd-232f-45f4-a406-ff671a1b111e",
"eventName"=>"jj",
"weather_deg"=>"80",
"priority_rate"=>"",
"rooms_on_peak"=>"200",
"sf_account_id"=>"",