Skip to content

Instantly share code, notes, and snippets.

View EasonPai's full-sized avatar

Eason PI EasonPai

  • Eason Pai
  • Taipei, Taiwan
View GitHub Profile
@salomao-santos
salomao-santos / aem-component-dialog.md
Last active November 22, 2025 20:28
AEM Component: Dialog field example: structure of a dialog, checkbox, datepicker, fileupload, multifield, numberfield, pathbrowser, pathfield, radiogroup, richtext, select, textarea, textfield
@felixklauke
felixklauke / build.gradle
Created September 21, 2018 06:54
JUnit 5 with mockito
plugins {
id 'java'
}
group 'de.d3adspace'
version '1.0-SNAPSHOT'
allprojects {

Breaklets

The Idea

Breaklets are a way to check limits of a platform/aspect/tool. Breaklets

  • ... iteratively make things worse
  • ... run until either
    • a threshold is reached
@kevinweber
kevinweber / built-in-tools.md
Last active November 9, 2025 15:53
Collection of AEM Links, Commands & Tips / Cheat Sheet

Web Consoles & Tools

@kevinweber
kevinweber / example.html
Last active May 5, 2023 12:22
AEM: Include another resource + modify tag and class name #data-sly-resource
<!--/* More: https://docs.adobe.com/docs/en/htl/docs/block-statements.html#resource */-->
<!--/* By default, the AEM decoration tags are disabled, the decorationTagName option allows to bring them back, and the cssClassName to add classes to that element. */-->
<div data-sly-resource="${'headline' @
resourceType='about-project/components/content/c34-section-headline',
decorationTagName='span',
cssClassName='className'
}"></div>
<!--/* More about the decoration tag: https://docs.adobe.com/docs/en/aem/6-3/develop/components/decoration-tag.html */-->
@Ticore
Ticore / js_interop_test.dart
Created May 17, 2017 17:33
Dart JS Interop Test
import 'package:js/js.dart';
void main() {
int count = 10000;
var startTime = new DateTime.now();
var jsonStrList = [];
for (int i = 0; i < count; ++i) {
jsonStrList.add(testJSInterop());
}
var endTime = new DateTime.now();
@matanlurey
matanlurey / BowlingKtTest.kt
Created May 11, 2017 01:12 — forked from miquelbeltran/BowlingKtTest.kt
Bowling Kata Dart vs Kotlin
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Test
internal class BowlingKtTest {
@Test
fun `score is 0 when the player did not knock down any pins`() {
assertEquals(0, Array(20, { 0 }).toList().score())
}
@Test
@branflake2267
branflake2267 / stful-page.liveTemplate
Last active February 11, 2025 10:08
Flutter - Basic Routing to Pages YouTube source code - This is the IntelliJ IDEA live template for a stateful widget for a page.
class $NAME$ extends StatefulWidget {
$NAME$({Key key, this.title}) : super(key: key);
static const String routeName = "/$NAME$";
final String title;
@override
_$NAME$State createState() => new _$NAME$State();
}
@frieder
frieder / aem63_systemd.txt
Last active August 13, 2025 22:05
AEM 6.x systemd start script
The following start script has been tested with SLES 12 SP2, AEM 6.3 and Java 8u161.
-------------------------------------------------------------------------------------------------------------
cat << 'EOF' > /etc/systemd/system/aem.service
[Unit]
Description=Adobe Experience Manager
After=network.target
[Service]
Type=forking
@nateyolles
nateyolles / .content.xml
Created July 13, 2016 05:15
AEM using Granite Render Conditions
<items jcr:primaryType="nt:unstructured">
<widgetAlways
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/textfield"
fieldLabel="This always shows"
name="./widgetAlways"/>
<widgetHeaderChrome
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/textfield"
fieldLabel="This only shows when header &quot;User-Agent&quot; contains &quot;chrome&quot;"