Skip to content

Instantly share code, notes, and snippets.


Avi Flax aviflax

View GitHub Profile
ybiquitous / skip-ci-on-actions.yml
Last active Feb 9, 2021
How to "[skip ci]" on GitHub Actions
View skip-ci-on-actions.yml
# See also:
# -
# -
# -
# -
name: "[skip ci]" on Actions
on: [push, pull_request]
AlexVPopov / clojure.spec cheat
Last active Feb 21, 2020
A cheat sheet for clojure.spec
View clojure.spec cheat

clojure.spec cheat sheet



(ns my.ns
  (:require [clojure.spec.alpha :as s]))
jffry / gen.clj
Created Nov 18, 2019
Clojure/conj 2019 Schedule
View gen.clj
;; Run me with:
;; clojure -Sdeps '{:deps {org.jsoup/jsoup {:mvn/version "1.12.1"}}}' gen.clj
(require '[clojure.string :as str])
(import (java.time.format DateTimeFormatter)
(java.time LocalDate LocalTime ZoneId ZonedDateTime)
(java.util UUID)
(org.jsoup Jsoup)
(org.jsoup.nodes Document))
mhart / ci.yml
Last active May 23, 2022
GitHub Actions running 5 tslint jobs in parallel (each tests every 5th file)
View ci.yml
name: CI
on: [push]
runs-on: ubuntu-latest
job: [0, 1, 2, 3, 4]
mhart /
Created Sep 28, 2019
Simple module caching script, for CI or similar
#!/bin/bash -ex
# Tries to download latest cached node_modules based on package-lock.json
# If it can't, then `npm ci` and push up node_modules to cache
# Assumes S3_BUCKET env var has been set, and that `aws` credentials
# are configured (either in env, or ~/.aws/credentials)
CHECKSUM=$(sha256sum package-lock.json | awk '{print $1}')
ericnormand / 00_script.clj
Last active Mar 27, 2022
Boilerplate for running Clojure as a shebang script
View 00_script.clj
#_DEPS is same format as deps.edn. Multiline is okay.
{:deps {clj-time {:mvn/version "0.14.2"}}}
#_You can put other options here
bhb /
Last active Jan 15, 2022
Clojure friendly mode, inspired by
afeld /
Last active Aug 27, 2019
archive inactive GitHub repositories in an organization
sudodoki / flatten-maps.clj
Last active Jun 9, 2020
Flatten nested maps using clojure / clojurescript using compound keys
View flatten-maps.clj
(defn get-key
[prefix key]
(if (nil? prefix)
(str prefix "-" key)))
(defn flatten-map-kvs
([map] (flatten-map-kvs map nil))
([map prefix]
(fn [memo [k v]]
itod /
Last active Jun 20, 2022
Every "split" mechanical keyboard currently being sold that I know of