Skip to content

Instantly share code, notes, and snippets.

View bellinilo's full-sized avatar

Lorenzo Bellini bellinilo

  • Emberware srls
  • Milan
View GitHub Profile
@bellinilo
bellinilo / about.md
Created August 24, 2021 10:57 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@bellinilo
bellinilo / gist:29160eee87171425cdbca2a55b83d82c
Created April 30, 2019 21:46 — forked from digitaljhelms/gist:4287848
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
function alter_the_query( $request ) {
$dummy_query = new WP_Query(); // the query isn't run if we don't pass any query vars
$dummy_query->parse_query( $request );
// this is the actual manipulation; do whatever you need here
if ( $dummy_query->is_home() )
$request['category_name'] = 'news';
return $request;
}
@bellinilo
bellinilo / 0_reuse_code.js
Created December 6, 2013 11:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console