<...> Required field
<A|B> A or B required
[...] Optional field
[A|B] A or B optional
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bb | |
| (ns example.socket | |
| (:require [clojure.java.io :as io]) | |
| (:import | |
| java.net.UnixDomainSocketAddress | |
| java.net.StandardProtocolFamily | |
| [java.nio.channels ServerSocketChannel SocketChannel] | |
| [java.nio ByteBuffer] | |
| [java.nio.channels SocketChannel] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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")); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # a nc server thing that I was kinda curious if it would work | |
| # depends on: nc (netcat), bash 4.0(hashmaps/assoc arrays) | |
| port=4000 | |
| declare -A items | |
| items[test]="woooooo" | |
| # quick refresher: |
#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.
NewerOlder