Skip to content

Instantly share code, notes, and snippets.

View Pedroemanuelavelar's full-sized avatar
🎯
Focusing

Pedro Emanuel de Avelar Sousa de Almeida Pedroemanuelavelar

🎯
Focusing
View GitHub Profile
@sigaocaue
sigaocaue / install-vue-js-cli.md
Last active September 18, 2021 17:55
Install vue-cli on Linux Systems

Install vue-cli on Linux Systems

O objetivo deste Gist é mostrar como instalar a ferramenta vue-cli, assim como suas dependências, em sistemas baseados em Linux. Estou utilizando um Ubuntu 17.10, caso queira saber a versão do seu Ubuntu, execute a seguinte instrução no terminal:

lsb_release -a

Introdução

@lucianobragaweb
lucianobragaweb / botaotopo.html
Created November 12, 2013 15:06
Botão Voltar ao topo com deslize suave
<div id="voltarTopo">
<a href="#" id="subir">Topo</a>
</div>
@wesbos
wesbos / is_blog.php
Created September 2, 2011 19:32
WordPress is_blog()
function is_blog () {
global $post;
$posttype = get_post_type($post );
return ( ((is_archive()) || (is_author()) || (is_category()) || (is_home()) || (is_single()) || (is_tag())) && ( $posttype == 'post') ) ? true : false ;
}
Usage:
<?php if (is_blog()) { echo 'You are on a blog page'; } ?>