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
const aggSpeakerTime = () => $(".speaker-stats-item ") | |
.map((i, a) => ({ | |
name: $(a).find('.speaker-stats-item__name').text(), | |
time: $(a).find('.speaker-stats-item__time').text() | |
})) | |
.toArray() | |
.sort((a, b) => a.name.substring(0, 1).toLowerCase() < b.name.substring(0, 1).toLowerCase() ? -1 : 1) | |
.reduce((acc, curr) => { | |
let data = acc[curr.name] || { seconds: 0 }; | |
let mins = curr.time.match(/\d+m/) ? parseInt(curr.time.match(/\d+m/)[0].replace('m', ''), 10) : 0; |
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
#!/bin/bash | |
# Based on: | |
# - https://stackoverflow.com/questions/66482517/how-to-append-more-than-33-files-in-a-gcloud-bucket#answer-66484002 | |
GSUTIL="gsutil compose" | |
BATCH_SIZE="32" | |
BUCKET_BASE="gs://my-shiny-bucket/path/to/intermediate/composites" | |
# Will compose files in groups of maximum 32 |
OlderNewer