Skip to content

Instantly share code, notes, and snippets.

Avatar

Matt Stauffer mattstauffer

View GitHub Profile
@mattstauffer
mattstauffer / articles-and-projects.md
Last active Oct 26, 2021
SOL articles and projects
View articles-and-projects.md

Tutorials

Tools to clone and use

View 0. Getting Started With Solana.md

Welcome! This is my best, simple, introduction for how to buy Solana, and, if you want, also to buy NFTs using it.

@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',