Skip to content

Instantly share code, notes, and snippets.

View Dangercoder's full-sized avatar
🔍

Emil Dangercoder

🔍
View GitHub Profile
@Dangercoder
Dangercoder / clojure-clr-ubuntu-setup.sh
Created May 23, 2023 17:08
shell script for setting up .NET 7 and clojure-clr on Ubuntu
#!/bin/bash
# Download the Microsoft package
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
# Install the package
sudo dpkg -i packages-microsoft-prod.deb
# Remove the package
rm packages-microsoft-prod.deb
@Dangercoder
Dangercoder / auth.clj
Created November 21, 2020 18:42
Pedestal JWT authentication interceptor
(ns interceptors.auth
(:require [cheshire.core :as json]
[clojure.spec.alpha :as s]
[clojure.walk :refer [postwalk]]
[clojure.core.async :as a])
(:import (java.net URL)
(com.auth0.jwk GuavaCachedJwkProvider UrlJwkProvider)
(com.auth0.jwt.interfaces RSAKeyProvider ECDSAKeyProvider)
(com.auth0.jwt.algorithms Algorithm)
(com.auth0.jwt JWT)
@Dangercoder
Dangercoder / example.cljs
Created June 7, 2019 15:10
Material UI from Clojurescript
(ns example.login.views
(:require
[re-frame.core :as rf]
[example.login.subs :as subs]
[example.login.events :as events]
["@material-ui/core/Button" :default mui-button]
["@material-ui/core/Dialog" :default dialog]
["@material-ui/core/DialogTitle" :default dialog-title]
["@material-ui/core/DialogContent" :default dialog-content]
["@material-ui/core/DialogActions" :default dialog-actions]