This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const sectionData = [ | |
| { type: "title", data: "bar" }, | |
| { type: "meta", data: [ | |
| { title: "curator", value: "foobar" }, | |
| { title: "followers", value: 3 } | |
| ] }, | |
| { type: "collection", data: { | |
| type: "foo", | |
| collection: ["foo", "bar", "baz"] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let schema = { | |
| map: { fields: { foobar: "collection" }] component: Map, handlers: handlers }, | |
| title: {}, | |
| meta: { fields: ["curator", "followers"] }, | |
| list: { fields: { foobar: "collection" } } | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let schema = { | |
| map: { fields: "foobar", component: Map, handlers: handlers }, | |
| title: {}, | |
| meta: { fields: ["curator", "followers"] }, | |
| todo: { fields: { foobar: "collection" }] component: Map, handlers: handlers }, | |
| list: { fields: { foobar: "collection" } } | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let schema = { | |
| map: { fields: "foobar", component: TodoList }, | |
| title: {}, | |
| meta: { fields: ["curator", "followers"] }, | |
| todo: { fields: { foobar: "collection" }, component: Map, handlers: handlers }, | |
| list: { fields: { foobar: "collection" } } | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; http://stackoverflow.com/questions/30766215/how-do-i-unit-test-clojure-core-async-go-macros | |
| ; HELPERS | |
| (defn test-async | |
| "Asynchronous test awaiting ch to produce a value or close." | |
| [ch] | |
| #?(:clj | |
| (<!! ch) | |
| :cljs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; -*- 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." | |
| (setq-default | |
| ;; List of additional paths where to look for configuration layers. | |
| ;; Paths must have a trailing slash (i.e. `~/.mycontribs/') | |
| dotspacemacs-configuration-layer-path '() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set -g prefix C-a | |
| unbind C-b | |
| set -g default-terminal 'gnome-256color' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "_id": "_design/jsviews", | |
| "_rev": "194-ab29c1b084e81b2e2fc4b0fa4a7fbb21", | |
| "views": { | |
| "course-tags": { | |
| "map": "function(doc) {\n var checkpoints = doc['checkpoints'];\n var tagsTemp = Object.keys(checkpoints).map(function (key) {return checkpoints[key]['tags']});\n var tags = [].concat.apply([], tagsTemp);\n if(tags.length > 0){\n tags.forEach(function(tag) {emit(tag, doc['_id'])});\n }\n}", | |
| "reduce": "_count" | |
| }, | |
| "course-flags": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (ns history-handler | |
| (:require [compojure.core :refer [GET defroutes]] | |
| [ring.util.http-response :refer :all] | |
| [compojure.route :as route] | |
| [hiccup.core :refer [html]] | |
| [hiccup.page :refer [html5 include-js include-css]])) | |
| (def index-page | |
| (html | |
| (html5 |