Skip to content

Instantly share code, notes, and snippets.

{
"mod1": [
"command",
"option",
"control"
],
"mod2": [
"command",
"option",
"control",
(ns sicp-scraper.core
(:require [net.cgrand.enlive-html :as html]))
(def ^:dynamic *html-resources*
(map (fn [page-number]
(-> (str "/Users/tim/Dropbox/sicp/full-text/mitpress.mit.edu/sicp/full-text/book/book-Z-H-" page-number ".html")
clojure.java.io/file
html/html-resource))
(range 9 36)))
brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew.git
HEAD: f9d8050b3b15c272b1ec00ecacdeceda04232eb9
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit ivybridge
OS X: 10.9.2-x86_64
Xcode: 5.1.1 => /Users/tim/Applications/Xcode.app/Contents/Developer
CLT: 5.1.0.0.1.1396320587
@timvisher
timvisher / -
Last active August 29, 2015 14:04
ELISP> (setq charnock (make-hash-table))
#s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8 data
())
ELISP> (puthash 1 "a" charnock)
"a"
ELISP> (gethash 1 charnock)
"a"
ELISP> (puthash "whee" "b" charnock)
"b"
.config/NetHack4/
├── NetHack4.conf
├── curses.conf
├── dumps
│   ├── 2014-07-27\ 21:31:43,\ tim-Arc-Dwa-Fem-Law,\ died.txt
│   ├── 2014-07-28\ 01:13:21,\ tim-Arc-Dwa-Fem-Law,\ died.txt
│   ├── 2014-07-28\ 04:14:09,\ tim-Arc-Dwa-Fem-Law,\ died.txt
│   └── 2014-07-30\ 03:41:12,\ tim-Arc-Dwa-Fem-Law,\ quit.txt
├── keymap.conf
├── log
🐀
🐁
🐂
🐃
🐄
🐅
🐆
🐇
🐈
🐉
Traceback (most recent call last):
File "/home/tim/bin/random_prompt_animal", line 85, in <module>
print random.choice(prompt_animals)
UnicodeEncodeError: 'ascii' codec can't encode character u'\U0001f41e' in position 0: ordinal not in range(128)
@timvisher
timvisher / term-xterm.log
Last active August 29, 2015 14:10
TERM affecting emacs
$ echo $TERM
xterm
$ tput colors
8
$ emacs
# take screenshot
@timvisher
timvisher / -
Created November 28, 2014 04:18
Devices:
hci0 B8:EE:65:F5:E2:2F
@timvisher
timvisher / -
Created November 28, 2014 04:20
1: acer-wireless: Wireless LAN
Soft blocked: no
Hard blocked: no
2: acer-bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
3: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
6: hci0: Bluetooth