This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>delay demo</title> | |
<style> | |
div { | |
position: absolute; | |
width: 60px; | |
height: 60px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() ); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jslint browser: true*/ | |
/* | |
Package: Beard.js | |
*/ | |
(function (global) { | |
"use strict"; | |
var Beard; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
NewerOlder