Skip to content

Instantly share code, notes, and snippets.

View ampersanda's full-sized avatar
❤️
.clj

Lucky Pradana ampersanda

❤️
.clj
View GitHub Profile
@ampersanda
ampersanda / media_query_extension.dart
Created April 20, 2020 17:19 — forked from slightfoot/media_query_extension.dart
Media Query Extension - by Simon Lightfoot
// MIT License
//
// Copyright (c) 2020 Simon Lightfoot
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@ampersanda
ampersanda / deps.edn
Created June 9, 2019 14:25 — forked from athos/deps.edn
Try `clojure -Sdeps '{:deps {hello-clojure {:git/url "https://gist.github.com/athos/b68b15b08efedffaf14d8c020b125202" :sha "1c9a05106171f97f9b8e8ac8f58c7bd8dbe021f9"}}}' -m hello-clojure` on your terminal
{:paths ["."]
:deps {clansi {:mvn/version "1.0.0"}}}
@ampersanda
ampersanda / figwheel-garden.core.cljs
Created August 7, 2018 10:16 — forked from zehnpaard/figwheel-garden.core.cljs
Minimal setup to get lein-garden auto-compile and Figwheel auto-load working with Reagent
(ns figwheel-garden.core
(:require
[reagent.core :as r]))
(defn my-app []
[:div
[:h1 "Hello Reagent!"]
[:p "Hello Garden!"]
[:p.my-class "Hello My-Class!"]])
(ns example.core
(:require [bidi.bidi :as bidi]
[goog.events :as events]
[clojure.string :as cstr]))
(defn start! [on-set-page routes]
(letfn [(handle-route []
(let [uri (cstr/replace js/location.hash "#" "")]
(->> (if-not (empty? uri) uri "/")