Skip to content

Instantly share code, notes, and snippets.

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>delay demo</title>
<style>
div {
position: absolute;
width: 60px;
height: 60px;
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:primaryType="cq:Dialog"
height="{Long}500"
width="{Long}700"
xtype="dialog">
<items
jcr:primaryType="cq:Widget"
xtype="tabpanel">
<items jcr:primaryType="cq:WidgetCollection">
Error during include of component '/apps/gel/components/page/basic'
Error Message:
org.apache.sling.api.scripting.ScriptEvaluationException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: com/gel/common/utils/LocaleUtils
Processing Info:
Page = /content/gel/sg/en/tienpage
Resource Path = /content/gel/sg/en/tienpage/jcr:content
Cell = basic
public static List<DySubscriber> findByIdentifier(String identifier, Object value, RangeCondition condition) {
DynamoRequest request = createRequest(DySubscriber.class);
if (value instanceof Float) {
request.addComparison( condition, identifier, (Float) value );
} else {
request.addComparison( condition, identifier, value.toString() );
}
private SubscriberList perSubscriberCriteria (String identifier, boolean negate) {
// For example if comparison identifier is "firstname", type is equalsTo and value is "Tien"
// Get all subscribers whose firstname is tien
Object fromValue = rule.getEqualToStr() != null && !rule.getEqualToStr().isEmpty() ? rule.getEqualToStr() : null;
RangeCondition operator = rule.getRangeCondition();
Object toValue = null;
if (fromValue == null) {
/*jslint browser: true*/
/*
Package: Beard.js
*/
(function (global) {
"use strict";
var Beard;
package com.nextuser.template.plugins;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import org.mozilla.javascript.NativeObject;
import org.mozilla.javascript.json.JsonParser;
package com.nextuser.template;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import org.mozilla.javascript.Context;
import org.mozilla.javascript.NativeObject;
import org.mozilla.javascript.Scriptable;
GIT_DIR = $(CURDIR)/$(shell git rev-parse --git-dir)
GIT_HOOKS = $(GIT_DIR)/hooks
GIT_HOOKS_REPO = git@github.com:NextUserSF/git-hooks.git
BRANCH = $(CURDIR)/$(shell git rev-parse --abbrev-ref HEAD)
all:
# Show this help message
package com.nextuser.evaluation;
import java.sql.SQLException;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.powermock.modules.junit4.legacy.PowerMockRunner;