Skip to content

Instantly share code, notes, and snippets.

mattstauffer /
Created Sep 14, 2020
Tighten Handbook Class Order

Extracted for the benefit of non-Tightenites.

Class "things" should be ordered as follows:

  1. Traits
  2. Statics properties
  3. Constants
  4. Instance properties
mattstauffer /
Created Jul 6, 2020
Simple BASH Xdebug toggler

Written by Matt Stauffer

Note: This expects that you've enabled Xdebug in a specific file: /usr/local/php/X.x/conf.d/ext-xdebug.ini.


Add this function to your .zshrc or similar file.


On the command line, type xdebug and hit enter. This will toggle whether or not Xdebug is running.


mattstauffer / Kids Books with Black
Last active Jun 11, 2020
Kids' books with Black protagonists
View Kids Books with Black

Note: Most of these are applicable to the ages older than I have listed, but I've put them where they were when my kids first started really enjoying them.

Infants (0-2ish?)

  • Shades of People
  • Peekaboo Morning and Peekaboo Bedtime

Really, anything in the "toddlers" section will be fine for these kids. But there aren't a ton of baby-focused books I know.

Toddlers (3-4 or 3-5ish?)

  • Sulwe
mattstauffer / example.html
Created Mar 3, 2020
Example of logging Laravel Livewiure component state
View example.html
<script src="{{ asset('js/app.js') }}"></script>
let logComponentsData = function () {
window.livewire.components.components().forEach(component => {
document.addEventListener("livewire:load", function(event) {
mattstauffer / 24days-theme-modification.css
Created Nov 13, 2019
Modification to the theme is using to make it more accessible
View 24days-theme-modification.css
.entry-meta {
color: #716868;
.entry-meta a {
color: #716868;
/* Page title */
mattstauffer / locales.json
Created Nov 8, 2019
A listing of the locales available on my Mac computer as of 2019-11-08
View locales.json
mattstauffer / navigation.php
Last active Jan 24, 2019
Possible structure for tailwind nav
View navigation.php
return [
'Installation' => [
'Installation' => 'installation',
'Configuration' => 'configuration',
'Colors' => 'colors',
'Responsive Design' => 'responsive-design',
'Adding New Utilities' => 'adding-new-utilities',
'Extracting Components' => 'extracting-components',
mattstauffer /
Last active Jan 24, 2019
Hacktoberfest 2017 for Tighten

Hacktoberfest logo

Every year Digital Ocean runs Hacktoberfest, which is a fun program that rewards developers for making pull requests to open source software. This year you could get stickers and a free t-shirt for participating!

Looking for some code you can write on Laravel-related applications for Hacktoberfest? Here are a few issues we have open. :)


  • Test the automatic-split tester called "Collector" to see if we can move to doing automatic splits per #2


mattstauffer /
Created Sep 5, 2017
My build script for creating a new Jigsaw post
function slugify {
echo "$1" | iconv -t ascii//TRANSLIT | sed -E s/[^a-zA-Z0-9]+/-/g | sed -E s/^-+\|-+$//g | tr A-Z a-z
# -------------------------------
echo Creating a new blog post.