This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data Artist = Artist { name :: Text | |
, url :: Text | |
, description :: Text | |
, imaage :: Text | |
, socialMedia :: [SocialMedia] | |
} deriving (Show, Eq) | |
data SocialMedia a = SocialMedia { username :: Text | |
, meta :: Text | |
} deriving (Show) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns client.views.graph | |
(:require-macros [cljs.core.async.macros :refer [go]] ) | |
(:require [strokes :refer [d3]] | |
[dommy.utils :as utils] | |
[dommy.core :as dommy] | |
[cljs-time.core :as t :refer [now plus minutes hours]] | |
[cljs-time.coerce :refer [to-long from-long]] | |
[cljs.core.async :as async :refer [<! >! chan]] | |
[om.dom :as dom :include-macros true] | |
[om.core :as om :include-macros true] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn graph [app owner opts] | |
(reify | |
om/IInitState | |
(init-state [_] | |
(let [data (:data app) | |
width (:width opts) | |
height (:height opts) | |
x (-> d3 .-time (.scale) (.range [0 width])) | |
y (-> d3 .-scale (.linear) (.range [height 0])) ] | |
{:width width |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ui] | |
username = Garrett Everding | |
[extensions] | |
# enable color extension | |
color = | |
# enable extdiff extension (Extended Diff) | |
hgext.extdiff = | |
purge = | |
graphlog = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns server.analytics.segment | |
(:require [clj-http.client :as client] | |
[taoensso.timbre :as timbre] | |
[io.aviso.exception :as aviso] | |
[clojure.core.async :as async :refer (chan put! <! sliding-buffer go)] | |
[cheshire.core :refer (encode)])) | |
(timbre/refer-timbre) | |
(defonce ^:private endpoint "https://api.segment.io/v1") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
;; Configuration Layers | |
;; -------------------- | |
(setq-default | |
;; List of additional paths where to look for configuration layers. | |
;; Paths must have a trailing slash (ie. `~/.mycontribs/') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns com.geverding.hermes.cluster.core | |
(:require [mount.core :as mount] | |
[clojure.tools.logging :as log] | |
[com.rave.hermes.config :refer (config)]) | |
(:import io.atomix.core.Atomix | |
io.atomix.cluster.Node | |
io.atomix.cluster.Node$Type | |
io.atomix.messaging.Endpoint | |
)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require '[promenade.core :as prom]) | |
(defn a [x] (prom/fail (str x))) | |
(defn b [x] (inc x)) | |
(defn handle-error [failure] {:error (str "OH SNAP! " failure)}) | |
(defn one [x] (prom/either->> x a b a b)) | |
(defn two [] (prom/either->> 1 one one [handle-error])) | |
(two) | |
;; ----------------- |
OlderNewer