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 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) { |
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 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}] |
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
# Remove dangling images | |
docker images -qf dangling=true | xargs docker rmi |
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
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 |
OlderNewer