File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1313 [ring " 1.3.1" ]
1414 [enlive " 1.1.5" ]
1515 [com.cemerick/friend " 0.2.0" ]
16+ [digest " 1.4.4" ]
1617
1718 ; ; clojurescript
1819 [org.clojure/clojurescript " 0.0-2280" ]
Original file line number Diff line number Diff line change 11(ns chatb0x.websockets
22 (:require [org.httpkit.server :refer [with-channel on-close on-receive send!]]
33 [chatb0x.user :refer :all ]
4- [cheshire.core :refer [generate-string]]))
4+ [cheshire.core :refer [generate-string]]
5+ [digest :refer [md5]]
6+ [clojure.string :as str]))
7+
8+ (defn calc-gravatar [email]
9+ (if email
10+ (str " http://www.gravatar.com/avatar/"
11+ (-> email
12+ (str/trim )
13+ (str/lower-case )
14+ (md5 )))
15+ (str " http://www.gravatar.com/avatar/" )))
516
617; ; BRADS FUNCTIONS FOR DATA
718; ; get-assigned-agents, get-unassigned-agents, get-free-agents
You can’t perform that action at this time.
0 commit comments