Skip to content

Instantly share code, notes, and snippets.

View dpogni's full-sized avatar

Dean dpogni

View GitHub Profile
$ bluetoothctl
$ agent on
$ scan on
[bluetooth]# help
Available commands:
list List available controllers
show [ctrl] Controller information
select <ctrl> Select default controller
devices List available devices
@dpogni
dpogni / _cq_editConfig.xml
Created August 15, 2018 20:58
AEM - Component Edit Config -- Page refresh
<?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:EditConfig">
<cq:listeners
jcr:primaryType="cq:EditListenersConfig"
afteredit="REFRESH_PAGE"
afterinsert="REFRESH_PAGE"
afterchildinsert="REFRESH_PAGE"/>
</jcr:root>
@dpogni
dpogni / _cq_dialog.xml
Created August 15, 2018 21:22
reference another dialog
<cta
jcr:primaryType="nt:unstructured"
jcr:title="CTA"
sling:resourceType="granite/ui/components/foundation/include"
path="project/components/content/sample-component/cq:dialog/content/items/ctaMultifield" />
@dpogni
dpogni / _cq_dialog.xml
Last active June 13, 2019 23:24
AEM Composite Multifield
<cta
jcr:primaryType="nt:unstructured"
jcr:title="CTA"
sling:resourceType="granite/ui/components/foundation/section">
<layout
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"
margin="{Boolean}false"/>
<items jcr:primaryType="nt:unstructured">
<column
@dpogni
dpogni / _cq_dialog.xml
Last active November 17, 2023 21:29
AEM Flat Multifield
<images
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
typeHint="String[]"
fieldLabel=""
fieldDescription="">
<field
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/pathbrowser"
fieldLabel=""
Setting up IDE (Eclipse, Intellij, VSCode)
https://helpx.adobe.com/experience-manager/kt/platform-repository/using/local-aem-dev-environment-article-setup.html#setup-integrated-env
<alignment jcr:primaryType="nt:unstructured"
name="./alignChildren"
fieldLabel="Alignment of components"
required="{Boolean}true"
selectionMode="single"
sling:resourceType="granite/ui/components/coral/foundation/form/buttongroup">
<items jcr:primaryType="nt:unstructured">
<default jcr:primaryType="nt:unstructured"
name="./default"
/**
* Throttle Handler
* @param {function} callback
* @param {number} limit (ms)
*/
export function throttle (callback, limit = 100) {
let wait = false;
return function throttleReturn(...args) {
if (!wait) {
callback.apply(null, ...args);
@dpogni
dpogni / .content.xml
Created September 3, 2019 23:48 — forked from briankasingli/.content.xml
AEM 6.4 RichText Editor - Enable all features, and disable inline full screen option; the inline fullscreen option causes too many problems.
<?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"
jcr:primaryType="cq:Component"
jcr:title="Rich Text"
sling:resourceSuperType="core/wcm/components/text/v2/text"
componentGroup="General"/>
@dpogni
dpogni / gist:d87dece32356e019005cc508afc47425
Created September 5, 2019 00:27
AEM RTE Tool Bar Options
# found on blogt post http://keysandstrokes.info/touch-ui-rich-text-editor-add-inline-plugins/
"toolbar": [
"format#bold",
"format#italic",
"format#underline",
"subsuperscript#subscript",
"subsuperscript#superscript",
"-",
"misctools#specialchars",