I hereby claim:
- I am benschza on github.
- I am benjaminscholtz (https://keybase.io/benjaminscholtz) on keybase.
- I have a public key ASDlJzoWde2DfffLlXuW-AGdpfH6RLFRFAGcJnkpbewYvQo
To claim this, I am signing this object:
| packageOverrides = self: super: { | |
| # OSError: AF_UNIX path too long | |
| nose = super.nose.overridePythonAttrs (oldAttrs: { !pkgs.stdenv.isDarwin; }); | |
| }; | |
| python = (pkgs.python36.override {inherit packageOverrides;}).withPackages (pkgs: with pkgs; [ | |
| numpy # One of these packages depend on nose | |
| pandas | |
| ]); |
| <%= f = form_for :select_user_type, "#", [phx_change: :select_user_type, phx_value_id: creds.id, class: "ui form"] %> | |
| <%= select(f, :role, ["Admin": "admin", "User": "user"]) %> | |
| </form> | |
| def handle_event("select_user_type", %{"select_user_type" => %{"role" => role}}, socket) do | |
| IO.inspect socket.assigns | |
| {:noreply, socket} | |
| end | |
| <form action="#" class="ui form" method="post" phx-change="select_user_type" phx-value-id="1"> |
| let | |
| default = import ./default.nix {}; | |
| pkgs = default.pkgs; | |
| python = default.python; | |
| pythonPackages = default.pythonPackages; | |
| in { | |
| ... | |
| } |
| def unzip3(enumerable) do | |
| {list1, list2, list3} = | |
| Enum.reduce(enumerable, {[], [], []}, fn {el1, el2, el3}, {list1, list2, list3} -> | |
| {[el1 | list1], [el2 | list2], [el3 | list3]} | |
| end) | |
| {:lists.reverse(list1), :lists.reverse(list2), :lists.reverse(list3)} | |
| end |
| {dates, counts} = CountByDateQuery.row_counts_by_date() | |
| |> App.Repo.all() | |
| |> Enum.with_index() | |
| |> Enum.map(fn {{date, count}, index} -> | |
| {:ok, date} = Timex.parse(date, "%b %Y", :strftime) | |
| {Timex.to_unix(date), count} | |
| end) | |
| |> Enum.sort() | |
| |> Enum.unzip() |
| data = %{"key1" => %{sub_key: :a}, "key2" => %{"sub_key1" => %{"sub_key" => "a"}, "sub_key2" => :a}} | |
| defmodule Flatten do | |
| def flat(data, acc) when is_bitstring(data) or is_atom(data), do: {acc, data} | |
| def flat({key, value}, acc) do | |
| flat(value, | |
| case acc do | |
| "" -> key | |
| _ -> acc <> "." <> "#{key}" | |
| end |
I hereby claim:
To claim this, I am signing this object:
| //Write your own contracts here. Currently compiles using solc v0.4.15+commit.bbb8e64f. | |
| pragma solidity ^0.5.7; | |
| /** | |
| * @title SafeMath | |
| * @dev Math operations with safety checks that revert on error | |
| */ | |
| library SafeMath { | |
| /** |
| debug(development:0x225810e0...)> v | |
| TypeError: Cannot read property 'id' of undefined | |
| at step (/home/bscholtz/.node_modules/lib/node_modules/truffle/build/webpack:/~/babel-runtime/helpers/asyncToGenerator.js:17:1) | |
| at Generator.next (<anonymous>) | |
| at /home/bscholtz/.node_modules/lib/node_modules/truffle/build/webpack:/packages/truffle-debugger/dist/debugger.js:3135:1 | |
| at Session.view (/home/bscholtz/.node_modules/lib/node_modules/truffle/build/webpack:/packages/truffle-debugger/dist/debugger.js:3031:1) | |
| at /home/bscholtz/.node_modules/lib/node_modules/truffle/build/webpack:/~/reselect/lib/index.js:36:1 | |
| at /home/bscholtz/.node_modules/lib/node_modules/truffle/build/webpack:/~/reselect/lib/index.js:86:1 | |
| at args (/home/bscholtz/.node_modules/lib/node_modules/truffle/build/webpack:/~/reselect-tree/index.js:209:1) | |
| at Function.<anonymous> (/home/bscholtz/.node_modules/lib/node_modules/truffle/build/webpack:/~/reselect/lib/index.js:36:1) |
| # https://wiki.archlinux.org/index.php/Installing_Arch_Linux_on_ZFS | |
| wifi-menu | |
| ping archlinux.org | |
| timedatectl set-ntp true | |
| # https://wiki.archlinux.org/index.php/GNU_Parted | |
| parted /dev/nvme0n1 | |
| > mklabel gpt |