<...> Required field
<A|B> A or B required
[...] Optional field
[A|B] A or B optional| (import '[java.util Timer TimerTask]) | |
| (defn debounce | |
| ([f] (debounce f 1000)) | |
| ([f timeout] | |
| (let [timer (Timer.) | |
| task (atom nil)] | |
| (with-meta | |
| (fn [& args] | |
| (when-let [t ^TimerTask @task] |
| #!/bin/sh -- | |
| # \ | |
| exec jq -Crf "$0" -- "$@" | |
| def children: | |
| objects | | |
| .path as $p | | |
| (.firstChild | objects | .path = $p + "/1"), | |
| (.secondChild | objects | .path = $p + "/2") | | |
| select(has("id")); |
| #!/usr/bin/env python | |
| # Made by 'Mirko van der Waal' | |
| # Distributed under terms of the MIT license. | |
| from random import randint | |
| from sys import argv, exit | |
| import getopt | |
| mews = [ | |
| # 3 |
Put links inside codeblocks on GitHub:
<pre>
import { assign, map } from '<a href="https://www.npmjs.com/package/lodash" title="Lodash on npm">🇪</a>';
<a href="https://lodash.com/docs#assign" title="assign documentation">assign</a>({ 'a': 1 }, { 'b': 2 }, { 'c': 3 });
// → { 'a': 1, 'b': 2, 'c': 3 }
<a href="https://lodash.com/docs#map" title="map documentation">map</a>([1, 2, 3], function(n) { return n * 3; });
// → [3, 6, 9] rsync (Everyone seems to like -z, but it is much slower for me)
- a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
- H: preserves hard-links
- A: preserves ACLs
These are my notes on instaling NixOS 16.03 on a Lenovo ThinkPad X1 Carbon (4th generation) with an encrypted root file system using UEFI.
Most of this is scrambled from the following pages:
#IRC Reference
Not intended as a guide for newbies, more like a "cheat sheet" for the somewhat experienced IRC user, especially one who wields some power over a channel.
##The Basics
/join #channel- Joins the specified channel.
/part #channel- Leaves the specified channel.
| #!/usr/bin/python | |
| import ctypes | |
| import os | |
| import sys | |
| def err_exit( msg ): | |
| print >> sys.stderr, msg | |
| sys.exit(1) |
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 below in the summary jumps at the answer on this page.
- The link on the question itself points back at the original post.
Summary