This file contains 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
// Available variables which can be used inside of strings. | |
// ${workspaceRoot}: the root folder of the team | |
// ${file}: the current opened file | |
// ${fileBasename}: the current opened file's basename | |
// ${fileDirname}: the current opened file's dirname | |
// ${fileExtname}: the current opened file's extension | |
// ${cwd}: the current working directory of the spawned process | |
{ | |
"version": "0.1.0", |
This file contains 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
local lpeg = require'lpeg' | |
local P, R, S = lpeg.P, lpeg.R, lpeg.S --patterns | |
local C, Ct = lpeg.C, lpeg.Ct --capture | |
local V = lpeg.V --variable | |
local parser = P { | |
'program', -- initial rule | |
program = Ct(V'sexpr' ^ 0), | |
wspace = S' \n\r\t' ^ 0, | |
atom = V'boolean' + V'integer' + V'string' + V'symbol', |
This file contains 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
(defn- parse-cron-part-range | |
[p] | |
(let [ab (split p #"-") | |
a (read-string (first ab)) | |
b (read-string (second ab))] | |
(assert (< a b)) | |
(range a (inc b)))) | |
(defn- parse-cron-part | |
[p] |
This file contains 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
;; Add to cljsbuild | |
;; :npm-deps {:graphql-tag "2.10.0" | |
;; :apollo-link "1.2.4" | |
;; :apollo-link-ws "1.0.10" | |
;; :subscriptions-transport-ws "0.9.15" | |
;; :ws "6.1.2"} | |
;; :install-deps true | |
(ns example.graphql | |
(:require |
This file contains 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
;; Add the following to cljsbuild :compiler options | |
;; :npm-deps {:proton-native "1.1.10"} | |
;; :install-deps true | |
(ns hello-proton-native.core | |
(:require [cljs.nodejs :as nodejs] | |
[reagent.core :as reagent] | |
["proton-native" :as proton :refer [App Window Button]])) | |
(nodejs/enable-util-print!) |
This file contains 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 hello-react-blessed.core | |
(:require | |
[cljs.nodejs :as nodejs] | |
[reagent.core :as reagent] | |
[re-frame.core :as rf] | |
[blessed :as blessed] ; or use neo-blessed | |
["react-blessed" :as rb] | |
[ws])) | |
(defonce logger (reagent/atom [])) |