Skip to content

Instantly share code, notes, and snippets.

View nobledave's full-sized avatar

DΛVΞ nobledave

View GitHub Profile
@nobledave
nobledave / query.php
Last active October 4, 2018 10:01
Laravel last query gist
/**
* If needed a simple exposer of query requested to database.
* @param $queryCall
* @return mixed
*/
protected function getLastQuery($queryCall){
return print_r($queryCall->toSql());
}
@nobledave
nobledave / wp-query-ref.php
Created June 20, 2018 14:08 — forked from luetkemj/wp-query-ref.php
WP: Query $args
// This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.github.io
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php
*/
@nobledave
nobledave / jquery.smooth-hash.md
Created March 13, 2018 13:18 — forked from matteodelabre/ jquery.smooth-hash.md
jQuery plugin that adds transition on anchor click

Smooth hash

jQuery plugin that adds scrolling transition on click on anchor link.

How to use:

$(document).smoothHash();