Skip to content

Instantly share code, notes, and snippets.

View kaffein's full-sized avatar
🎯
Focusing

Aina RAZAFIMAHEFA kaffein

🎯
Focusing
  • Yetibot
  • Oslo, Norway
View GitHub Profile
@yogthos
yogthos / clojure-beginner.md
Last active July 15, 2024 20:45
Clojure beginner resources

Introductory resources

@mrmcc3
mrmcc3 / tokens.clj
Created April 2, 2016 04:13
Generate Firebase JWTs in Clojure (with buddy-sign)
(ns tokens
(:require [buddy.sign.jws :as jws]
[buddy.sign.util :refer [to-timestamp]]
[clj-time.core :as time]))
;; see https://www.firebase.com/docs/rest/guide/user-auth.html#section-token-generation
(defn firebase-token
"generates a firebase JWT. (generated JWT must be less than 1024 characters)
a nil token is returned if requirements aren't met
@cb372
cb372 / jargon.md
Last active May 14, 2024 03:45
Category theory jargon cheat sheet

Category theory jargon cheat sheet

A primer/refresher on the category theory concepts that most commonly crop up in conversations about Scala or FP. (Because it's embarassing when I forget this stuff!)

I'll be assuming Scalaz imports in code samples, and some of the code may be pseudo-Scala.

Functor

A functor is something that supports map.

@xelwarto
xelwarto / jenkins_haproxy_config.cfg
Created May 25, 2015 11:49
Jenkins CI haproxy configuration example
global
chroot /var/lib/haproxy
crt-base /etc/pki/tls/certs
daemon
group haproxy
log 127.0.0.1 local0
maxconn 2000
pidfile /var/run/haproxy.pid
stats socket /var/lib/haproxy/stats
tune.ssl.default-dh-param 2048

Git Cheat Sheet

Commands

Getting Started

git init

or

@john2x
john2x / 00_destructuring.md
Last active July 9, 2024 01:38
Clojure Destructuring Tutorial and Cheat Sheet

Clojure Destructuring Tutorial and Cheat Sheet

(Related blog post)

Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.

Vectors and Sequences