Instantly share code, notes, and snippets.

View pipejine.clj
(ns pipejine.core
(:require [clojure.tools.logging :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
(:require
[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": "uber.com",
"domainAliases": [
"uber.org",
"ubercab.com"
],
"site": {
View gist:4bbb44f4fd34b72439cd53de31a274f4
/*
Theme Name: Wellington
Theme URI: https://themezee.com/themes/wellington/
Author: ThemeZee
Author URI: https://themezee.com
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: http://www.gnu.org/licenses/gpl-2.0.html
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 (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
View kv.erl
% -*- coding: utf8 -*-
%% Benchmarking code samples.
%% Each benchmark is launched in it's own process to eliminate GC influence.
-module(benchmark).
-export([main/0]).
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 david@tigertext.com +17142532851 3dd92bb0-8b35-496d-b971-a2c0b9db4bc5 2017-09-19T20:55:38Z 2017-09-19T20:55:38Z