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
/* eslint-disable no-underscore-dangle */ | |
// eslint-disable-next-line import/no-unresolved | |
import { html, render } from 'https://unpkg.com/htm/preact/standalone.module.js'; | |
function Latest(props) { | |
return html` | |
<h2>Latest Destinations</h2> | |
<ul data-aue-type="container" data-aue-label="Latest Destinations"> | |
${props.destinations.map((item) => html`<li data-aue-type="reference" data-aue-label=${item.title} data-aue-resource=${`urn:aemconnection:${item._path}/jcr:content/data/master`} > | |
<div class="latest-card-body"> |
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.chrisp.rde.core.servlets; | |
import org.apache.commons.lang3.StringUtils; | |
import org.apache.jackrabbit.api.binary.BinaryDownload; | |
import org.apache.jackrabbit.api.binary.BinaryDownloadOptions; | |
import org.apache.sling.api.SlingHttpServletRequest; | |
import org.apache.sling.api.SlingHttpServletResponse; | |
import org.apache.sling.api.resource.Resource; | |
import org.apache.sling.api.servlets.OptingServlet; | |
import org.apache.sling.api.servlets.SlingSafeMethodsServlet; |
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.chrisp.rde.core.servlets; | |
import org.apache.commons.lang3.StringUtils; | |
import org.apache.jackrabbit.api.binary.BinaryDownload; | |
import org.apache.jackrabbit.api.binary.BinaryDownloadOptions; | |
import org.apache.sling.api.SlingHttpServletRequest; | |
import org.apache.sling.api.SlingHttpServletResponse; | |
import org.apache.sling.api.resource.Resource; | |
import org.apache.sling.api.servlets.OptingServlet; | |
import org.apache.sling.api.servlets.SlingSafeMethodsServlet; |
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
import { stdin, stdout, exit } from 'node:process'; | |
import { parseArgs } from 'node:util'; | |
import { default as auth } from '@adobe/jwt-auth'; | |
import { default as fs } from 'fs'; | |
const options = { | |
'file': { type: 'string' }, | |
}; | |
const { values } = parseArgs({ options }); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
const host = 'http://localhost:4503'; | |
const rootPath = '/content/dam/mycompany'; | |
window.addEventListener("message", (event) => { | |
if (event.origin !== host) { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import collections | |
import sys | |
Point = collections.namedtuple("Point",['x', 'y']) | |
Command = collections.namedtuple("Command", ['direction', 'magnitude']) | |
start_pos = Point(0,0) | |
map = [[]] | |
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
import org.apache.sling.api.SlingHttpServletResponse; | |
import org.apache.sling.api.wrappers.SlingHttpServletResponseWrapper; | |
import javax.servlet.Filter; | |
import javax.servlet.FilterChain; | |
import javax.servlet.FilterConfig; | |
import javax.servlet.ServletException; | |
import javax.servlet.ServletRequest; | |
import javax.servlet.ServletResponse; | |
import javax.servlet.http.HttpServletResponse; |
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
env | grep "$TPL_PREFIX" | while read -r VAR; | |
do | |
REPLACE="s/`echo "$VAR" | sed -e s,=,/,`/" | |
sed -e "$REPLACE" "$SOURCE_FILE" > "$TARGET_FILENAME" | |
done |
NewerOlder