Skip to content

Instantly share code, notes, and snippets.

View robert-stuttaford's full-sized avatar
💭
Clojure!

Robert Stuttaford robert-stuttaford

💭
Clojure!
View GitHub Profile
@geoff-kruss
geoff-kruss / peerwatch.clj
Last active February 23, 2017 19:14
Datomic peer CloudWatch metrics
; Metric callback handler for pushing Datomic metrics to CloudWatch
;
; http://docs.datomic.com/monitoring.html
;
; Instructions:
; 1) Add CloudWatch sdk to your project.clj
;
; [com.amazonaws/aws-java-sdk-cloudwatch "1.11.6"]
;
; 2) Specify the handler function as the metrics callback handler with a java opt at run time
@hugoduncan
hugoduncan / gist:2839891
Created May 31, 2012 00:41
OAuth with friend and oauthentic
(ns myapp.authenticate.oauth
"OAuth authentication"
(:require
[cheshire.core :as json]
[clj-http.client :as http]
[clojure.string :as string]
[clojure.tools.logging :as logging])
(:use
[oauthentic.core :only [build-authorization-url fetch-token]]
[ring.util.response :only [redirect]]