Skip to content

Instantly share code, notes, and snippets.

@knewter
knewter / Comments.md
Last active June 15, 2016 19:04 — forked from billyboozer/Comments.md
Issue with compiling react native
@knewter
knewter / gist:4b50ec39187affdedce7
Last active January 11, 2016 18:32 — forked from adamrobbie/gist:f821f3c95e4a3185c4c2
HRFlow discussion
My current understanding of the process..
- 1 upload excel
- 2 hrflow creates form collector and a set of participant flows
- 3 form collector sends emails to participants with a link to the appropriate HRFORM
- upon completion of the partiicpant form, HRForms uses the completionURL to let us know
- if they have a spouse (unsure from the weird payload how this is deteremined, marriage status etc), we should send an email to the spouse with another HRForm url
- JOSH: (we should get this from marriage status - I was checking for spouse email I think?)
- upon that completion we'll receive another post to our submitform endpoint and fetch the data again and send the event along to the participant flow.
- eventually we want the participant fsm to complete with a signed boolean, unsure when this is determined as from the code this is assumed to happen.
- JOSH: This happens when we get their data back at all at present, if there is no spouse. if there is a spouse, this happens when we get the spouse's
@knewter
knewter / contact_test.exs
Created October 8, 2015 12:24
ecto many to many query
# -*- c-basic-offset: 2; indent-tabs-mode: nil -*-
defmodule Score.ContactTest do
use Score.TestCase
@joe %{name: "joe", email: "joe@vipaar.com", sign_in_count: 0}
@joe_changeset User.changeset(%User{}, :create, @joe)
@bob %{name: "bob", email: "bob@vipaar.com", sign_in_count: 0}
@bob_changeset User.changeset(%User{}, :create, @bob)
setup do
@knewter
knewter / gist:f4e0a9ba82938ed520fa
Created July 29, 2015 19:44
elixir hipe with o3 failure
$ ERL_COMPILER_OPTIONS="[native,{hipe, [verbose, o3]}]" make compile 2>&1 | tee -a hipe_compile_out_o3.log
==> elixir (compile)
==> elixir (compile)
<HiPE (v 3.12)> Compiling: 'Elixir.Kernel'
<HiPE (v 3.12)> Options: [verbose,icode_range,
{regalloc,coalescing},
icode_range,icode_ssa_const_prop,
icode_ssa_copy_prop,icode_type,icode_inline_bifs,
rtl_lcm,rtl_ssa,rtl_ssa_const_prop,spillmin_color,
@knewter
knewter / gist:533d22eb69ef1036c22a
Created July 29, 2015 19:00
trying to compile elixir with HiPE
$ ERL_COMPILER_OPTIONS="[native,{hipe, [verbose, o2]}]" make 2>&1 | tee -a hipe_compile_out_o2.log
==> elixir (compile)
<HiPE (v 3.12)> Compiling: elixir_utils
<HiPE (v 3.12)> Compiling: elixir_bitstring
<HiPE (v 3.12)> Options: [verbose,icode_range,icode_ssa_const_prop,
icode_ssa_copy_prop,icode_type,icode_inline_bifs,
rtl_lcm,rtl_ssa,rtl_ssa_const_prop,spillmin_color,
use_indexing,remove_comments,concurrent_comp,
binary_opt,inline_fp,pmatch,peephole,verbose].
@knewter
knewter / keybase.md
Created February 10, 2015 21:42
keybase.md

Keybase proof

I hereby claim:

  • I am knewter on github.
  • I am knewter (https://keybase.io/knewter) on keybase.
  • I have a public key whose fingerprint is 854F D28D 107D FC49 5796 7D9C C109 EC6A 5335 C910

To claim this, I am signing this object:

[jadams:~/erlang/erlagi] feature/rebar3(+1/-8)* 6s ± DEBUG=1 ./rebar3 compile
===> Consult config file "rebar.config"
===> Consult config file "rebar.lock"
===> Verifying dependencies...
===> Consult config file "/home/jadams/erlang/erlagi/_build/lib/lager/rebar.config"
===> Consult config file "/home/jadams/erlang/erlagi/_build/lib/lager/rebar.lock"
===> Consult config file "/home/jadams/erlang/erlagi/_build/lib/covertool/rebar.config"
===> Consult config file "/home/jadams/erlang/erlagi/_build/lib/covertool/rebar.lock"
===> sh info:
cwd: "/home/jadams/erlang/erlagi"
[jadams:~/erlang/erlagi] feature/rebar3(+6/-1)* ± ./rebar get-deps
escript: exception error: undefined function rebar:main/1
in function escript:run/2 (escript.erl, line 752)
in call from escript:start/1 (escript.erl, line 276)
in call from init:start_it/1
in call from init:start_em/1
[jadams:~/erlang/erlagi] feature/rebar3(+6/-1)* ± ./rebar3 get-deps
===> Plugin rebar_covertool not available. It will not be used.
===> Command 'get-deps' not found
[jadams:~/erlang/erlagi] feature/rebar3* 3s ± DEBUG=1 ./rebar3 compile
===> Consult config file "rebar.config"
===> Consult config file "rebar.lock"
===> error function_clause
===> Plugin rebar_covertool not available. It will not be used.
===> Verifying dependencies...
===> Consult config file "/home/jadams/erlang/erlagi/_build/lib/lager/rebar.config"
===> Consult config file "/home/jadams/erlang/erlagi/_build/lib/lager/rebar.lock"
===> Consult config file "/home/jadams/erlang/erlagi/_build/lib/covertool/rebar.config"
[jadams:~/erlang/erlagi] feature/rebar3* 8s ± ./rebar3 compile DEBUG=1
===> Plugin rebar_covertool not available. It will not be used.
===> Verifying dependencies...
===> Updating covertool
===> WARNING: It is recommended to use {branch, Name}, {tag, Tag} or {ref, Ref}, otherwise updating the dep may not work as expected.
===> Compiling rebar
===> Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace