Skip to content

Instantly share code, notes, and snippets.

View carlgleisner's full-sized avatar

Carl Gleisner carlgleisner

View GitHub Profile
@carlgleisner
carlgleisner / 1_searchbar_live.ex
Created August 6, 2025 06:09 — forked from caspg/1_searchbar_live.ex
Example of real-time search bar implementation in Phoenix LiveView and Tailwind. Working example on https://travelermap.net/parks/usa
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
@carlgleisner
carlgleisner / Nework_throttling_profiles.md
Created May 12, 2023 16:11 — forked from theodorosploumis/Nework_throttling_profiles.md
Web development - Custom network throttling profiles
Profile download (kb/s) upload (kb/s) latency (ms)
Native 0 0 0
GPRS 50 20 500
56K Dial-up 50 30 120
Mobile EDGE 240 200 840
2G Regular 250 50 300
2G Good 450 150 150
3G Slow 780 330 200