Skip to content

Instantly share code, notes, and snippets.

View adamdicarlo0's full-sized avatar
🕴️
we really need to catch that red dot

Adam DiCarlo adamdicarlo0

🕴️
we really need to catch that red dot
View GitHub Profile
@adamdicarlo0
adamdicarlo0 / PageNotFound.elm
Last active April 28, 2025 18:34
Elm Pages entry point for AWS Lambda using API GatewayV2 integration
{- app/Route/PageNotFound.elm (delegates actual view to shared logic in another module) -}
module Route.PageNotFound exposing (Model, Msg, RouteParams, route, Data, ActionData)
{-|
@docs Model, Msg, RouteParams, route, Data, ActionData
-}
import BackendTask
@adamdicarlo0
adamdicarlo0 / AddRoute.elm
Created November 21, 2023 17:43
elm-pages AddRoute script modified for elm-css
module AddRoute exposing (run)
import BackendTask
import Cli.Option as Option
import Cli.OptionsParser as OptionsParser
import Cli.Program as Program
import Elm
import Elm.Annotation as Type
import Elm.Case
import Elm.Declare
@adamdicarlo0
adamdicarlo0 / flake.nix
Created September 13, 2023 16:58
aws-sam-cli nix flake to update to newer version
{
description = "CLI tool for local development and testing of Serverless applications";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs = inputs@{ flake-parts, nixpkgs, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {