Haja como um desenvolvedor python muito experiente e qualificado, você além de conhecer tudo sobre python, também faz um código super limpo e bem documentado, a documentação você gosta de explicar em português, falando o que cada parte do código e funções faz, você é como um professor avançado, não deixando de fazer o seu código ser complexo e simples ao mesmo tempo, e é claro, muito seguro, você chega a um nível que parece ser o criador da linguagem python. Você também tem grande conhecimento da api do youtube e google, as versão mais atualizada é claro, conhece toda a documentação, poderia ser um desenvolvedor senior do google, não deixa passar nada, e sempre tenta trazer soluções simples, mas muito funcionais. E você também tem um dom artístico, gosta de fazer seus códigos visualmente bonitos, criar UI inteligentes, onde o usuário possa interagir através de opções, sempre perguntando se deseja fazer tal tarefa antes de ser executada. Gosta de manter log de tudo, erros, sucesso, alertas. Lembrando, você não
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
@layer components { | |
.gradient-border { | |
@apply relative; | |
&::after { | |
@apply absolute inset-[-1px] pointer-events-none p-[1px] z-[1] bg-gradient-to-r from-transparent to-transparent; | |
content : ''; | |
z-index : 1; | |
mask : linear-gradient(#fff 0 0) content-box, | |
linear-gradient(#fff 0 0) border-box; | |
-webkit-mask : linear-gradient(#fff 0 0) content-box, |
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
/** | |
* Função que altera o título da página de taxonomia 'category_photos'. | |
* | |
* @param string $title O título atual da página. | |
* @return string O novo título da página. | |
*/ | |
add_filter('pre_get_document_title', 'change_title_taxonomy_page', 10, 1); | |
function change_title_taxonomy_page($title) { | |
if (is_tax('category_photos')) { |
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
<?php function rh_image_size($attachment_id, $width = null, $height = null, $crop = true, $force_crop = false) { | |
$path = get_attached_file($attachment_id); | |
if (!file_exists($path)) { | |
return false; | |
} | |
$upload = wp_upload_dir(); | |
$path_info = pathinfo($path); | |
$base_url = $upload['baseurl'] . str_replace($upload['basedir'], '', $path_info['dirname']); |
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
import tkinter as tk | |
from tkinter import filedialog | |
import os | |
from tkinter import messagebox | |
def criar_directory_junction(): | |
origem = origem_entry.get() | |
destino = destino_entry.get() | |
nome_atalho = nome_atalho_entry.get() |
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
/** | |
* Code that will fit the text to the card of project-grid-item if is only one word vanillajs | |
*/ | |
const fitText = () => { | |
const projectGridItems = document.querySelectorAll('.project-grid-item'); | |
projectGridItems.forEach((item) => { | |
const text = item.querySelector('.title'); | |
// get length of words | |
const textLength = text.innerText.split(' ').length; |
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
<?php | |
function get_thumbnail($attachment_id = null, $width = null, $height = null, $crop = true, $url = false, $alt = "") { | |
// global $post variable is used later in the function to check if the current post has a thumbnail image | |
global $post; | |
// if an attachment ID is provided | |
if ($attachment_id) { | |
// get the path to the file on the server | |
$path = get_attached_file($attachment_id); | |
// if the file does not exist, return false |
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
/** | |
* Templates and Page IDs without editor | |
*/ | |
function ea_disable_editor( $id = false ) { | |
$excluded_templates = array( | |
'front-page.php', | |
); |
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
<?php | |
/** | |
* Relacionados | |
* | |
* @version 1.0 | |
* @author Rhuan <rhcarlosweb@gmail.com> | |
*/ | |
function nexo_relatedposts() { | |
/** |
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
<div class="clock" | |
data-finish-year="2021" | |
data-finish-month="07" | |
data-finish-day="12" | |
data-finish-hour="0" | |
data-finish-minutes="0" | |
data-finish-seconds="0" | |
> | |
<div class="num -d"> | |
00 |
NewerOlder