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
var paths = require('./paths'); | |
gulp.task('lint', function() { | |
gulp.src(paths.app.concat(paths.test)) | |
.pipe(lint()); | |
}); | |
gulp.task('minify', function() { | |
gulp.src(paths.app) | |
.pipe(minify()); |
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
var IV = (function(SCOPE) { | |
SCOPE.baseData = {}; | |
SCOPE.baseData.app_data = { | |
"isPreroll": true, | |
"video": { | |
"url": "", | |
"width": 1920, | |
"height": 1080, | |
"duration": 15.061, | |
"renditions": { |
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
// isAutoplaySupported(callback); | |
// Test if HTML5 video autoplay is supported | |
isAutoplaySupported = function(callback) { | |
// Is the callback a function? | |
if (typeof callback !== 'function') { | |
console.log('isAutoplaySupported: Callback must be a function!'); | |
return false; | |
} | |
// Check if sessionStorage exist for autoplaySupported, | |
// if so we don't need to check for support again |
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 dateFormat = "YYYY-MM-DD"; | |
const dateBasisStr = await tp.system.prompt("When is the meeting?"); | |
if (dateBasisStr) { | |
function createMessage(daysBefore, dateFormat, dateBasisStr) { | |
let parseResult; | |
let newDate; | |
let parseResultLink; | |
let nlDatesPlugin = app.plugins.getPlugin('nldates-obsidian'); |
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\