Skip to content

Instantly share code, notes, and snippets.

View shawn-sandy's full-sized avatar
💭
I may be slow to respond.

Shawn Sandy shawn-sandy

💭
I may be slow to respond.
View GitHub Profile
@shawn-sandy
shawn-sandy / template.html
Last active August 3, 2020 02:25
First paint template
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>FirstPaint</title>
<meta name="description" content="Atomix">
<meta name="author" content="Shawn Sandy">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/normalize.css@8.0.1/normalize.min.css">
@shawn-sandy
shawn-sandy / blank-aem-demos
Last active October 3, 2020 02:54
Generates a blank AEM Archetype
// BLANK AEM DEMO
// **************
DEMO
-----------------------------------------------------------
----------------------------------------------------------
mvn -PautoInstallSinglePackage clean install
----------------------------------------------------------
@shawn-sandy
shawn-sandy / tasks.json
Last active October 4, 2020 23:02
VSCODE TASK FOR AEM
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "AEMFED start aem fed server",
"type": "shell",
"command": "aemfed -t \"http://admin:admin@localhost:4502\" -w \"./\"",
"presentation": {
@shawn-sandy
shawn-sandy / aemui-kit.txt
Last active September 30, 2020 05:24
Fisrt XP
mvn archetype:generate -B \
-DarchetypeGroupId=com.adobe.granite.archetypes \
-DarchetypeArtifactId=aem-project-archetype \
-DarchetypeVersion=22 \
-DgroupId=com.ui.kit \
-Dversion=0.0.1-SNAPSHOT \
-DappsFolderName=ui-kit \
-DartifactId=ui-kit \
-Dpackage=com.ui.kit \
-DartifactName="AEM UIKit" \
@shawn-sandy
shawn-sandy / .content.xml
Created October 6, 2020 23:18
cq:HtmlTag node
<?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="nt:unstructured"
class="btn mb-1 mx-1 btn-sm"
cq:tagName="button"/>
@shawn-sandy
shawn-sandy / aem.code-snippets
Created October 12, 2020 01:17
AEM code snippets VS code
{
// Place your aem-uikit workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
// "Print to console": {
// "scope": "javascript,typescript",
@shawn-sandy
shawn-sandy / settings.json
Last active October 16, 2020 22:22
VS code settings
{
"files.associations": {
"*.tag": "html",
"*.cshtml": "html",
"*.html": "html",
"*.njk": "html",
"*.mustache": "html",
"*.html.md": "html"
},
"files.exclude": {
@shawn-sandy
shawn-sandy / .content.xml
Last active March 11, 2021 18:02
AEM snippets
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" 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:Page">
<jcr:content
cq:deviceGroups="[/etc/mobile/groups/responsive]"
cq:lastModified="{Date}2020-10-17T06:02:39.017-04:00"
cq:lastModifiedBy="admin"
cq:template="/conf/blueprint-uikit/settings/wcm/templates/sandbox"
jcr:primaryType="cq:PageContent"
sling:resourceType="blueprint-uikit/components/structure/page">
@shawn-sandy
shawn-sandy / .content.xml
Last active November 2, 2020 13:13
AEM simple text w/editor component
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0"
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="nt:unstructured" jcr:title="Properties" sling:resourceType="cq/gui/components/authoring/dialog">
<content jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/coral/foundation/fixedcolumns">
<items jcr:primaryType="nt:unstructured">
<column jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<styles jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/coral/foundation/form/textfield" fieldLabel="Block Styles Names" fieldDescription="Styles the component container" name="./styles"/>
@shawn-sandy
shawn-sandy / launch.cmd
Created December 9, 2020 13:20
AEM author launch cmd
java -jar aem-author-p4502.jar -gui