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
<html> | |
<body> | |
<video id="v" width="300" height="300"></video> | |
<input id="b" type="button" disabled="true" value="Take Picture"></input> | |
<canvas id="c" style="display:none;" width="300" height="300"></canvas> | |
</body> | |
<script> | |
navigator.getUserMedia({video: true}, function(stream) { | |
var video = document.getElementById("v"); | |
var canvas = document.getElementById("c"); |
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
'use strict'; | |
// Development web-server | |
const browserSync = require('browser-sync').create(); | |
// Babel plugin for transpiling ES6 code to JS | |
const babel = require('gulp-babel'); | |
// Tool for separating html and js code | |
const crisper = require('gulp-crisper'); | |
// Sourcemaps generation for debugin ES6 at browser | |
const sourcemaps = require('gulp-sourcemaps'); |
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 elements = Array.from(document.querySelectorAll('.song-name-wrapper')); | |
const playlist = elements.map(element => { | |
const nameElement = element.querySelector('.typography-label'); | |
const artistElement = element.querySelector('.typography-caption > a'); | |
const name = nameElement.innerText; | |
const artist = artistElement.innerHTML; | |
return `${name} ${artist}`; | |
}); |
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 fs = require('fs') | |
const path = require('path') | |
// Params | |
const pathToPreviousReport = process.argv[2] | |
// Functions | |
/** | |
* Reads the coverage-summary.{XXX}.json file and returns the parsed JSON object | |
* @param {*} pathToReport | |
* @returns |