Mix.install([
{:differ, "~> 0.1.1"}
])
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Elixir ZA: Boost your data team's productivity with Explorer | |
```elixir | |
Mix.install( | |
[ | |
{:explorer, "~> 0.8.3"}, | |
{:kino, "~> 0.13.2"}, | |
{:kino_vega_lite, "~> 0.1.13"}, | |
{:kino_explorer, "~> 0.1.20"}, | |
{:adbc, "~> 0.6.0"}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule TravelerWeb.SearchbarLive do | |
use TravelerWeb, :live_view | |
alias Phoenix.LiveView.JS | |
alias Traveler.Places | |
def mount(_params, _session, socket) do | |
socket = assign(socket, places: []) | |
{:ok, socket, layout: false} | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
port module CandleStickComponent exposing (..) | |
import Browser | |
import Chart as C | |
import Chart.Attributes as CA exposing (dashed) | |
import Chart.Events as CE | |
import Chart.Item as CI | |
import Chart.Svg as CS | |
import Html as H exposing (Html, div, span, text) | |
import Html.Attributes exposing (class) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
centerWrap : Attribute msg | |
centerWrap = | |
Html.Attributes.class "centerWrap" | |
|> htmlAttribute | |
.centerWrap>div.wrp { | |
justify-content: center !important; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension Object { | |
static func setPropertiesToDate(in dict: [String: Any]) -> [String: Any] { | |
var dict = dict | |
for property in dateConvertibles { | |
if let dateStr = dict[property] as? String, | |
let date = dateStr.toISODate()?.date { | |
dict[property] = date | |
} else if (dict[property] as? Date) != nil { | |
continue | |
} else { |