Skip to content

Instantly share code, notes, and snippets.

View 03juan's full-sized avatar
💻

Juan Barrios 03juan

💻
View GitHub Profile
Application.put_env(:sample, Example.Endpoint,
http: [ip: {127, 0, 0, 1}, port: 5001],
server: true,
live_view: [signing_salt: "aaaaaaaa"],
secret_key_base: String.duplicate("a", 64)
)
Mix.install([
{:plug_cowboy, "~> 2.5"},
{:jason, "~> 1.0"},
@03juan
03juan / DF_error.livemd
Created April 13, 2023 09:39
livebook 0.9.1 DF error

Untitled notebook

Mix.install([
  {:kino_explorer, "~> 0.1.4"}
])
@03juan
03juan / static.diff
Last active January 28, 2022 12:27
Compare `phx_new --no-ecto --no-live static_test_site` generation between v1.6.0 and v1.6.6
diff --color=always --recursive 1.6.0 1.6.6
diff '--color=always' --recursive 1.6.0/static_test_site/assets/css/app.css 1.6.6/static_test_site/assets/css/app.css
49c49
< .phx-disconnected{
---
> .phx-loading{
52,54d51
< .phx-disconnected *{
< pointer-events: none;
< }
@03juan
03juan / randomizer.livemd
Created August 6, 2021 11:46
Simple generation of seeded, URL-safe strings

Simple generation of seeded, URL-safe strings

Module

Simplification of ahmadshah/randomizer.ex with seeded RNG.

defmodule Randomizer do
  # Generate the various lists at compile time for better performance and scalability
  @upcase Enum.to_list(?A..?Z)