Skip to content

Instantly share code, notes, and snippets.

@chetanmeh
chetanmeh / aa-oak-script-console-scripts.md
Last active August 6, 2017 08:09
Oak related scripts to be executed via Felix Script Console
@andrewmkhoury
andrewmkhoury / oakTreeNodeCount.groovy
Last active April 29, 2021 08:21
Counting nodes in a tree of Oak repository using the oak-run console tool
import org.apache.jackrabbit.oak.spi.state.NodeState
import java.util.concurrent.atomic.AtomicInteger
def countNodes(NodeState n, String path = "/", flush = 5000, AtomicInteger count = new AtomicInteger(0), root = true) {
if(root) {
println "Counting nodes in tree ${path}"
}
cnt = count.incrementAndGet()
if (cnt % flush == 0) println(" " + cnt)
@fadomire
fadomire / Tokenahead.css
Last active December 10, 2015 00:58 — forked from fat/Tokenahead.less
Tags input : Added some features i needed for my use, based on Fat https://gist.github.com/2411033 implementation like : comma will now trigger a new tag, a cloned input is created and original input gets updated with tags value, some css tweaks...
.tokenahead {
cursor: text;
overflow: hidden;
height: auto;
padding-bottom: 0;
border-color:#ccc;
background-color:white;
}
.focus{
border-color: rgba(82, 168, 236, 0.8);
@fat
fat / Tokenahead.less
Created April 18, 2012 04:01
Tokenahead - ghetto typeahead with facebook-like tokens 4 @couch <3
// Tokenahead.less
// ---------------
.tokenahead {
cursor: text;
overflow: hidden;
height: auto;
padding-bottom: 0;
border-color: @inputBorder;
}