Skip to content

Commit 03552ce

Browse files
authored
Better Language Decoders (#117)
* 3.0 * not working (i am losing my mind) does Elm fail when custom types are too long? * update lockfileversion * add back my projects (working now?) * Revert "update lockfileversion" This reverts commit c241e51. * forward ports, rm some unnecessary code * update nodejs version * use env file when building * re-add devcontainers lol * rm asdf-package * elm.json updates * random updates
1 parent b366d4d commit 03552ce

File tree

10 files changed

+88
-161
lines changed

10 files changed

+88
-161
lines changed

.devcontainer/devcontainer-lock.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"features": {
3+
"ghcr.io/devcontainers/features/github-cli:1": {
4+
"version": "1.0.13",
5+
"resolved": "ghcr.io/devcontainers/features/github-cli@sha256:13b301a039ce9e0bb07d45ea0c106c946cfff01c3b9844bbec6b0c7bacba8de3",
6+
"integrity": "sha256:13b301a039ce9e0bb07d45ea0c106c946cfff01c3b9844bbec6b0c7bacba8de3"
7+
},
8+
"ghcr.io/joshuanianji/devcontainer-features/github-cli-persistence:1": {
9+
"version": "1.0.3",
10+
"resolved": "ghcr.io/joshuanianji/devcontainer-features/github-cli-persistence@sha256:757843d75915f140ec22bc16ccb5e657a910d9b1d1f445d15350a78e584d130f",
11+
"integrity": "sha256:757843d75915f140ec22bc16ccb5e657a910d9b1d1f445d15350a78e584d130f"
12+
},
13+
"ghcr.io/joshuanianji/devcontainer-features/mount-pnpm-store:1": {
14+
"version": "1.0.2",
15+
"resolved": "ghcr.io/joshuanianji/devcontainer-features/mount-pnpm-store@sha256:32f78bc711aecc2b1479143a4412461b4075c61f0d4776e74265890099a3c7f6",
16+
"integrity": "sha256:32f78bc711aecc2b1479143a4412461b4075c61f0d4776e74265890099a3c7f6"
17+
}
18+
}
19+
}

.devcontainer/devcontainer.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node
3+
{
4+
"name": "Website",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-22-bookworm",
7+
"features": {
8+
"ghcr.io/devcontainers/features/github-cli:1": {},
9+
"ghcr.io/joshuanianji/devcontainer-features/github-cli-persistence:1": {},
10+
"ghcr.io/joshuanianji/devcontainer-features/mount-pnpm-store:1": {}
11+
},
12+
"customizations": {
13+
"vscode": {
14+
"extensions": [
15+
"elmTooling.elm-ls-vscode"
16+
]
17+
}
18+
},
19+
20+
// Features to add to the dev container. More info: https://containers.dev/features.
21+
// "features": {},
22+
23+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
24+
"forwardPorts": [1234, 3000],
25+
26+
// Use 'postCreateCommand' to run commands after the container is created.
27+
// "postCreateCommand": "yarn install",
28+
29+
// Configure tool-specific properties.
30+
// "customizations": {},
31+
32+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
33+
// "remoteUser": "root"
34+
}

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"elmLS.elmPath": "lamdera",
3+
"elmLS.onlyUpdateDiagnosticsOnSave": true
4+
}

app/Route/AllProjects.elm

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
module Route.AllProjects exposing (Model, Msg, RouteParams, route, Data, ActionData)
1+
module Route.AllProjects exposing
2+
( Model, Msg, RouteParams, route, Data, ActionData
3+
, init
4+
)
25

36
{-|
47
@@ -52,21 +55,6 @@ init app shared =
5255
( {}, Effect.none )
5356

5457

55-
update :
56-
RouteBuilder.App Data ActionData RouteParams
57-
-> Shared.Model
58-
-> Msg
59-
-> Model
60-
-> ( Model, Effect.Effect Msg )
61-
update app shared msg model =
62-
( model, Effect.none )
63-
64-
65-
subscriptions : RouteParams -> UrlPath.UrlPath -> Shared.Model -> Model -> Sub Msg
66-
subscriptions routeParams path shared model =
67-
Sub.none
68-
69-
7058
type alias Data =
7159
{ -- top 3 "pinned" projects
7260
featured : List Project

app/Route/Index.elm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ module Route.Index exposing (ActionData, Data, Model, Msg, footer, route)
22

33
import BackendTask exposing (BackendTask)
44
import BackendTask.File
5-
import Color.Manipulate
65
import Colours
76
import Css exposing (..)
87
import Effect exposing (Effect)

elm.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"elm-version": "0.19.1",
99
"dependencies": {
1010
"direct": {
11-
"MaybeJustJames/yaml": "2.1.4",
11+
"MaybeJustJames/yaml": "2.1.5",
1212
"NoRedInk/elm-json-decode-pipeline": "1.0.1",
1313
"avh4/elm-color": "1.0.0",
1414
"danfishgold/base64-bytes": "1.1.0",
@@ -39,7 +39,7 @@
3939
"ianmackenzie/elm-triangular-mesh": "1.1.0",
4040
"ianmackenzie/elm-units": "2.10.0",
4141
"jluckyiv/elm-utc-date-strings": "1.0.0",
42-
"joshuanianji/github-language-colors": "2.1.0",
42+
"joshuanianji/github-language-colors": "4.0.0",
4343
"justinmimbs/date": "4.1.0",
4444
"mdgriffith/elm-codegen": "4.2.2",
4545
"miniBill/elm-codec": "2.2.0",
@@ -48,7 +48,7 @@
4848
"robinheghan/fnv1a": "1.0.0",
4949
"rtfeldman/elm-css": "18.0.0",
5050
"rtfeldman/elm-iso8601-date-strings": "1.1.4",
51-
"the-sett/elm-syntax-dsl": "6.0.2",
51+
"the-sett/elm-syntax-dsl": "6.0.3",
5252
"turboMaCk/non-empty-list-alias": "1.4.0",
5353
"vito/elm-ansi": "10.0.1"
5454
},
@@ -70,10 +70,10 @@
7070
"ianmackenzie/elm-interval": "3.1.0",
7171
"ianmackenzie/elm-units-interval": "3.2.0",
7272
"mdgriffith/elm-ui": "1.1.8",
73-
"miniBill/elm-unicode": "1.1.0",
73+
"miniBill/elm-unicode": "1.1.1",
7474
"robinheghan/murmur3": "1.0.0",
7575
"rtfeldman/elm-hex": "1.0.0",
76-
"stil4m/elm-syntax": "7.3.2",
76+
"stil4m/elm-syntax": "7.3.8",
7777
"stil4m/structured-writer": "1.0.3",
7878
"the-sett/elm-pretty-printer": "3.1.0"
7979
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"postinstall": "elm-tooling install",
66
"dev": "dotenvx run -- elm-pages dev",
77
"build": "elm-pages build",
8-
"serve": "pnpm build && http-server ./dist -a localhost -p 3000 -c-1"
8+
"serve": "dotenvx run -- pnpm build && http-server ./dist -a localhost -p 3000 -c-1"
99
},
1010
"devDependencies": {
1111
"@dotenvx/dotenvx": "1.28.0",

projects.yml

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21

32
# === FEATURED
43

@@ -20,7 +19,7 @@
2019
languages:
2120
- C++
2221
- C
23-
- ANTLR4
22+
- ANTLR
2423
concepts:
2524
- MLIR & LLVM
2625
- Compiler Theory
@@ -32,7 +31,7 @@
3231
blurb: Multi-arch, multi-distro Docker images for Idris 2
3332
githubRepo: joshuanianji/idris-2-docker
3433
languages:
35-
- Docker
34+
- Dockerfile
3635
concepts:
3736
- Github Actions
3837
displayType: featured
@@ -59,8 +58,8 @@
5958
link: https://reformed-22an6t4ebq-uc.a.run.app/
6059
githubRepo: 3iq-hacks/the-conversationalist
6160
languages:
62-
- Typescript
63-
- Docker
61+
- TypeScript
62+
- Dockerfile
6463
concepts:
6564
- GCP
6665
- React/Next.JS
@@ -74,7 +73,7 @@
7473
link: https://mathgpt-3iq-hacks.vercel.app/
7574
githubRepo: 3iq-hacks/mathgpt
7675
languages:
77-
- Typescript
76+
- TypeScript
7877
- Python
7978
concepts:
8079
- React/Next.JS
@@ -115,8 +114,8 @@
115114
blurb: A Discord bot to rank nerdiness. Currently hosted on an Oracle Cloud VM.
116115
githubRepo: joshuanianji/nerd-bot
117116
languages:
118-
- Typescript
119-
- Docker
117+
- TypeScript
118+
- Dockerfile
120119
concepts:
121120
- Discord.js
122121
- PostgreSQL
@@ -129,7 +128,7 @@
129128
link: https://imposter-detector.vercel.app/
130129
githubRepo: 3iq-hacks/imposter-detector-2022
131130
languages:
132-
- Javascript
131+
- JavaScript
133132
- Python
134133
concepts:
135134
- GCP
@@ -156,7 +155,7 @@
156155
link: https://math-tts.vercel.app/
157156
githubRepo: 3iq-hacks/math-tts
158157
languages:
159-
- Typescript
158+
- TypeScript
160159
- Python
161160
concepts:
162161
- API
@@ -189,16 +188,3 @@
189188
- DataStructures
190189
displayType: other
191190
mobile: false
192-
193-
- id: hiit-timer
194-
name: HIIT-Timer
195-
blurb: A customizable PWA that times your workouts.
196-
link: https://joshuaji.com/HIIT-Timer/
197-
githubRepo: joshuanianji/HIIT-Timer
198-
languages:
199-
- Elm
200-
concepts:
201-
- PWA
202-
displayType: other
203-
mobile: true
204-

src/Icosahedron.elm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Literally hardcoding an icosahedron for Elm-3d-scene to render
77
import Angle exposing (Angle)
88
import Browser.Events
99
import Camera3d
10-
import Colours
1110
import Color exposing (Color)
1211
import Duration exposing (Duration)
1312
import Html.Styled exposing (Html, fromUnstyled)

0 commit comments

Comments
 (0)