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; |
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.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
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
/*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
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
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
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
<?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
<h3 class="title">Getting started</h3> | |
<p>Morbi ac purus vel massa ornare faucibus vel at turpis. Proin venenatis sapien et massa egestas pharetra tristique mauris ultricies. Integer mi arcu, mattis eu aliquet id, mattis id libero. Aenean interdum dui eget massa pulvinar luctus laoreet felis suscipit. Duis felis metus, hendrerit quis viverra ut, placerat sit amet nisl. Sed rutrum sapien sed augue venenatis non aliquet odio pretium. Mauris arcu velit, consectetur et sollicitudin ut, venenatis vel massa. Praesent nec metus non ipsum cursus lacinia. Duis felis metus, hendrerit quis viverra ut, placerat sit amet nisl. Sed rutrum sapien sed augue venenatis.</p> | |
<h3 class="title">Sub-header</h3> | |
<p>Morbi ac purus vel massa ornare faucibus vel at turpis. Proin venenatis sapien et massa egestas pharetra tristique mauris ultricies. Integer mi arcu, mattis eu aliquet id, mattis id libero. Aenean interdum dui eget massa pulvinar luctus laoree |
OlderNewer