Skip to content

Instantly share code, notes, and snippets.

View doceazedo's full-sized avatar

DoceAzedo doceazedo

View GitHub Profile
mkdir out
for f in *.AVI; do
dur=$(ffprobe -v error -show_entries format=duration -of compact=p=0:nk=1 "$f")
ffmpeg -i "$f" -t $dur -af "volume=0.25" "out/${f%.*}.mp4"
doceazedo / how-much-i-spent-on-fortnite.js
Last active April 13, 2024 20:57
quanto gastei no fortnite
let timeout;
let tries = 0;
let showMore = () => {
if (tries >= 15) return sum();
timeout = setTimeout(showMore, 300);
tries = tries + 1;
doceazedo / workaround.js
Created December 12, 2023 18:53
Video embed fullscreen scroll position issue
// Sources:
let top2 = 0;
const handleFullscreen = () => {
if (document.fullscreenElement) {
top2 = document.querySelector('html').scrollTop;
console.log(`Setting to ${top2}`);
} else {
doceazedo / willotree.ts
Created September 6, 2023 17:48
import { get, writable } from 'svelte/store';
type Profile = {
name: string;
pictureUrl: string;
id: string;
type GameState = {
state: 'IDLE' | 'PLAYING' | 'END';
<html lang="en"><head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Portfolio - Lucas Figueiredo</title>
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" type="text/css" href="">
<link rel="icon" href="img/avatar.png" type="/x-icon">
<script src="" crossorigin="anonymous"></script><style media="all" id="fa-v4-font-face">/*!
* Font Awesome Free 6.4.0 by @fontawesome -
* License - (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
doceazedo / 0_settings.json
Last active May 17, 2023 01:19
✨ DoceAzedo's VS Code Settings ✨
"editor.fontFamily": "Fira Code, monospace, 'Segoe UI Emoji'",
"editor.fontLigatures": true,
"editor.minimap.enabled": false,
"editor.tabSize": 2,
"explorer.confirmDragAndDrop": false,
"explorer.confirmDelete": false,
"": "C:\\WINDOWS\\System32\\cmd.exe",
"editor.wordWrap": "on",
"discord.detailsEditing": "📝 Editando: {filename}",
doceazedo / tiktok-voices.ts
Created March 23, 2023 02:39
TikTok TTS Voices
export const tikTokVoices = [
doceazedo /
Last active November 22, 2022 14:59
[Datawrapper Weekly Chart] Visualizing my year on music with a calendar heatmap

Visualizing my year on music with a calendar heatmap

Hi! Just a quick disclaimer. This script was made to fit my needs and with the only purpose of generating my chart data, that means it is quite hardcoded and you may need to do some adjustments if you're planning to use it. For example, you might want to take a look at the albumCovers and badwords variables.

If you just want the 2022 calendar date positions to build your own calendar heatmap, take a look at the calendar.csv file.

You'll need a API key and a Spotify access token.

After running the script, look for the file out/dataset.csv on the same directory of the script.

doceazedo / run.bat
Last active July 9, 2022 20:59
[Recursos da talk] Aprenda a programar em Kotlin fazendo plugins para Minecraft
java -Xms2G -Xmx4G -jar paper-1.19-58.jar --nogui