Skip to content

Instantly share code, notes, and snippets.

brendan@stubb:~/code/paperkarma/server$ git fsck | wc -l
Checking object directories: 100% (256/256), done.
Checking objects: 100% (43480/43480), done.
82
brendan@stubb:~/code/paperkarma/server$ git fsck --no-reflogs | wc -l
Checking object directories: 100% (256/256), done.
Checking objects: 100% (43480/43480), done.
85
brendan@stubb:~/code/paperkarma/server$ git gc
Counting objects: 48050, done.
(defn cap-first [s]
(loop [[w & words] (re-seq #"[^ ]+[ ]*" s)
res '()]
(if (nil? w) (clojure.string/join (reverse res))
(let [W (clojure.string/capitalize w)]
(if (not= w W)
(str (clojure.string/join (reverse res))
W
(clojure.string/join words))
(recur words (conj res w)))))))

Keybase proof

I hereby claim:

  • I am abscondment on github.
  • I am abscondment (https://keybase.io/abscondment) on keybase.
  • I have a public key whose fingerprint is 1519 0911 87F4 C057 D53F 325E 630C 15E6 BAC0 1E36

To claim this, I am signing this object:

Verifying that +abscondment is my Bitcoin username. You can send me #bitcoin here: https://onename.io/abscondment
@abscondment
abscondment / PhD-Octopus.md
Created April 2, 2015 21:01
The PhD Octopus, by William James

Excerpted from Memories and Studies at Project Gutenberg.

I. THE PH.D. OCTOPUS[1]

Some years ago we had at our Harvard Graduate School a very brilliant student of Philosophy, who, after leaving us and supporting himself by literary labor for three years, received an appointment to teach English Literature at a sister-institution of learning. The governors of this institution, however, had no sooner communicated the appointment than they made the awful discovery that they had enrolled

@abscondment
abscondment / input.txt
Created June 10, 2015 22:36
Sample mahout/spark input
19,miles_davis_kind_of_blue,purchase
19,daft_punk_discovery,purchase
19,radiohead_ok_computer_limited_edition,purchase
19,neutral_milk_hotel_in_the_aeroplane_over_the_sea,purchase
19,arcade_fire_neon_bible,purchase
20,acdc_back_in_black,purchase
30,fleetwood_mac_rumors,purchase
30,black_sabbath_paranoid,purchase
32,miles_davis_kind_of_blue,purchase
32,black_sabbath_paranoid,purchase
This file has been truncated, but you can view the full file.
19,miles_davis_kind_of_blue,purchase
19,daft_punk_discovery,purchase
19,radiohead_ok_computer_limited_edition,purchase
19,neutral_milk_hotel_in_the_aeroplane_over_the_sea,purchase
19,arcade_fire_neon_bible,purchase
20,acdc_back_in_black,purchase
30,fleetwood_mac_rumors,purchase
30,black_sabbath_paranoid,purchase
32,miles_davis_kind_of_blue,purchase
32,black_sabbath_paranoid,purchase
diff --git a/ext/edgelist.c b/ext/edgelist.c
index 2cb7dd0..ff8cef8 100644
--- a/ext/edgelist.c
+++ b/ext/edgelist.c
@@ -3,8 +3,6 @@
#include "vdefs.h"
diff --git a/ext/edgelist.c b/ext/edgelist.c
index 2cb7dd0..ff8cef8 100644
--- a/ext/edgelist.c
+++ b/ext/edgelist.c
@@ -3,8 +3,6 @@
#include "vdefs.h"
We couldn’t find that file to show.