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
<!-- Pull in pfelement.css --> | |
<link rel="stylesheet" href="https://unpkg.com/@patternfly/pfelement/dist/pfelement.min.css"> | |
<!-- Add an import statement for each PatternFly Element you want .ES Modules++ --> | |
<script type="module"> | |
import "https://unpkg.com/@patternfly/pfe-card/dist/pfe-card.min.js"; | |
import "https://unpkg.com/@patternfly/pfe-cta/dist/pfe-cta.min.js"; | |
</script> |
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
// write array `a` onto array `b` starting at position `p` | |
function overlay(a, b, p) { | |
for (let [i, n] of a.entries()) { | |
b[p+i] = n; | |
} | |
return b; | |
} | |
// in an array, swap items at indexes i1 and i2 | |
function swap(arr, i1, i2) { |
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
const { S3Client, ListObjectsV2Command } = require("@aws-sdk/client-s3"); | |
const client = new S3Client({ | |
region: 'us-east-1', | |
credentials: { | |
accessKeyId: process.env['EYEBROWSE_S3_ACCESS_KEY'], | |
secretAccessKey: process.env['EYEBROWSE_S3_SECRET_ACCESS_KEY'], | |
}, | |
clientSideMonitoring: true | |
}); |
OlderNewer