Skip to content

Instantly share code, notes, and snippets.

Ross Morsali rmorse

Block or report user

Report or block rmorse

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
wwwebman / docker-compose.yml
Last active Mar 29, 2020
Docker Compose For Wordpress, Maria/MYSQL, phpMyAdmin
View docker-compose.yml
version: '2'
container_name: database
image: mariadb # Pull mysql image from Docker Hub
ports: # Set up ports exposed for other containers to connect to
- "3306:3306"
- ./dep/mysql:/docker-entrypoint-initdb.d
JeffMatson / get_actions.php
Last active Feb 7, 2016
Prints the actions fired in WordPress, and how many times
View get_actions.php
add_action( 'shutdown', function(){
foreach( $GLOBALS['wp_actions'] as $action => $count )
printf( '%s (%d) <br/>' . PHP_EOL, $action, $count );
Restuta /
Last active Mar 24, 2020
Sizes of JS frameworks, just minified + minified and gzipped, (React, Angular 2, Vue, Ember)

Below is the list of modern JS frameworks and almost frameworks – React, Vue, Angular, Ember and others.

All files were downloaded from and named accordingly. Output from ls command is stripped out (irrelevant stuff)

As-is (minified)

$ ls -lhS
566K Jan  4 22:03 angular2.min.js
lukin0110 /
Last active Aug 7, 2019
Gulp + browserify + babelify + react

Use React with Gulp, Browserify and Babelify. This allows you to use React in jsx & node.js style. It let's you use require('module') in your JavaScript. Babelify will transform the jsx code to JavaScript code.


gulp build-react

This will generate a main.min.js file in the build directory with sourcemaps.


View gist:eb3c5b834e65b3a76756
/* start new bbpress */
.bbp-topic-voice-count {
display: none;
.bbp-topic-reply-count {
color: #aaa;
font-size: 80%;
margin-right: 20px !important;
width: inherit !important;
corsonr / gist:9597159
Created Mar 17, 2014
jQuery UI Datepicker French localization
View gist:9597159
/* French initialisation for the jQuery UI date picker plugin. */
/* Written by Keith Wood (kbwood{at},
Stéhane Nahmani (,
Stéphane Raimbault <> */
$.datepicker.regional['fr'] = {
closeText: 'Fermer',
prevText: 'Précédent',
nextText: 'Suivant',
currentText: 'Aujourd\'hui',
kasparsd / custom-post-taxonomy-permalinks.php
Created Jun 13, 2012
Create permalink structure URLs for custom post types that include all parent terms from a custom taxonomy
View custom-post-taxonomy-permalinks.php
Term Archive Pages:
Single Recipe Pages:
mikejolley / functions.php
Last active Aug 7, 2018
WooCommerce - Show quantity inputs for simple products within loops.
View functions.php
* Code should be placed in your theme functions.php file.
add_filter( 'woocommerce_loop_add_to_cart_link', 'quantity_inputs_for_woocommerce_loop_add_to_cart_link', 10, 2 );
function quantity_inputs_for_woocommerce_loop_add_to_cart_link( $html, $product ) {
if ( $product && $product->is_type( 'simple' ) && $product->is_purchasable() && $product->is_in_stock() && ! $product->is_sold_individually() ) {
$html = '<form action="' . esc_url( $product->add_to_cart_url() ) . '" class="cart" method="post" enctype="multipart/form-data">';
$html .= woocommerce_quantity_input( array(), $product, false );
supermethod / Wordpress RSS 2.0 image enclosure
Created Mar 8, 2011
How to add an enclosure to a wordpress RSS feed using the first image of the post - add to functions.php
View Wordpress RSS 2.0 image enclosure
function feedFilter($query) {
if ($query->is_feed) {
add_filter('rss2_item', 'feedContentFilter');
return $query;
function feedContentFilter($item) {
jonraasch /
Created Apr 21, 2010
Extends the object to CSS3 transition
// to verify that CSS3 transition is supported (or any of its browser-specific implementations)
$.support.transition = (function(){
var thisBody = document.body || document.documentElement,
thisStyle =,
support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined;
return support;
You can’t perform that action at this time.