Skip to content

Instantly share code, notes, and snippets.

View PaulloClara's full-sized avatar
🏠
Working from home

Paulo Ricardo PaulloClara

🏠
Working from home
View GitHub Profile
@PaulloClara
PaulloClara / convert_avif_to_png.py
Created February 4, 2024 23:34
Convert .avif to .png with Pillow
# Instalar: pip install pillow-avif-plugin Pillow
import os
from PIL import Image
import pillow_avif
def convert_avif_to_png(input_dir, output_dir):
# Verifica se o diretório de saída existe, se não, cria-o
if not os.path.exists(output_dir):
os.makedirs(output_dir)
// 2024-01-28
$slate-50: #f8fafc;
$slate-100: #f1f5f9;
$slate-200: #e2e8f0;
$slate-300: #cbd5e1;
$slate-400: #94a3b8;
$slate-500: #64748b;
$slate-600: #475569;
$slate-700: #334155;
import os
from PIL import Image
def convert_images_to_webp(input_dir, output_dir):
# Verifica se o diretório de saída existe, se não, cria-o
if not os.path.exists(output_dir):
os.makedirs(output_dir)
# Lista todos os arquivos no diretório de entrada
image_files = os.listdir(input_dir)
setTimeout(() => {
const columns = document.querySelector('#columns');
columns.style.setProperty('flex-direction', 'column');
const primary = document.querySelector('#primary');
primary.style.setProperty('max-width', '100%');
setTimeout(() => {
const secondary = document.querySelector('#secondary');
const comments = document.querySelector('#comments');
comments.appendChild(secondary);
comments.style.setProperty('display', 'flex');
@PaulloClara
PaulloClara / pointer-events-example.html
Created July 21, 2020 14:47
simple example of using pointer events in css.
<main>
<div></div>
<div></div>
</main>
yarn add $(npm outdated | cut -d' ' -f 1 | sed '1d' | xargs -I '$' echo '$@latest' | xargs echo)
from PIL import Image
img = Image.open('./logo.png')
dimensions = [
192,
512,
192,
512,
60,
MIT License
Copyright (c) 2020 Paulo Ricardo
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@PaulloClara
PaulloClara / emoji-list.md
Last active July 13, 2020 18:02 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
[alias]
ci = commit
co = checkout
cm = checkout master
cd = checkout dev
cb = checkout -b
bd = git branch -d
st = status -sb
sf = show --name-only
lg = log --pretty=format:'%Cred%h%Creset %C(bold)%cr%Creset %Cgreen<%an>%Creset %s' --max-count=30