Skip to content

Instantly share code, notes, and snippets.

@ThomasLarge
ThomasLarge / keybase.md
Created April 24, 2020 16:39
keybase.md

Keybase proof

I hereby claim:

  • I am thomaslarge on github.
  • I am tomlargedev (https://keybase.io/tomlargedev) on keybase.
  • I have a public key ASCRLJuNzBjBcKJnMTfMcfs1WB_s2ZapcQ6qSiQeNRrx8Ao

To claim this, I am signing this object:

@ThomasLarge
ThomasLarge / wordpress-valet-install.md
Created April 11, 2019 12:51 — forked from orumad/wordpress-valet-install.md
How to install Wordpress from command line in Valet

How to install Wordpress from command line in Valet

I use Valet as my local web development environment (PHP, Laravel, Wordpress, ...)

This gist is my own recipe to install Wordpress from the command line to use it with Valet. Maybe this is useful for you too.

Install 'WP-CLI' command line tool

@ThomasLarge
ThomasLarge / templating.md
Created April 25, 2018 14:51 — forked from brandonkelly/templating.md
Templating in EE vs. Craft
@ThomasLarge
ThomasLarge / componentFactory.js
Created March 9, 2018 10:36
Foundation email / Inky - Outlook background colour fix - Add bgcolor to toplevel wrappers and rows
// Row amends - Row line 19
// Original
// <row>
case this.components.row:
var classes = ['row'];
if (element.attr('class')) {
classes = classes.concat(element.attr('class').split(' '));
}
@ThomasLarge
ThomasLarge / index.html
Last active May 1, 2018 09:37
Preloader with Gsap
<!-- Preloader -->
<div id="preloader">
<div id="status">&nbsp;</div>
</div>
@ThomasLarge
ThomasLarge / cmdline.txt
Last active January 31, 2018 14:55
RasberryPi RetroPi joystick set up process
## Here is a set up guide if you have brought these controls - http://www.ultracabs.co.uk/usb-interface--standard-joystick-set-109-p.asp and having trouble setting them up
## Step 1
Reset your Memory card in your Pi and start from the beginning. Download the IMG from here - https://retropie.org.uk/download/
## Step 2
Use a program to burn the IMG to the SD card then put this in your Pi
@ThomasLarge
ThomasLarge / Moving-dev-to-live.txt
Last active January 23, 2018 10:11
Magento 2 helpers
# How to run commands to push front end files to live
@ThomasLarge
ThomasLarge / woocommerce-simple-or-variable.php
Created December 18, 2017 15:12 — forked from patrickgilmour/woocommerce-simple-or-variable.php
WooCommerce conditional to test if a Product is Simple or Variable.
<?php
/**
* Is a WooCommerce Product Simple or Variable
*
* see http://wordpress.org/support/topic/condition-to-check-if-product-is-simple-or-variable
*/
if( $product->is_type( 'simple' ) ){
// a simple product
# Include panels - acf pro
<?php
if( get_field('content_panels') ):
while ( has_sub_field('content_panels') ) :
if( get_row_layout() == 'columns_panel' ):
get_template_part( 'panels/columns' );
@ThomasLarge
ThomasLarge / foundation-helpers.txt
Created November 21, 2017 15:31
Foundation 6 helpers
# Open a modal on load
$('#modalName').foundation('open');