Given social network posts in the following format:
[
{"date": "12.10.2019",
"text": "I love trouts!",
"likes": [1, 2, 3, 4]},
{"date": "17.10.2019",
"text": "Hello world!",
"likes": [1, 2, 3, 4]}б
(ns whatever.sub-test | |
(:require [reagent.core :as r] | |
[reagent.ratom :as ratom] | |
[re-frame.core :as rf])) | |
(rf/reg-sub :test (fn [db] (:test db))) | |
(rf/reg-event-db :set-test (fn [db [_ newval]] (assoc db :test newval))) | |
(rf/reg-event-db :set-test-changed (fn [db [_ newval]] (assoc db :test-changed newval))) | |
(rf/reg-sub :test-changed (fn [db _] (:test-changed db))) |
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration. | |
You should not put any user code in this function besides modifying the variable | |
values." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory | |
;; `+distribution'. For now available distributions are `spacemacs-base' |
Given social network posts in the following format:
[
{"date": "12.10.2019",
"text": "I love trouts!",
"likes": [1, 2, 3, 4]},
{"date": "17.10.2019",
"text": "Hello world!",
"likes": [1, 2, 3, 4]}б
decomp.core=> (defn xxx [a b] (+ a b)) | |
#'decomp.core/xxx | |
decomp.core=> (dc/decompile (fn [] (xxx 1 2))) | |
// Decompiling class: decomp/core$fn__1632 | |
package decomp; | |
import clojure.lang.*; | |
public final class core$fn__1632 extends AFunction |
~/src/reagent (merge-props-fix) → ./run-tests.sh | |
## | |
## TESTING browser-cljsjs | |
## | |
+ rm -rf target/cljsbuild/test/ | |
+ lein doo chrome-headless test once | |
;; ====================================================================== | |
;; Testing with Chrome-headless: |
I hereby claim:
To claim this, I am signing this object:
def somefn(x, y) | |
x + y | |
end | |
somefn(1,2) |