Skip to content

Instantly share code, notes, and snippets.

@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

RARVM reversible/patchme
Modified 'unrar' source to dump context and disassembly.
Wrote two separate solvers since the challenge was broken.
To build the disassembler/debugger:
- unzip unrar-src-disassembler.zip -d unrar
- cd unrar
@movEAX
movEAX / gist:7794950
Last active December 30, 2015 07:19
Hg 'commit' hook implementation for auto comment link of changeset to redmine./path/to/project/.hg/hgrc[hooks]commit.autocomment = python:path/to/script.py:comment_to_redmine[redmine]url = https://...key = note = some note https://.../changeset/{rev}
# coding: utf-8
#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------
# Stdlib
import os
import re
# 3rdparty