Skip to content

Instantly share code, notes, and snippets.

( advice from @johnmyleswhite; ministorm starts with https://twitter.com/johnmyleswhite/status/766657182582513666 )

I keep planning on writing a post about contributing to OSS effectively, but I'm starting to doubt I ever will. So here's some tweets.

  1. Credibility is everything. People are busy, so they heavily use personal trust to inform their decisions. You must become credible.

  2. Credibility starts with technical competence, rather than shared aesthetics. Do not start contributing by engaging in design debates.

# bash function
defcomp () {
local name="$1" && shift
local functionName="$( echo "${name}_completion" | tr - _ )"
source <(cat <<EOM
$functionName () {
local cur
_get_comp_words_by_ref -n =: cur
COMPREPLY=( \$(compgen -W "\$( $@ )" -- "\$cur") )
}
@eentzel
eentzel / wait-for.clj
Last active December 12, 2015 02:38 — forked from mrowe/wait-for.clj
;; Based on a queue polling function from Chas Emerick's bandalore:
;; https://github.com/cemerick/bandalore/blob/master/src/main/clojure/cemerick/bandalore.clj#L124
(defn wait-for
"Invoke predicate every interval (default 10) seconds until it returns true,
or timeout (default 150) seconds have elapsed. E.g.:
(wait-for #(< (rand) 0.2) :interval 1 :timeout 10)
Returns nil if the timeout elapses before the predicate becomes true, otherwise
# more docs: http://ffmpeg.org/ffmpeg.html
FRAME_RATE=20
ffmpeg -r $FRAME_RATE -pattern_type glob -i "frame_*.png" anim.mp4
open List
let num_devs = 20
let failure_rate = 0.20
let build_time = (15. (* mins *) /. 60.) (* hours *)
let commit_wait_timeslots = 4. /. build_time (* on average *)
let working_hours = 8.
let num_timeslots = working_hours /. build_time |> int_of_float
type build_status = Idle | Building | Pass | Retry | Fail