Skip to content

Instantly share code, notes, and snippets.

View ahmed-musallam's full-sized avatar

Ahmed Musallam ahmed-musallam

View GitHub Profile
javascript:(function()%7Bvar%20el%3Ddocument.createElement(%22video%22)%3Bel.style.cssText%3D%22position%3A%20fixed%3Btop%3A%200%3Bleft%3A%200%3Bz-index%3A%20100000%3Bmin-width%3A%20100%25%3Bmin-height%3A%20100%25%3B%22%2Cel.autoplay%3D!0%2Cdocument.body.appendChild(el)%2Cnavigator.mediaDevices.getUserMedia(%7Bvideo%3A!0%7D).then(function(e)%7Bel.srcObject%3De%7D).catch(function(e)%7Bconsole.error(e)%2Calert(%22Enable%20your%20camera%22)%7D)%7D)()
<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"
@floriankraft
floriankraft / JcrQueryLibrary.md
Last active April 5, 2024 14:09
Some useful JCR queries (XPATH, SQL2) for AEM/CQ development.

SQL2

All nodes with a specific name

SELECT * FROM [nt:unstructured] AS node
WHERE ISDESCENDANTNODE(node, "/search/in/path")
AND NAME() = "nodeName"

All pages below content path