Skip to content

Instantly share code, notes, and snippets.

View luisfelipe-dev's full-sized avatar
:octocat:
👨🏻‍💻

Luís Felipe de Olivera luisfelipe-dev

:octocat:
👨🏻‍💻
View GitHub Profile
const Masks = {
methods: {
maskCep() {
return "#####-###";
},
maskPhone() {
return "(##) #####-####";
},
maskNumber(len) {
if (len) {
const usuarios = [
{ nome: "Carlos", tecnologias: ["HTML", "CSS"] },
{ nome: "Jasmine", tecnologias: ["JavaScript", "CSS"] },
{ nome: "Tuane", tecnologias: ["HTML", "Node.js"] }
];
function listaUsuarios(users) {
for (let i = 0; i < users.length; i++) {
console.log(`${users[i].nome} trabalha com ${users[i].tecnologias}`);
}
@luisfelipe-dev
luisfelipe-dev / CSS
Last active November 11, 2019 16:31
* {box-sizing: border-box;}
::-webkit-input-placeholder {font-weight: normal;}
::-moz-placeholder {font-weight: normal;}
:-ms-input-placeholder {font-weight: normal;}
:-moz-placeholder {font-weight: normal;}
body{margin: 0;font-family: sans-serif;}
header{
height: 45px;
background-color: #FFD400;
width: 100%;
{
"workbench.colorTheme": "Cobalt2",
"terminal.integrated.fontSize": 14,
"workbench.iconTheme": "material-icon-theme",
"workbench.startupEditor": "newUntitledFile",
"editor.tabSize": 2,
"editor.fontSize": 14,
"editor.lineHeight": 24,
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
.thumbnail {
position: relative;
width: 200px;
height: 200px;
overflow: hidden;
}
*object-fit: cover;
.thumbnail img {
@luisfelipe-dev
luisfelipe-dev / Classe exclusiva para categoria no Wordpress
Created November 13, 2018 15:08
Loop para adicionar o nome da categoria na classe.
<?php
$args = array(
'post_type' => 'post',
'posts_per_page' => 100,
'orderby' => 'date',
'order' => 'DESC'
);
$loop = new WP_Query( $args );
while ( $loop->have_posts() ):
.owl-next {
background: url(../img/seta.png) no-repeat center !important;
color: transparent !important;
height: 75px;
opacity: 0.9 !important;
}
OU ADICIONAR NO PROPRIO JS
jQuery(".equipe-owl").owlCarousel({
<?php
$args = array (
'parent' => 0,
);
$categories = get_categories($args);
foreach($categories as $category) {
echo '<li id="'. $category->slug .'" href="' . get_category_link($category->term_id) . '">' . $category->name . '</a></li>';
<?php
$args = array(
'post_type' => 'post',
'posts_per_page' => 2,
'orderby' => 'rand',
);
$loop = new WP_Query( $args );
while ( $loop->have_posts() ):
$loop->the_post();
<div class="conteudo-rodape__item saude" style="background: url('<?= get_the_post_thumbnail_url(); ?>'); background-position: center center; background-size: cover;">