Skip to content

Instantly share code, notes, and snippets.

View brandonburke's full-sized avatar

Brandon Burke brandonburke

View GitHub Profile
Tried the followng query, which was wrong...
> response = connection.post(
> headers: headers,
> path: '/Intakes',
> query: { PrimaryStaff: ["9f6c77f2-d1bd-4382-8ad0-ab7b00f80c2b"], FolderType: 0 }
> )
=> #<Excon::Response:0x00007fa65dd3ad00 @data={:body=>"{\"Message\":\"Object reference not set to an instance of an object.\"}"
Then tried body and convert to json which I’m pretty sure should be correct...
https://app-staging.myintakes.com/inbound/?GlobalCallID=<<GlobalCallID>>&MobilePhoneNumber=<<MobilePhoneNumber>>&PhoneNumber=<< PhoneNumber>>&AgentID=<<AgentID>>&From=<<From>>&To=<<To>>&TicketID=<<TicketID>>&TokenID=<<TokenID>>&CaseID=<<CaseID>>
### Keybase proof
I hereby claim:
* I am brandonburke on github.
* I am brandonburke (https://keybase.io/brandonburke) on keybase.
* I have a public key whose fingerprint is 98B6 A782 48F5 D564 6CE6 6B9D 0744 A6D3 BD48 B9DF
To claim this, I am signing this object:
@brandonburke
brandonburke / .tmux.conf
Created July 2, 2012 03:17
My .tmux.conf file
#reload tmux conf with Prefix + r
bind r source-file ~/.tmux.conf \; display "Reloaded tmux.conf"
#reset prefix to Control+a
set -g prefix C-a
unbind C-b
#update tmux escape time
set -sg escape-time 1
@brandonburke
brandonburke / formio
Created February 28, 2019 20:13
formio
{"_id":"57aa1d2a5b7a477b002717fe","machineName":"examples:example","modified":"2017-05-09T15:55:13.060Z","title":"Example","display":"form","type":"form","name":"example","path":"example","project":"5692b91fd1028f01000407e3","created":"2016-08-09T18:12:58.126Z","components":[{"input":false,"html":"<h1><a href=\"https://form.io\">Form.io</a> Example Form</h1>\n\n<p>This is a dynamically rendered JSON form&nbsp;built with <a href=\"https://form.io\">Form.io</a>. Using a simple&nbsp;drag-and-drop form builder, you can create any form that includes e-signatures, wysiwyg editors, date fields, layout components, data grids, surveys, etc.</p>\n","type":"content","conditional":{"show":"","when":null,"eq":""}},{"input":false,"columns":[{"components":[{"tabindex":"1","tags":[],"clearOnHide":true,"hidden":false,"input":true,"tableView":true,"inputType":"text","inputMask":"","label":"First Name","key":"firstName","placeholder":"Enter your first name","prefix":"","suffix":"","multiple":false,"defaultValue":"","protected":
development:
adapter: sqlite3
database: db/development.sqlite3
pool: 5
timeout: 5000
production:
adapter: sqlite3
database: db/production.sqlite3
pool: 5
require 'sinatra'
require 'wemo'
set :port, 9494
set :bind, '192.168.2.8'
switches = WeMo.light_switches
foyer = switches.find {|s| s.name == "Foyer Light" }
porch = switches.find {|s| s.name == "Porch Light" }
get '/foyer/on' do
@brandonburke
brandonburke / gist:f116aa9ed0263c0bd6ee
Created November 13, 2014 18:35
Needles query with concatenated insurance types.
SELECT cases.casenum, (SELECT LIST(policy_type,' , ') FROM insurance where cases.casenum = insurance.case_num) as insurance_types
FROM cases
WHERE cases.casenum = 12345