Skip to content

Instantly share code, notes, and snippets.

@soequi
soequi / elm-types-glossary.md
Created November 6, 2022 03:54 — forked from JoelQ/elm-types-glossary.md
Elm Type Glossary

Elm Types Glossary

There's a lot of type terminology and jargon going around when discussing types in Elm. This glossary attempts to list some of the most common type terms along with synonyms, terms from other language communities, examples, and links to more detailed articles on each topic.

@soequi
soequi / firebase.cljs
Created October 6, 2022 15:54
clojurescript firebase auth
(ns utils.firebase
(:require [promesa.core :as p]
[cljs-bean.core :refer [bean ->js]]
[goog.object :as gobj]
["firebase/app" :refer [initializeApp]]
["firebase/firestore" :refer [getFirestore doc serverTimestamp setDoc]]
["firebase/auth" :refer [getAuth createUserWithEmailAndPassword updateProfile]]))
(def firebase-config (bean #js {:apiKey "xxxx"
:authDomain "xxxx"
@soequi
soequi / app.cljs
Last active October 1, 2022 07:06
cljs fetch
(ns nomadcoders.frontend.app
(:require
[cljss.core :refer-macros [defstyles]]
[helix.core :refer [defnc $]]
[helix.dom :as d]
[helix.hooks :as hooks]
[promesa.core :as p]
[goog.object :as gobj]
["react-dom/client" :as rdom]))