Skip to content

Instantly share code, notes, and snippets.

Avatar

Matt Stauffer mattstauffer

View GitHub Profile
@mattstauffer
mattstauffer / class-order.md
Created Sep 14, 2020
Tighten Handbook Class Order
View class-order.md

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
mattstauffer / info.md
Created Jul 6, 2020
Simple BASH Xdebug toggler
View info.md

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.

Installation

Add this function to your .zshrc or similar file.

Usage

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

Inspiration

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

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
mattstauffer / example.html
Created Mar 3, 2020
Example of logging Laravel Livewiure component state
View example.html
<script src="{{ asset('js/app.js') }}"></script>
<script>
let logComponentsData = function () {
window.livewire.components.components().forEach(component => {
console.log(component.name);
console.log(component.data);
});
};
document.addEventListener("livewire:load", function(event) {
@mattstauffer
mattstauffer / 24days-theme-modification.css
Created Nov 13, 2019
Modification to the theme 24daysindecember.net is using to make it more accessible
View 24days-theme-modification.css
.entry-meta {
color: #716868;
}
.entry-meta a {
color: #716868;
}
/* Page title */
@mattstauffer
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
[
"af",
"af_NA",
"af_ZA",
"agq",
"agq_CM",
"ak",
"ak_GH",
"am",
"am_ET",
@mattstauffer
mattstauffer / navigation.php
Last active Jan 24, 2019
Possible structure for tailwind nav
View navigation.php
<?php
return [
'Installation' => [
'Installation' => 'installation',
'Configuration' => 'configuration',
'Colors' => 'colors',
'Responsive Design' => 'responsive-design',
'Adding New Utilities' => 'adding-new-utilities',
'Extracting Components' => 'extracting-components',
@mattstauffer
mattstauffer / blog.md
Last active Jan 24, 2019
Hacktoberfest 2017 for Tighten
View blog.md

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. :)

Collect

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

Symposium

@mattstauffer
mattstauffer / makepost.sh
Created Sep 5, 2017
My build script for creating a new Jigsaw post
View makepost.sh
#!/bin/bash
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
echo Creating a new blog post.
You can’t perform that action at this time.