Skip to content

Instantly share code, notes, and snippets.

View whoahbot's full-sized avatar

Dan Herrera whoahbot

  • Portland, Oregon
View GitHub Profile
@whoahbot
whoahbot / treewalk
Last active December 21, 2015 06:19 — forked from rasmusto/treewalk
(ns async-playground.core
(:require [clojure.core.async :as async
:refer [go chan >! <! >!! <!! timeout close!
thread alts! alts!! sliding-buffer]]))
(defn walk [t]
(cond (nil? t)
nil
:else
(let [[l v r] t]
@whoahbot
whoahbot / halp.md
Last active January 3, 2016 02:18 — forked from miah/halp.md

This is a sample from a tar file class I created for a chef cookbook. In this example I'm iterating over entries in the tar file. Because of the way tar handles filenames over 100 chars (././@LongLink) I have to do something to register that i'm dealing a longlink and treat the next entry differently.

I would love any advice on how to clean this up. Its a super long method, I especially don't like that I have to set full_name to nil and twice.

Code here

Tar Longlink