Skip to content

Instantly share code, notes, and snippets.

@udkl
udkl / configure_shadowjar.sh
Created November 5, 2021 19:34
Shadowcljs hot reload websocket config for gitpod
#! /bin/sh
# This is a very crude way where you change the shadow cljs jar in the maven repo and repackage it
cd '/home/gitpod/.m2/repository/thheller/shadow-cljs/2.15.12'
# unzip to directory called out
unzip shadow-cljs-2.15.12-aot.jar -d out
mv shadow-cljs-2.15.12-aot.jar shadow-cljs-2.15.12-aot-backup.jar
@udkl
udkl / spec.clj
Last active April 16, 2022 23:20
;; https://www.pixelated-noise.com/blog/2020/09/10/what-spec-is/
;; API docs : https://clojure.github.io/spec.alpha/clojure.spec.alpha-api.html
;; https://practical.li/clojure/clojure-spec/
;; Guide : https://clojure.org/guides/spec
;; https://corfield.org/blog/2019/09/13/using-spec/
;; https://www.cognitect.com/blog/2017/6/19/improving-on-types-specing-a-java-library
;; Example code
;; https://github.com/practicalli/leveraging-spec
;; braidchat : core/client/store.cljs, base/state.cljc (validation interceptors)
@udkl
udkl / RAILS_CHEATSHEET.md
Last active December 23, 2021 02:37 — forked from mdang/RAILS_CHEATSHEET.md
Ruby on Rails Cheatsheet

Ruby on Rails Cheatsheet

Architecture

Create a new application

Install the Rails gem if you haven't done so before