I hereby claim:
- I am mbriggs on github.
- I am mbriggs (https://keybase.io/mbriggs) on keybase.
- I have a public key whose fingerprint is 9EF3 F6C7 DE1D C5CB 27E5 A8F9 625A B952 57A9 1190
To claim this, I am signing this object:
| (defn home-path | |
| "create a path from the home dir" | |
| [s] | |
| (str (System/getProperty "user.home") s)) |
I hereby claim:
To claim this, I am signing this object:
| (defn- deref2 [_ p] @p) | |
| (defn gather! | |
| [{:keys [queues]}] | |
| (send queues deref2 (rabbit/get-queues))) |
| (defn build-routes | |
| [{:keys [bus queues] :as app-data}] | |
| (routes | |
| (GET "/data" req | |
| ; get an http-kit websocket channel for this request | |
| (http/with-channel req req-ch | |
| ; make a channel for subscriptions to the data updated event bus | |
| (let [metrics (async/chan)] | |
| ; subscribed to all messages in the updated topic | |
| (async/sub bus :updated metrics) |
| let g:gist_clip_command = 'pbcopy' | |
| let g:gist_detect_filetype = 1 |
| import sublime | |
| import sublime_plugin | |
| import re | |
| """ | |
| ___ __ __ __ ________ __ __ | |
| / | ____/ /___/ / / /_____ / ____/ /___ / /_ ____ _/ /____ | |
| / /| |/ __ / __ / / __/ __ \ / / __/ / __ \/ __ \/ __ `/ / ___/ | |
| / ___ / /_/ / /_/ / / /_/ /_/ / / /_/ / / /_/ / /_/ / /_/ / (__ ) | |
| /_/ |_\__,_/\__,_/ \__/\____/ \____/_/\____/_.___/\__,_/_/____/ |
| def include_js(file) | |
| @_js_includes ||= {} | |
| @_js_includes[file] ||= begin | |
| manifest_path = Rails.root.join('public', 'assets', 'manifest.json') | |
| if File.exist?(manifest_path) | |
| manifest = JSON.parse(File.read(manifest_path)) | |
| path = "/assets/#{manifest[file]}" | |
| else | |
| path = "http://127.0.0.1:8080/#{file}" |
| var webpack = require('webpack'); | |
| var path = require('path'); | |
| var ManifestPlugin = require('webpack-manifest-plugin') | |
| function root(fragment){ | |
| return path.join(__dirname, "client", fragment); | |
| } | |
| module.exports = { | |
| devtool: 'source-map', |
| defmodule Autobot.Redis do | |
| import Exredis | |
| def start_link do | |
| Agent.start_link(fn -> | |
| {:ok, client} = Exredis.start_link | |
| client | |
| end, name: __MODULE__) | |
| end |