Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.
brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus
<?php | |
header("Access-Control-Allow-Origin: *"); | |
header("Content-Type: application/json"); | |
$timeout = isset($_GET['timeout']) ? $_GET['timeout'] : 0; | |
sleep($timeout); | |
echo json_encode([ | |
'timeout' => $timeout |
import re | |
import os | |
import urllib.parse | |
import urllib.request | |
from tqdm import tqdm | |
# pip install tqdm | |
class DownloadProgressBar(tqdm): | |
def update_to(self, b=1, bsize=1, tsize=None): | |
if tsize is not None: | |
self.total = tsize |
const getSvg = async (svgUrl, svgContainer) => { | |
let request = await fetch(svgUrl) | |
let svgText = await request.text() | |
const parser = new DOMParser(); | |
const svgHtml = parser.parseFromString(svgText, "text/html"); | |
svgContainer.appendChild(svgHtml.body.querySelector('svg')) | |
} |
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4 |
alert('CLICK SOBRE LA IMAGEN DEL PRODUCTO A EDITAR') | |
document.querySelectorAll('td.image').forEach(el=>el.addEventListener('click',function(e){ | |
var nombre = e.target.parentElement.parentElement.querySelector('td.name').textContent | |
let precio = prompt('INGRESA PRECIO TAL COMO LO COPIASTE DEL DOC') | |
precio = precio.replace('$','').replace(',','.').trim() | |
var others = [...document.querySelectorAll('td.name')].filter(el=>el.textContent===nombre).map(el=>el.parentElement.querySelector('.cell_input')) | |
others.forEach(el=>{ |
from bs4 import BeautifulSoup | |
import requests | |
url = 'http://www.bcv.org.ve/estadisticas/tipo-de-cambio' | |
response = requests.get(url) | |
html = BeautifulSoup(response.text, 'html.parser') | |
tasa_bcv = html.select_one('#dolar strong').get_text() | |
tasa_bcv = float(tasa_bcv.replace('.','').replace(',','.')) |
Banco: | |
<select name="banco"> | |
<option value=""></option> | |
<option value="0156">100%BANCO</option> | |
<option value="0196">ABN AMRO BANK</option> | |
<option value="0172">BANCAMIGA BANCO MICROFINANCIERO, C.A.</option> | |
<option value="0171">BANCO ACTIVO BANCO COMERCIAL, C.A.</option> | |
<option value="0166">BANCO AGRICOLA</option> | |
<option value="0175">BANCO BICENTENARIO</option> | |
<option value="0128">BANCO CARONI, C.A. BANCO UNIVERSAL</option> |
function classToggle(el,class1,class2) { | |
el.classList.toggle(class1); | |
el.classList.toggle(class2); | |
} |