Skip to content

Instantly share code, notes, and snippets.

Avatar

Brandon Burke brandonburke

View GitHub Profile
View gist:585478a2b420f235e22cf9b15183a7d5
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...
View gist:8d59a14ac07ccc4f7f4d732274184676
https://app-staging.myintakes.com/inbound/?GlobalCallID=<<GlobalCallID>>&MobilePhoneNumber=<<MobilePhoneNumber>>&PhoneNumber=<< PhoneNumber>>&AgentID=<<AgentID>>&From=<<From>>&To=<<To>>&TicketID=<<TicketID>>&TokenID=<<TokenID>>&CaseID=<<CaseID>>
View gist:9f6f3d963ed9722e5a9853aa15e98ee5
### 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:
View 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":
View gist:4180fc10813f5ffc0983
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 Nov 13, 2014
Needles query with concatenated insurance types.
View gist:f116aa9ed0263c0bd6ee
SELECT cases.casenum, (SELECT LIST(policy_type,' , ') FROM insurance where cases.casenum = insurance.case_num) as insurance_types
FROM cases
WHERE cases.casenum = 12345
View gist:5756609
development:
adapter: sqlite3
database: db/development.sqlite3
pool: 5
timeout: 5000
production:
adapter: sqlite3
database: db/production.sqlite3
pool: 5
@brandonburke
brandonburke / .tmux.conf
Created Jul 2, 2012
My .tmux.conf file
View .tmux.conf
#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
You can’t perform that action at this time.