Skip to content

Instantly share code, notes, and snippets.

View nathanmalishev's full-sized avatar
🦹‍♂️

Nathan Malishev nathanmalishev

🦹‍♂️
View GitHub Profile
func CreateLambdaContextLocally(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
type MyCustomClaims struct {
Username string `json:"cognito:username"`
Email string `json:"email"`
// custom claims etc
jwt.StandardClaims
}
-- Press a button to generate a random number between 1 and 6.
--
-- Read how it works:
-- https://guide.elm-lang.org/effects/random.html
--
import Browser
import Html exposing (..)
import Html.Attributes exposing (class, classList, href, style)
import Html.Events exposing (..)
-- Show the current time in your time zone.
--
-- Read how it works:
-- https://guide.elm-lang.org/effects/time.html
--
-- For an analog clock, check out this SVG example:
-- https://elm-lang.org/examples/clock
--
import Browser