Robert Francis

Results 98 comments of Robert Francis

``` $ echo "{\"a\":\"a\"}" {"a":"a"} ``` Seems to return a JSON looking object. Getting the file from IPFS also looks like it returns that same object... ``` $ ipfs block...

new elixir implementation... Created a file called json.txt which only contains ``` {"a":"a"} ``` ```elixir iex(14)> file = File.read!("json.txt") "{\"a\":\"a\"}\n" iex(15)> digest2 = :crypto.hash(:sha256, file) iex(16)> {:ok, multihash2} = Multihash.encode(:sha2_256,...

This is now the same as IPFS ``` zb2rhbYzyUJP6euwn89vAstfgG2Au9BSwkFGUJkbujWztZWjZ {:ok, "zb2rhbYzyUJP6euwn89vAstfgG2Au9BSwkFGUJkbujWztZWjZ"} ``` The only difference from the first elixir implementation is that `json` variable did not have a new line,...

elixir implementation adding new line to end of json... ```elixir iex(1)> map = %{a: "a"} %{a: "a"} iex(2)> json = Jason.encode!(map) "{\"a\":\"a\"}" iex(3)> json = json "\n" "{\"a\":\"a\"}\n" iex(4)> digest...

@nelsonic Do you think that the following points have been covered... > Write comprehensive doctests that demonstrate that the code works as expected. > Create beginner-friendly examples. (we can split...

Going to work on the following points from the acceptance criteria... - [x] Re-org the Readme of this repo so the "theory" & reasoning is lower down - [x] and...

@nelsonic With regards to the following point... > Sadly, (for some reason I cannot comprehend) we don't have the discipline in @dwyl to take the answers given in issues and...

@SimonLab That is super interesting and very helpful to understand. Thanks 👍

https://github.com/dwyl/cid/pull/21 will work with an `Ecto.changeset`. Ecto changesets are structs themselves, which means that we can call `Map.from_struct/1` on a changeset and get a map. That map can then be...

@nelsonic as @Cleop mentioned above, your analysis of gitter's features comprehensive, but I'll try to add what I can. ### Features - Real time chat - Rooms - Private conversations...