Skip to content

Instantly share code, notes, and snippets.

View onetom's full-sized avatar

Tamas Herman onetom

View GitHub Profile
@onetom
onetom / rpc.cljs.hl
Created September 12, 2016 15:28 — forked from micha/rpc.cljs.hl
(ns app.rpc
(:require-macros
[adzerk.env :as env])
(:require
[ui.util :as util]
[ui.paging :as p :refer-macros [defp]]
[castra.core :as castra :refer [mkremote]]))
(env/def
GEIR_BRANCH nil
@onetom
onetom / paging.clj
Created September 12, 2016 15:27 — forked from micha/paging.clj
(ns ui.paging
(:require [hoplon.core :refer (def-values)]))
(defmacro defp
[name & args]
`(def ~name (paginate ~@args)))
@onetom
onetom / dates.cljc
Created September 12, 2016 15:26 — forked from Deraen/dates.cljc
Cljc dates
(ns metosin.dates
"Use this namespace to format dates and datetimes for user.
Don't use for serializing or deserializing.
Clojure side uses always Helsinki timezone.
On Cljs side, uses the timezone of browser."
#?(:cljs (:require goog.date.UtcDateTime
goog.date.Date
goog.i18n.DateTimeFormat))
#?(:clj (:import [org.joda.time DateTimeZone])))