Skip to content

Instantly share code, notes, and snippets.

View neslinesli93's full-sized avatar
🏠
Working from home

Tommaso neslinesli93

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am neslinesli93 on github.
  • I am neslinesli93 (https://keybase.io/neslinesli93) on keybase.
  • I have a public key whose fingerprint is 535B 9D19 B2E2 5EB0 BEF2 274F 2A9C 2A40 A67E CE7A

To claim this, I am signing this object:

create table "Tickers_Data"
(
ticker integer not null
constraint tickers_data_ticker_foreign
references "Tickers",
time date not null,
low double precision not null,
high double precision not null,
open double precision not null,
close double precision not null,

Elm 0.18, no debug

$ time ./node_modules/.bin/elm-make elm/Main.elm
Success! Compiled 278 modules.                                      
Successfully generated index.html
real    3m53.723s
user    11m27.352s
sys     11m5.195s

Elm 0.18, change the main Model

$ time ./node_modules/.bin/elm-make elm/Crash.elm 
Success! Compiled 53 modules.                                       
Successfully generated index.html
real    2m51.611s
user    8m19.937s
sys     6m31.779s
Elm 0.18 Elm 0.19
Change the main Model 2m52s 4s
Change the main Msg and Update 2m34s 4s
Change the main View 10s 1s
Elm 0.18 Elm 0.19
No debug 3m54s 7s
Debug enabled 4m10s 5s
@neslinesli93
neslinesli93 / app.js
Created September 29, 2019 11:32
Setup socket connection with Phoenix LiveView
import { Socket } from "phoenix";
import LiveSocket from "phoenix_live_view";
let liveSocket = new LiveSocket("/live", Socket);
liveSocket.connect();
@neslinesli93
neslinesli93 / mix.exs
Last active January 2, 2020 20:17
Phoenix LiveView deps
defp deps do
[
# ...other deps
{:phoenix_live_view, "~> 0.3.0"}
]
end
@neslinesli93
neslinesli93 / breakoutex_web.ex
Last active January 2, 2020 20:18
Import modules inside breakoutex_web.ex
def controller do
quote do
# ...other import/alias directives
import Phoenix.LiveView.Controller
end
end
def view do
quote do
# ...other import/alias directives