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
.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({
@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() ):
.thumbnail {
position: relative;
width: 200px;
height: 200px;
overflow: hidden;
}
*object-fit: cover;
.thumbnail img {
{
"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,
@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%;
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}`);
}
const Masks = {
methods: {
maskCep() {
return "#####-###";
},
maskPhone() {
return "(##) #####-####";
},
maskNumber(len) {
if (len) {
sass --watch style.scss:styles/style.min.css --style compressed
const headerElement = useRef(null);
useEffect(() => {
window.onscroll = () => {
const headerScrollPosition = headerElement.current.scrollTop + headerElement.current.clientHeight;
if (window.scrollY >= headerScrollPosition) {
setScrolled(true);
} else {
setScrolled(false);
const user = {
name: "Luís Felipe"
age: "28",
ocupation: "Front-end"
}
const userArray = Object.values(user)
console.log(userArray)