Instantly share code, notes, and snippets.

David Liman dvliman

View GitHub Profile
View pipejine.clj
(ns pipejine.core
(:require [ :as log]
[clojure.stacktrace :as st])
(:import [java.util.concurrent LinkedBlockingQueue CountDownLatch TimeUnit]
[org.slf4j MDC]))
(defn new-queue
"Create and initialize a new queue"
[{:keys [name queue-size number-of-consumer-threads number-of-producers partition time-out]
:or {name (gensym name), queue-size 1, number-of-consumer-threads 1,
View async_util.clj
(ns your.namespace.async-util
[clojure.core.async :as a :refer [>! <! >!! <!! go chan buffer
close! thread alts! alts!! timeout]]
[clojure.core.match :as match :refer [match]]))
;; core.async util fns
View enrichment.json
"id": "3f5d6a4e-c284-4f78-bfdf-7669b45af907",
"name": "Uber",
"legalName": "Uber Technologies, Inc.",
"domain": "",
"domainAliases": [
"site": {
View gist:4bbb44f4fd34b72439cd53de31a274f4
Theme Name: Wellington
Theme URI:
Author: ThemeZee
Author URI:
Description: Wellington is a clean and simple Magazine WordPress theme with beautiful typography and subtle colors. The theme includes two different post layouts, a featured post slider and thoughtful theme settings in the Customizer.
Version: 1.3
License: GNU General Public License v2 or later
License URI:
Text Domain: wellington
View cat.c
/* cat -- concatenate files and print on the standard output.
Copyright (C) 1988-2018 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
View gist:f98392d44558a3905710ae85cb5027da
to uninstall java:
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane
sudo rm -fr ~/Library/Application\ Support/Java
to uninstall jdk:
sudo rm -rf /Library/Java/JavaVirtualMachines/[version].jdk
View gist:cd2d3316edf2c852d2a4df86cd2a2781
openssl pkcs8 -in keypair.pem -inform PEM -outform DER -topk8 -nocrypt | openssl sha1 -c
View main.go
package main
import (
View kv.erl
% -*- coding: utf8 -*-
%% Benchmarking code samples.
%% Each benchmark is launched in it's own process to eliminate GC influence.
main() ->
% {Test name, TestFun1, TestFun2, Constructor}
% Constructor runtime isn't counted
View schedules.csv
user_token username user_email user_phone role_token stime etime
3dd92bb0-8b35-496d-b971-a2c0b9db4bc5 david +17142532851 3dd92bb0-8b35-496d-b971-a2c0b9db4bc5 2017-09-19T20:55:38Z 2017-09-19T20:55:38Z