This is a stats
lib that has no dependencies but needs to be initialized.
module.exports = function initializeStats(projectName, options) {
return {
object Test extends App { | |
val url = "http://google.com/search" | |
val query = ("q", "finagle") | |
val request = com.twitter.finagle.http.RequestBuilder() | |
.url(url) | |
.addFormElement(query) | |
.buildGet() | |
println(request) | |
} |
ruby -ryaml -rjson -e 'puts JSON.pretty_generate(YAML.load(ARGF))' < in.yml > out.json |
const moment = require('moment'); | |
const format1 = require('./format1_log_events.json'); | |
const format2 = require('./format2_log_events.json'); | |
const events = { | |
format1, | |
format2 | |
}; |
mkdir -p exp &&\ | |
ls -1 | grep -v exp | xargs -I '@' cp -aRv @ exp/@ &&\ | |
find * -type f | grep -e '\.\(html\|scss\|css\|js\)$' | grep -ve '^exp' |\ | |
xargs -tn1 -I file bash -c 'expand -t 2 file > exp/file' &&\ | |
cp -avR exp/* . &&\ | |
rm -rf exp |
const items = [{ | |
"Username": "First", | |
"Timestamp": "2017-08-07T19:51:00.794Z", | |
"Message": "first item in batch" | |
}, | |
{ | |
"Username": "Second", | |
"Timestamp": "2017-08-07T19:51:00.794Z", | |
"Message": "second item in batch" | |
}, |
Midje checkers (e.g. n-of
, has
, match
from matcher-combinators) cannot be resolved when using Cursive because they are declared using the defchecker
macro.
To make Cursive able to resolve these references as valid symbols, follow these steps:
defchecker.xml
file somewhere in your machine(require '[io.pedestal.service-tools.dev :as dev-tools]) | |
(def ^:private watcher (atom nil)) | |
(defn stop-watching [] | |
(let [stop @watcher] | |
(when (fn? stop) (stop) (reset! watcher nil)))) | |
(defn watch | |
([] (watch ["src/"])) |
To get started, it's highly recommended to use lein
for automating things like running the project, fetch dependencies, run project tasks, set clojure versions, etc.