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
function jump -d "Jumps to a marked directory" | |
# If $JUMP_PATH isn't set, use a default (~/.config/jump). | |
if set -q $JUMP_PATH | |
set JUMP_PATH $HOME/.config/jump | |
end | |
# If the $JUMP_PATH directory doesn't exist, create it. | |
if not test -d $JUMP_PATH | |
mkdir -p $JUMP_PATH | |
end |
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 | |
// This file assumes that you have included the nav walker from https://github.com/twittem/wp-bootstrap-navwalker | |
// somewhere in your theme. | |
?> | |
<header class="banner navbar navbar-default navbar-static-top" role="banner"> | |
<div class="container"> | |
<div class="navbar-header"> | |
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse"> | |
<span class="sr-only"><?= __('Toggle navigation', 'sage'); ?></span> |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 | |
// the query | |
$the_query = new WP_Query( $args ); ?> | |
<?php if ( $the_query->have_posts() ) : ?> | |
<!-- pagination here --> | |
<!-- the loop --> | |
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?> |
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-family: Helvetica, Arial, sans-serif; | |
font-weight: 400; | |
font-style: normal; | |
font-size: 1.125rem; | |
line-height: 1.6875rem; | |
max-width: 760px; | |
padding: 1.6875rem; | |
margin: 0 auto; | |
} |
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 | |
$args = array ( | |
'post_type' => 'post-type', | |
'posts_per_page' => -1 | |
); | |
$query = new WP_Query( $args ); | |
?> | |
<?php while( $query->have_posts() ): $query->the_post(); ?> | |
[content] |
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
.h1 { font-size: 2rem } | |
.h2 { font-size: 1.5rem } | |
.h3 { font-size: 1.25rem } | |
.h4 { font-size: 1rem } | |
.h5 { font-size: .875rem } | |
.h6 { font-size: .75rem } | |
.sans-serif { font-family: "museo-sans", sans-serif; } | |
.font-desyrel { font-family: 'Desyrel';} | |
.font-family-inherit { font-family: inherit } |
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
<!-- | |
1. Seguir la siguiente documentacion: https://www.advancedcustomfields.com/resources/google-map/ | |
2. El siguiente markup generara una lista de botones con el nombre de cada ubicación subida via | |
custom fields, cada boton obtiene la clase de 'setCenter' y hereda como atributos HTML5 la | |
latitud y longitud de la ubicacion seleccionada. | |
--> |
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
var $grid = $('.grid').isotope({ | |
itemSelector: '.grid-item', | |
masonry: { | |
horizontalOrder: true, | |
} | |
}); | |
$grid.imagesLoaded().progress(function() { | |
$grid.isotope('layout'); | |
}); |
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
<!DOCTYPE html> | |
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>stringify</title> | |
<meta name="description" content=""> |
OlderNewer