I hereby claim:
- I am mikebroberts on github.
- I am mikebroberts (https://keybase.io/mikebroberts) on keybase.
- I have a public key whose fingerprint is 9105 8C88 AD43 7EF2 0EDF 0B75 8242 7D3F 6D4F E458
To claim this, I am signing this object:
(ns instagram | |
"Functions to authenticate against Instagram's API. | |
See http://instagram.com/developer/authentication/ for parameter details." | |
(:require [clj-http.client :as client])) | |
(defn create-auth-url [client-id redirect-uri] | |
(str "https://api.instagram.com/oauth/authorize/?client_id=" client-id | |
"&redirect_uri=" redirect-uri | |
"&response_type=code")) |
(defn spit-to-stream [f content] | |
(with-open [w (clojure.java.io/output-stream f)] | |
(.write w content))) |
(defn remote-heroku-db-spec [host port database username password] | |
{:connection-uri (str "jdbc:postgresql://" host ":" port "/" database "?user=" username "&password=" password | |
"&ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory")}) |
before_install: cd clojurenote |
language: clojure | |
lein: lein2 | |
before_install: cd clojurenote | |
script: lein2 expectations | |
jdk: | |
- openjdk7 | |
- oraclejdk7 |
(ns slack | |
(:require [clj-http.client :as client] | |
[clojure.data.json :as json])) | |
(defn send-to-slack | |
"Sends a simple message to slack using an 'incoming webhook'. | |
url will be of form: https://myapp.slack.com/services/hooks/incoming-webhook?token=mytoken . | |
(Exact url you should use will appear on the slack integration page) | |
text will be any valid message. | |
This implementation could be expanded if you wanted to specify channel, username, etc. |
I hereby claim:
To claim this, I am signing this object:
; Should eventually create a pull-request for https://github.com/weavejester/clj-aws-s3 | |
(defn- create-copy-request [src-bucket src-key dest-bucket dest-key metadata permissions] | |
(let [req (CopyObjectRequest. src-bucket src-key dest-bucket dest-key)] | |
(when metadata | |
(.setNewObjectMetadata req (map->ObjectMetadata metadata))) | |
(when permissions | |
(.setAccessControlList req (create-acl permissions))) | |
req)) |
package io.symphonia; | |
public class SimplestLambda { | |
public void handler(String s) { | |
System.out.println("Hello, " + s); | |
} | |
} |
public SimplestLambda() { | |
} |