Skip to content

Instantly share code, notes, and snippets.

View p-himik's full-sized avatar

Eugene Pakhomov p-himik

View GitHub Profile
@reborg
reborg / rich-already-answered-that.md
Last active May 12, 2025 12:44
A curated collection of answers that Rich gave throughout the history of Clojure

Rich Already Answered That!

A list of commonly asked questions, design decisions, reasons why Clojure is the way it is as they were answered directly by Rich (even when from many years ago, those answers are pretty much valid today!). Feel free to point friends and colleagues here next time they ask (again). Answers are pasted verbatim (I've made small adjustments for readibility, but never changed a sentence) from mailing lists, articles, chats.

How to use:

  • The link in the table of content jumps at the copy of the answer on this page.
  • The link on the answer itself points back at the original post.

Table of Content

@mmathys
mmathys / vimeo-vod.md
Last active May 5, 2025 15:26
Download Vimeo VOD (video on demand)

How to download vimeo VOD for offline usage

Variant 1: yt-dlp

Using yt-dlp (thank you @ayyucedemirbas!)

You must have a Vimeo account, do not sign in via Google or anything else, yt-dlp asks for your email address and password to log in.

You must install the yt-dlp via the command below (for MacOS):

#!/bin/sh
#_(
true; exec clj -J-Xmx256M -J-XX:-OmitStackTraceInFastThrow -Sdeps "`sed -n -e '/;;(DEPS$/,/;;DEPS)$/p' $0`" -M -i $0 -e '(user/main)'
)
(ns user
#?(:cljs (:require-macros [user :as m]))
(:require
#?@(:clj ([cljs.build.api :as cljs]
@eerohele
eerohele / xpath.clj
Created February 14, 2023 13:04
Clojure XPath
(set! *warn-on-reflection* true)
(require '[clojure.edn :as edn])
(require '[clojure.core.protocols :refer [Datafiable]])
(require '[clojure.datafy :as datafy])
(require '[clojure.java.io :as io])
(import '(java.io StringReader PushbackReader))
(import '(java.time LocalDateTime))
(import '(java.time.format DateTimeFormatter))