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
#!/bin/bash | |
# This script selects the most recent .mp4 video file in the current directory (or a specified file), | |
# extracts video and audio bitrates using ffprobe, and runs auto-editor (https://github.com/WyattBlue/auto-editor) for automatic video processing. | |
# Set the directory to the current path | |
VIDEO_DIR="$(pwd)" | |
# Check if an argument is provided |
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
/* | |
* @return Retorna a taxa anual da SELIC de acordo com a data passada (se não for passada nenhuma data retorna a taxa anual do dia de hoje). | |
* Fonte: https://www.bcb.gov.br/estabilidadefinanceira/selicdadosdiarios | |
**/ | |
function SELIC(dataConsulta = new Date()) { | |
var today = Utilities.formatDate(new Date(), "GMT+3", "dd/MM/yyyy"); | |
if (dataConsulta.length == 0) | |
dataConsulta = new Date() |
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
# Merging two or more PDF files | |
# Install PyPDF2 with pip | |
# ´pip install PyPDF2´ | |
# Save this file on the folder and run it on the terminal with ´python merge.py´ | |
import glob | |
from PyPDF2 import PdfFileMerger | |
def merger(output_path, input_paths): | |
pdf_merger = PdfFileMerger() |
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
/* | |
* @return Retorna a cotação atual de um título específico do Tesouro Direto. | |
* Fonte: https://www.tesourodireto.com.br/titulos/precos-e-taxas.htm | |
**/ | |
function TESOURODIRETO(bondName, argumento="r") { | |
let srcURL = "https://api.radaropcoes.com/bonds.json"; | |
let jsondata = UrlFetchApp.fetch(srcURL); | |
let parsedData = JSON.parse(jsondata.getContentText()).response; | |
for(let bond of parsedData.TrsrBdTradgList) { |
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'; | |
const internals = {}; | |
exports.errors = { | |
root: 'value', | |
key: '"{{!key}}" ', | |
messages: { | |
wrapArrays: true | |
}, |