GitHub Repo Report and Analysis, for: https://www.thestackcanary.com/launch-your-ai-app-in-48-hours/
Mix.install(
[
{:req, "~> 0.4.0"},
{:json, "~> 1.4"},
{:instructor, github: "acalejos/instructor_ex"},Mix.install(
[
{:req, "~> 0.4.0"},
{:json, "~> 1.4"},
{:instructor, github: "acalejos/instructor_ex"},| { | |
| "editor.autoIndent": "advanced", | |
| "editor.codeActionsOnSave": { | |
| "source.fixAll.eslint": true | |
| }, | |
| "files.associations": { | |
| "*.html.eex": "html-eex", | |
| "*.html.leex": "html-eex" | |
| }, | |
| "[elixir]": { |
| defmodule ActiveLinkWeb.Components.ActiveLinkView do | |
| use Phoenix.Component | |
| import Phoenix.Controller, only: [current_path: 1] | |
| def active_link(assigns) do | |
| %{conn: conn, href: href} = assigns | |
| link_name = | |
| case href |> String.split("/") do | |
| ["", ""] -> "home" |
| defmodule Advent do | |
| @moduledoc """ | |
| How to use it: | |
| 1. Uncomment which `@proof` you want to run against - part I or part II | |
| 2. Uncomment correct `@last_coord` for target coordinate | |
| 3. Decide if you want to expand it or not (check docstring in `run/1), and pipe that result into `Advent.run/1`, | |
| instead of just calling `Advent.run/1` | |
| Metrics: |
| import 'phoenix_html' | |
| // assets/js/app.js | |
| import { Socket } from 'phoenix' | |
| import { LiveSocket } from 'phoenix_live_view' | |
| let liveSocket = new LiveSocket('/live', Socket, { | |
| params: { _csrf_token: csrfToken }, | |
| ... |