Testing Polymer components
Markdown component performance on Polymer project
ffmpeg -t 5 -i input.mp4 -vf -loop 0 output.gif | |
ffmpeg -ss 1 -t 5 -i input.mp4 -f gif output.gif | |
ffmpeg -ss 1 -t 4 -i input.mp4 -filter_complex "[0:v] fps=12,scale=720:-1,split [a][b];[a] palettegen [p];[b][p] paletteuse" output.gif |
# Remove dangling images | |
docker images -qf dangling=true | xargs docker rmi |
const arr1 = [{attributes: "foobar"}] | |
const arr2 = [{html: "foobar"}] | |
const mergedArray = arr1.map((item,i)=>{ | |
//merging two objects | |
return Object.assign({},item,arr2[i]) | |
}) | |
// mergedArray = [{attributes: "foobar", html: "foobar}] |
const fs = require('fs'); | |
const glob = require('glob'); | |
const fileType = 'pages/**/*.vue'; | |
const altString = /alt=/g; | |
const vImgString = /v-img|v-carousel-item/g; | |
function matchString(data, string) { | |
const alt = data.match(string); | |
if (alt) { |
const fs = require('fs'); | |
const glob = require('glob'); | |
const fileType = 'pages/**/*.vue'; | |
glob(fileType, function (err, files) { | |
files.forEach(file => { | |
const data = fs.readFileSync(file, 'utf8'); | |
const matchH1 = data.match(/h1/g); | |
if (matchH1) { |
If you're using Fish shell with OMF theme designed with Powerline fonts in mind, you'll need to install them on your machine. These are the most clear and cut-down instructions that I've found to work with Ubuntu 16.10 and all credit goes to petercossey's Ubuntu Powerline Install gist.
cd ~
Interective Guide to Package.json - http://browsenpm.org/package.json#contributors