Skip to content

Instantly share code, notes, and snippets.

Tom de Wit ttomdewit

Block or report user

Report or block ttomdewit

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
ttomdewit / CacheBuster.php
Created Jan 5, 2017
Trait for busting cache based on Eloquent events
View CacheBuster.php
namespace App\Traits;
use Illuminate\Support\Facades\Cache;
trait CacheBuster
public static function bootCacheBuster()
View index.html
<div class="container">
<div class="row">
<div class="col-full col-xs-12 col-sm-12 col-md-12 col-lg-12">
<div class="gallery | js-gallery">
<figure class="gallery__item | js-gallery-item"><a href="" data-size="1200x800"><img src="" /></a></figure>
<figure class="gallery__item | js-gallery-item"><a href="" data-size="1200x800"><img src="" /></a></figure>
</div><!-- /.gallery -->
<div class="gallery gallery--nav | js-gallery-nav">
<div class="gallery__item gallery__item--nav" style="background-image: url('');"></div><!-- /.gallery__item -->
View photoswipe.js
function photoswipe(gallerySelector) {
function parseElements(el) {
var elements = $(el).children('.gallery__item'),
numberOfElements = elements.length,
items = [],
View gulpfile.js
* Main Gulp file
* This main Gulp file imports all modules and
* creates all Gulp tasks accordingly.
* Table of contents
* 1) Load plugins
* 2) Styles
* 3) Scripts
View sublime text settings
"bold_folder_labels": true,
"close_windows_when_empty": false,
"color_scheme": "Packages/Predawn/predawn.tmTheme",
"draw_indent_guides": true,
"draw_white_space": "selection",
"ensure_newline_at_eof_on_save": true,
View apache2.conf
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See for detailed information about
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific
# hints.
# Summary of how the Apache 2 configuration works in Debian:
# The Apache 2 web server configuration in Debian is quite different to
# upstream's suggested way to configure the web server. This is because Debian's
ttomdewit / single-claims.php
Created Jun 28, 2015
This is at the bottom of single-claims.php, getting all data from an invoice
View single-claims.php
$invoice_fields = get_fields($fields['cla_fac_factuur'][0]);
$inv_customer = array(
'first_name' => $invoice_fields['inv_klant_voornaam'],
'last_name' => $invoice_fields['inv_klant_achternaam'],
'email' => $invoice_fields['inv_klant_email'],
'company_name' => $invoice_fields['inv_klant_bedrijfsnaam'],
'street_number' => $invoice_fields['inv_klant_straat_huisnummer'],
'zipcode' => $invoice_fields['inv_klant_postcode'],
You can’t perform that action at this time.