Skip to content

Instantly share code, notes, and snippets.

View parkerl's full-sized avatar

Lew Parker parkerl

  • Rxrevu Inc.
  • Denver, CO, USA
View GitHub Profile
@parkerl
parkerl / gist:557ccc9f5bf23ab5b589
Last active August 29, 2015 14:21
poolboy error
± > mix deps.compile -I-
Uncaught error in rebar_core: {'EXIT',
{badarg,
[{re,split,
[[118,99,115,95,105,110,102,111,95,109,115,
103,95,48,95,61,40,37,70,123,99,121,97,
110,125,109,97,115,116,101,114,37,123,27,
91,51,52,109,37,125,64,37,70,123,121,101,
108,108,111,119,125,57,50,98,49,100,48,51,
37,102,37,70,123,114,101,100,125,9679,37,
@parkerl
parkerl / where_error.exs
Last active October 21, 2015 18:53
error
defp escape(expr, type, params, binding, env) when is_list(expr) do
{parts, params} =
Enum.map_reduce(expr, %{}, fn {field, value}, acc ->
{value, params} = Builder.escape(value, {0, field}, acc, binding, env)
{{:==, [], [to_field(field), value]}, params}
end)
IO.inspect parts
expr = Enum.reduce parts, &{:and, [], [&1, &2]}
{expr, params}
@parkerl
parkerl / gist:d0205eb0be9a5feb0eb6f2934c4fa9ed
Last active July 19, 2019 20:04
Insurance plan response
{
"insurances": [{
"affiliations": ["Anthem", "WellPoint"],
"insuranceplanname": "BCBS-CO: ANTHEM BCBS OF CO",
"insurancepackageid": 12059,
"addresslist": ["PO BOX 5747 DENVER CO 80217-5747"]
}, {
"affiliations": ["Anthem", "Taft Hartley", "WellPoint"],
"insuranceplanname": "BCBS-CT: ANTHEM BCBS",
"insurancepackageid": 2559,
[{
"patientid": "37651"
}]
[{
"insurancepolicyholdercountrycode": "USA",
"sequencenumber": 1,
"insuranceplanname": "BCBS-CO: ANTHEM BCBS OF CO",
"insurancetype": "Group Policy",
"insurancepolicyholderlastname": "MAGEE",
"insurancephone": "(888) 817-3717",
"insurancepackagestate": "CO",
"insurancepackagecity": "DENVER",
"insuredentitytypeid": 1,