This file contains hidden or 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 {DocumentClient} from "aws-sdk/clients/dynamodb"; | |
| (async () => { | |
| const TableName = ""; | |
| const pk = "" | |
| const response = await new DocumentClient().get({ | |
| TableName: TableName, | |
| Key: {pk} | |
| }).promise(); |
This file contains hidden or 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 {S3} from "aws-sdk"; | |
| /** | |
| * Get size in bytes of S3 object. | |
| * @param bucketName | |
| * @param path | |
| * @returns objectSize in bytes | |
| */ | |
| const getS3ObjectSize = async (bucketName: string, path: string): Promise<number> => { | |
| const s3 = new S3(); |
This file contains hidden or 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 {S3} from "aws-sdk"; | |
| /** | |
| * copy an Object from source S3 bucket to destination S3 bucket | |
| * return metadata of the new Object on success and undefined on failure | |
| * @param sourceBucket Source Bucket Name | |
| * @param sourcePath relative path of the Source Object | |
| * @param destinationBucket Destination Bucket Name | |
| * @param destinationPath relative path of the new Object | |
| */ |
This file contains hidden or 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 {S3} from "aws-sdk"; | |
| /** | |
| * return the size of an object in s3 bucket or undefined on failure, | |
| * without downloading the object (just read the object's metadata) | |
| */ | |
| const getS3ObjectSize = async (bucketName: string, path: string): Promise<number | undefined> => { | |
| const s3 = new S3() | |
| let objectData: S3.HeadObjectOutput |
This file contains hidden or 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
Show hidden characters
| { | |
| "defaultSeverity": "error", | |
| "extends": [ | |
| "tslint:recommended" | |
| ], | |
| "jsRules": {}, | |
| "rules": { | |
| "object-literal-sort-keys": false | |
| }, | |
| "rulesDirectory": [] |
This file contains hidden or 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
| { | |
| "compilerOptions": { | |
| "target":"ES2018", | |
| "module": "commonjs", | |
| "lib": ["es2018"], | |
| "declaration": true, | |
| "strict": true, | |
| "noImplicitAny": true, | |
| "strictNullChecks": true, | |
| "noImplicitThis": true, |
This file contains hidden or 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
| <?php | |
| function trim_content($html) | |
| { | |
| $dom = new DOMDocument(); | |
| $dom->loadHTML($html); | |
| $div = $dom->getElementById('whitespace'); | |
| $content = $div->textContent; | |
| # Goal: trim leading, trailing, and non-breaking space | |
| $content = htmlentities($content, null, 'utf-8'); |
This file contains hidden or 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
| {"version":1,"resource":"file:///home/ubuntu/Projects/2022.may.02/docebo-content/app/frontend/projects/docebo-content/src/app/users/pages/users-list/vendor-create-user/vendor-create-user.component.html","entries":[{"id":"yizd.html","source":"Workspace Edit","timestamp":1654151934027},{"id":"gw9f.html","timestamp":1654151936435},{"id":"NhoV.html","source":"Workspace Edit","timestamp":1654151938364},{"id":"PZy3.html","timestamp":1654151955639},{"id":"eISd.html","source":"Workspace Edit","timestamp":1654151988436},{"id":"74Nn.html","timestamp":1654152025144},{"id":"vyY3.html","timestamp":1654152036836},{"id":"thTU.html","timestamp":1654152069810},{"id":"eHSr.html","timestamp":1654152127076},{"id":"I79S.html","timestamp":1654152316138},{"id":"NsxO.html","timestamp":1654152348789},{"id":"aWS6.html","timestamp":1654152382672},{"id":"8wQs.html","timestamp":1654152399217},{"id":"UANc.html","timestamp":1654152498331},{"id":"bma9.html","timestamp":1654152518888},{"id":"uUE1.html","timestamp":1654152594947},{"id":"Nnr1. |
This file contains hidden or 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
| {"lastUpload":"2019-09-24T00:21:23.471Z","extensionVersion":"v3.4.3"} |