Skip to content

Instantly share code, notes, and snippets.

View giorgioriccardi's full-sized avatar
🎯
Focusing

Giorgio Riccardi giorgioriccardi

🎯
Focusing
  • Giorgio Riccardi Creations
  • Vancovuer, BC, Canada
View GitHub Profile
@DavidPeralvarez
DavidPeralvarez / core-blocks.txt
Last active September 20, 2022 08:04
Gutenberg core blocks list
// Útil para filtros de Gutenberg como "allowed_block_types"
archives
audio
button
categories
code
column
columns
coverImage
@eri-trabiccolo
eri-trabiccolo / custom_post_lists_comp.php
Last active August 29, 2015 14:16
Customizr > 3.3.11 <? custom post lists
<?php /*Add the following code at the very beginning of your template file, just after the Template declarative block */ ?>
<?php
// strangely you have to set this to false, typo in the core code.
// useful just when you display the page which uses this template in home as static page
// consider that the navigation will not work properly (and not because of customizr :P)
add_filter('tc_display_customizr_headings', '__return_false');
add_filter('tc_post_list_controller', '__return_true');
@eri-trabiccolo
eri-trabiccolo / container-header.php
Last active August 29, 2015 14:15
container header
add_action('__header', 'tc_header_container_start', 0);
function tc_header_container_start(){
echo '<div class="tc-header-container container">';
}
add_action('__header', 'tc_header_container_end', 100);
function tc_header_container_end(){
echo '</div>';
}
$args = array(
'tag' => 'featured',
'category__in' => array( 43, 52 ),
'author__in' => array( 255, 930 )
);
$author_featured_posts = new WP_Query( $args );
@itsmattsoria
itsmattsoria / gistfil1.textile
Last active July 3, 2024 05:36
Mac Terminal Cheat Sheet

SHORTCUTS

Key/Command Description
Tab Auto-complete files and folder names
Ctrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + U Clear the line before the cursor
Ctrl + K Clear the line after the cursor
Ctrl + W Delete the word before the cursor
Ctrl + T Swap the last two characters before the cursor