Skip to content

Instantly share code, notes, and snippets.

@abooayoob
abooayoob / post-release-job.js
Created Feb 10, 2020
Setting Cache-Control headers of files in blobstorage in Azure from a node script.
View post-release-job.js
const { BlobServiceClient, BlobClient } = require("@azure/storage-blob")
const fs = require("fs")
const path = require("path")
const getAllFiles = function(dirPath, arrayOfFiles) {
files = fs.readdirSync(dirPath)
arrayOfFiles = arrayOfFiles || []
files.forEach(function(file) {
@abooayoob
abooayoob / playFast.js
Created Nov 22, 2017
2x frontendmasters workshop videos (the live ones)
View playFast.js
let videoContainer = document.querySelector('.js-playerjs_playback')
let video = videoContainer.querySelector('video')
video.playBackrate = 2