// jQuery
$(document).ready(function() {
// code
})
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 | |
/* ========================================================================== | |
CUSTOMIZANDO MENU PRINCIPAL | |
========================================================================== */ | |
class custom_menu extends Walker_Nav_Menu{ | |
function start_lvl(&$output, $depth) { | |
$indent = str_repeat("", $depth); |
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
// early experiments with node had mysterious double requests | |
// turned out these were for the stoopid favicon | |
// here's how to short-circuit those requests | |
// and stop seeing 404 errors in your client console | |
var http = require('http'); | |
http.createServer(function (q, r) { | |
// control for favicon |
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
body { | |
font: normal 1.25em/1.5 Arial, sans-serif; | |
} | |
:focus { | |
outline: 1px dotted #EF9600; | |
outline-offset: 1px; | |
} | |
.slideshow { | |
position: relative; |
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
// select element to unwrap | |
var el = document.querySelector('div'); | |
// get the element's parent node | |
var parent = el.parentNode; | |
// move all children out of the element | |
while (el.firstChild) parent.insertBefore(el.firstChild, el); | |
// remove the empty element |
wp core download --locale=pt_BR
- wp core config --dbname=NOMEDATABASE --dbuser=root --dbpass= --dbhost=IPSERVER --dbprefix=PREFIX --locale=pt_BR --extra-php <<PHP
- define( 'WP_DEBUG', false );
- define( 'WP_DEBUG_LOG', false );
- PHP
- Vanilla JS: https://plainjs.com/
- 30secondsofcode: https://30secondsofcode.org/
- Grid: Grid Layout
- Favicons Generator: http://realfavicongenerator.net/
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
Edit .bashrc | |
export PS1='\u@\h\[\033[01;34m\] \w\[\033[0;32m\]$(__git_ps1 " (%s)")\[\033[01;34m\]$\[\033[00m\] ' |
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
/** | |
* Scroll Handling & Smooth Scroll | |
*/ | |
let scroll = { | |
/** | |
* Fires a function on scroll with request animation frame | |
* @param {Function} fn Function to fire on scroll event | |
*/ | |
on: (fn) => { | |
window.addEventListener('scroll', () => window.requestAnimationFrame(fn)) |
OlderNewer