This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- 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 (..) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- 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 |
OlderNewer