Skip to content

Instantly share code, notes, and snippets.

View pasviegas's full-sized avatar

Pedro Antonio Souza Viegas pasviegas

  • São Paulo, SP, Brazil
View GitHub Profile
@swannodette
swannodette / om_data.cljs
Last active January 9, 2021 16:09
Om + DataScript
(ns om-data.core
(:require [om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]
[datascript :as d]))
(enable-console-print!)
(def schema {})
(def conn (d/create-conn schema))
@maebert
maebert / unbox.sh
Created February 25, 2014 00:42
Setting up a new bac
#!/bin/bash
# This script automatically installs a bunch of command line (Git, wget,
# imagemagick, ...) and GUI (Dropbox, Chrome, Skype, ...) apps on a fresh
# Mac.
#
# It also sets up a Python Scientific Computing environment (matplotlib,
# scipy, iPython Notebook, ...)
#
# Requirement: Have the XCode Command Line Tools installed (download from
(ns react-cljs.core
(:require-macros [cljs.core.async.macros :refer [go]])
(:require [om.core :as om]
[om.dom :as dom :include-macros true]
[cljs.core.async :refer [>! <! chan put! sliding-buffer]]))
(enable-console-print!)
(def app-state
(atom {:counters (into [] (map (fn [n] {:id n :count 0}) (range 10)))}))
(ns react-cljs.core
(:require-macros [reactjs.macros :refer [pure]])
(:require React [reactjs.core :as r]))
(enable-console-print!)
(declare render-ui)
(defn render-counter [id state cb]
(pure state