Skip to content

Instantly share code, notes, and snippets.

View danluu's full-sized avatar

Dan Luu danluu

  • https://danluu.com
  • Vancouver, BC
View GitHub Profile
(defun reset-swank ()
"Because changing swank-clojure-extra-classpaths is not enough
to force a new instance of slime to use it."
(interactive)
(setq slime-lisp-implementations
(assq-delete-all 'clojure slime-lisp-implementations))
(add-to-list 'slime-lisp-implementations
`(clojure ,(swank-clojure-cmd) :init swank-clojure-
init) t))
@danluu
danluu / config.log
Last active December 19, 2015 04:38
brew libgphoto2
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by libgphoto2 photo camera library configure 2.5.2, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/libgphoto2/2.5.2 CFLAGS=-D_DARWIN_C_SOURCE
## --------- ##
## Platform. ##
@danluu
danluu / gist:0c2a11714a73406134e7
Created March 1, 2015 16:21
Programming blog RSS export
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<body>
<outline text="Programming" title="Programming">
<outline type="rss" text="tedu" title="tedu" xmlUrl="http://www.tedunangst.com/flak/rss" htmlUrl="http://www.tedunangst.com/flak/"/>
<outline type="rss" text="David Dalrymple" title="David Dalrymple" xmlUrl="http://davidad.github.io/atom.xml" htmlUrl="http://davidad.github.io/"/>
<outline type="rss" text="Dan Luu" title="Dan Luu" xmlUrl="http://danluu.com/atom.xml" htmlUrl="http://danluu.com/"/>
<outline type="rss" text="Leah Hanson" title="Leah Hanson" xmlUrl="http://blog.leahhanson.us/feeds/atom.xml" htmlUrl="http://blog.leahhanson.us/"/>
<outline type="rss" text="James Long" title="James Long" xmlUrl="http://feedpress.me/jlongster" htmlUrl="http://jlongster.com/"/>
@danluu
danluu / manifest.txt
Created October 31, 2016 22:52
BitFunnel manifest
/tmp/wikipedia/AA/wiki_00
/tmp/wikipedia/AA/wiki_01
/tmp/wikipedia/AA/wiki_02
/tmp/wikipedia/AA/wiki_03
/tmp/wikipedia/AA/wiki_04
/tmp/wikipedia/AA/wiki_05
/tmp/wikipedia/AA/wiki_06
/tmp/wikipedia/AA/wiki_07
/tmp/wikipedia/AA/wiki_08
/tmp/wikipedia/AA/wiki_09
https://bitfunnel.blob.core.windows.net/sample-data/queries.txt
@danluu
danluu / gist:2aa77c4da2a6ced3f28c4a3ac8971b46
Created November 16, 2016 20:21
NativeCode.AndRowJzDelta0
Thread 1 "PlanTest" received signal SIGSEGV, Segmentation fault.
0x00000000004ac958 in BitFunnel::MatchTreeCompiler::Run(unsigned long, void* const*, unsigned long, long const*, BitFunnel::ResultsBuffer&) ()
(gdb) bt
#0 0x00000000004ac958 in BitFunnel::MatchTreeCompiler::Run(unsigned long, void* const*, unsigned long, long const*, BitFunnel::ResultsBuffer&) ()
#1 0x0000000000499ac9 in BitFunnel::NativeCodeVerifier::Verify(char const*) ()
#2 0x0000000000499fb5 in BitFunnel::NativeCode_AndRowJzDelta0_Test::TestBody() ()
#3 0x000000000050f2dd in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) ()
#4 0x00000000004f36c9 in testing::Test::Run() ()
#5 0x00000000004f4710 in testing::TestInfo::Run() ()
#6 0x00000000004f4e33 in testing::TestCase::Run() ()
iTerm2 tmux iTerm2 Terminal.app Hyper alacritty iTerm2 tmux emacs-eshell emacs-eshell emacs-term
43.63 43.69 17.97 42.64 22.62 37.24 50.48 28.81
37.68 37.53 17.70 55.61 31.03 30.71 49.97 35.56
28.14 31.12 17.06 48.53 20.59 29.41 50.40 26.84
25.75 17.69 17.54 56.50 22.11 18.57 17.55 35.53
28.26 64.49 17.80 44.50 31.70 57.34 56.55 27.64
62.71 56.15 20.93 56.82 21.79 50.28 13.89 39.38
57.74 48.22 20.00 47.13 31.43 51.34 57.83 27.98
46.95 50.58 17.13 57.99 22.36 39.50 14.44 35.71
47.94 38.88 17.42 64.42 21.52 39.44 50.46 31.43
iTerm2 Hyper alacritty Terminal.app emacs-eshell emacs-term st
42.44 43.33 26.99 4.89 7.18 13.59 43.59
43.34 27.75 27.85 5.49 4.99 10.49 54.81
44.73 30.35 28.13 5.46 5.00 12.97 45.07
48.19 29.14 29.96 5.52 5.09 13.12 26.26
45.91 42.40 31.52 5.55 5.04 13.08 41.60
47.51 29.04 32.93 5.62 4.99 12.96 35.66
50.24 30.31 33.64 5.69 5.09 10.71 39.47
50.80 32.90 32.14 5.49 4.95 12.98 38.42
54.30 31.44 32.76 5.47 4.99 10.47 38.94
Terminal.app iTerm2 Hyper alacritty emacs-eshell emacs-term st
5.68 40.50 18.61 31.18 5.51 10.41 25.98
6.64 42.96 29.54 26.59 10.29 27.68 17.90
6.49 47.54 27.10 25.50 13.34 29.22 40.33
13.27 42.66 28.48 24.18 13.71 30.73 50.23
17.67 45.50 28.93 28.07 16.63 29.96 26.47
5.17 46.00 27.12 26.39 10.89 25.59 47.98
13.50 41.08 27.90 17.80 14.00 28.44 28.24
16.26 44.70 43.26 26.06 14.49 33.40 53.06
6.58 45.32 35.28 22.02 13.59 3.01 28.05
@danluu
danluu / tested.txt
Last active October 31, 2019 07:40
Devices tested
Phones / handhelds
===========================
pixel
iphone 6
one plus 3t
iphone 6s
iphone 3gs
iphone 4s
iphone 7
blackberry 10?