Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@aterreno
aterreno / sample.png
Created January 30, 2018 09:47 — forked from jirutka/sample.png
Nested numbered list with correct indentation in CSS. Live example at http://jsfiddle.net/a84enL8k/.
sample.png
@aterreno
aterreno / 0_reuse_code.js
Created June 1, 2014 21:46
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Next Steps

  • Measure time spend on index, flush, refresh, merge, query, etc. (TD - done)
  • Take hot threads snapshots under read+write, read-only, write-only (TD - done)
  • Adjust refresh time to 10s (from 1s) and see how load changes (TD)
  • Measure time of a rolling restart doing disable_flush and disable_recovery (TD)
  • Specify routing on query -- make it choose same node for each shard each time (MD)
  • GC new generation size (TD)
  • Warmers
  • measure before/after of client query time with and without warmers (MD)
(defn go-right [[x y]] {:pos [(inc x) y]})
(defn go-left [[x y]] {:pos [(dec x) y]})
(defn go-down [[x y]] {:pos [x (inc y)]})
(defn go-up [[x y]] {:pos [x (dec y)]})
;; I'm pretty (cool) and I know it!
(defn enterprise-buzz
"To infinity and beyond!"
[look {[x y] :pos}]
(println (look [ x y]))