Skip to content

Instantly share code, notes, and snippets.

View mikera's full-sized avatar

Mike Anderson mikera

View GitHub Profile
@lynxluna
lynxluna / fb-lite.clj
Created August 17, 2014 05:17
Minimalist Facebook Graph API Client
;; Depends on clj-http and cheshire
(ns com.ykode.social.fb-lite
(:require [clj-http.client :as client]
[cheshire.core :refer [parse-string]]))
(defn- fburl [ext] (str "https://graph.facebook.com/" ext))
(defn- auth-get
[access-token url]
(ns ical.core
(:require
[om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]
[sablono.core :as html :refer-macros [html]]))
(enable-console-print!)
(def weekdays ["saturday" "monday" "tuesday" "wednesday" "thursday" "friday" "sunday"])
@rogerallen
rogerallen / 0_tweegeemee.txt
Last active August 29, 2015 14:22
twee gee mee archive
Archive of the code for images posted to https://twitter.com/tweegeemee
Learn more at https://github.com/rogerallen/tweegeemee
@rogerallen
rogerallen / 0_tweegeemee.txt
Last active August 30, 2015 19:59
twee gee mee archive
Archive of the code for images posted to https://twitter.com/tweegeemee
Learn more at https://github.com/rogerallen/tweegeemee
@rogerallen
rogerallen / 0_tweegeemee.txt
Last active November 9, 2015 04:20
twee gee mee archive
Archive of the code for images posted to https://twitter.com/tweegeemee
Started Aug 30, 2015
Learn more at https://github.com/rogerallen/tweegeemee
anonymous
anonymous / ArrayGet.java
Created April 1, 2016 13:25
package bench;
import org.openjdk.jmh.annotations.*;
import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.MethodType;
import java.lang.invoke.MutableCallSite;
import java.util.concurrent.TimeUnit;
import java.util.stream.IntStream;
@joinr
joinr / dataset.clj
Created August 30, 2017 10:51
Extending incanter's dataset protocols to a different implementation from spork.util.table
;;Compatibility layer to extend spork.util.table usage
;;into incanter datasets (as of 1.9.1).
;;Since datasets are now based on an API in clojure.core.matrix,
;;we can extend the API to use our table functions. This should
;;eliminate the trouble we've have processing incanter
;;datasets effeciently, since we can parse spork tables
;;using schemas.
(ns proc.dataset
(:require [spork.util [table :as tbl]]
[clojure.core.matrix.protocols :as mp]