Colors of social brands is [here][2]
Facebook Share
http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwebsite.com&t=url%20encoded%20text
Facebook Like Button
http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwebsite.com
| (defmacro mk-named-regex-fn | |
| "Given an expression that returns a string returns a function | |
| that given a string returns nil if pattern did not match | |
| and a map of named groups if pattern matches. | |
| Usage: ((regex \"(?<name>[a-zA-Z]+)\") \"John\") => {\"name\" \"John\"}" | |
| [regex-string-expression] | |
| (let [regex-string (eval regex-string-expression) | |
| re-group-regex #"(?<!\\)(?:\\\\)*\((?:\?<(\w+)>|[^?])" | |
| pattern (re-pattern regex-string) |
| <script type="text/javascript"> | |
| var one_error_reported_via_onerror = false; | |
| var globalErrorReportHelper = function(msg, url, line, col, error) { | |
| // fallback for e.g.: IE | |
| if ( | |
| !error | |
| && | |
| typeof Error === "function" |
| (ns example.api.google | |
| (:require [cemerick.url :as url] | |
| [cheshire.core :as json] | |
| [clj-jwt.core :as jwt] | |
| [clj-jwt.key :as key] | |
| [clj-time.core :as time] | |
| [clj-http.client :as http] | |
| [clojure.string :as str]) | |
| (:import java.io.StringReader)) |
| # | |
| # Name: nginx-tls.conf | |
| # Auth: Gavin Lloyd <[email protected]> | |
| # Desc: Nginx SSL/TLS configuration for "A+" Qualys SSL Labs rating | |
| # | |
| # Enables HTTP/2, PFS, HSTS and OCSP stapling. Configuration options not related | |
| # to SSL/TLS are not included here. | |
| # | |
| # Additional tips: | |
| # |
| (ns foo.core | |
| (:refer-clojure :exclude [slurp])) | |
| (defmacro slurp [file] | |
| (clojure.core/slurp file)) | |
| ;; In CLJS | |
| (ns bar.core | |
| (:require [foo.core :include-macros true :refer [slurp]])) |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| 0-mail.com | |
| 0815.ru | |
| 0clickemail.com | |
| 0wnd.net | |
| 0wnd.org | |
| 10minutemail.com | |
| 20minutemail.com | |
| 2prong.com | |
| 30minutemail.com | |
| 3d-painting.com |
| (ns oauth.digest | |
| (:import (javax.crypto Mac) | |
| (javax.crypto.spec SecretKeySpec))) | |
| (defn hmac | |
| "Calculate HMAC signature for given data." | |
| [^String key ^String data] | |
| (let [hmac-sha1 "HmacSHA1" | |
| signing-key (SecretKeySpec. (.getBytes key) hmac-sha1) | |
| mac (doto (Mac/getInstance hmac-sha1) (.init signing-key))] |
| (ns in.grok.history.html-parser | |
| (:require [clojure.contrib.logging :as log]) | |
| (:import [org.htmlcleaner HtmlCleaner] | |
| [org.apache.commons.lang StringEscapeUtils])) | |
| (defn parse-page | |
| "Given the HTML source of a web page, parses it and returns the :title | |
| and the tag-stripped :content of the page. Does not do any encoding | |
| detection, it is expected that this has already been done." | |
| [page-src] |