Skip to content

Instantly share code, notes, and snippets.

View ItGumby's full-sized avatar

Brian Street ItGumby

View GitHub Profile
@jdigger
jdigger / Failure.java
Last active August 29, 2015 14:14
Union Class In Java
import javax.annotation.Nonnull;
/**
* Indicates there was an error.
*/
public interface Failure {
/**
* Returns the error.
*/
@Nonnull
@floriankraft
floriankraft / JcrQueryLibrary.md
Last active May 3, 2024 05:50
Some useful JCR queries (XPATH, SQL2) for AEM/CQ development.

SQL2

All nodes with a specific name

SELECT * FROM [nt:unstructured] AS node
WHERE ISDESCENDANTNODE(node, "/search/in/path")
AND NAME() = "nodeName"

All pages below content path

@kdabir
kdabir / iso_date.groovy
Last active January 20, 2023 19:15
current date in iso 8601 in groovy
new Date().format("yyyy-MM-dd'T'HH:mm:ss'Z'", TimeZone.getTimeZone("UTC"))
@ysb33r
ysb33r / gist:0c534d165863628a07cc
Last active August 29, 2015 14:04
HOWTO add deck.js to an Asciidoctor project without resorting to git submodules
// You will need the VFS plugin
buildscript {
repositories {
jcenter()
}
dependencies {
// Set your
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:0.7.0'
classpath 'org.ysb33r.gradle:vfs-gradle-plugin:0.5'
@pjkix
pjkix / css-stats-ack.sh
Created October 5, 2011 21:39
shell script to generate some css file statistics
#!/bin/bash
## v1.0.6
## this script will gernerate css stats
### example output
# CSS STATS
# ----------
# Floats: 132