Skip to content

Instantly share code, notes, and snippets.

View MattStypa's full-sized avatar
always learning

Matt Stypa MattStypa

always learning
View GitHub Profile
@MattStypa
MattStypa / matts_hot_tips.md
Last active September 1, 2023 20:57
🔥 Matt's Hot Tips
@MattStypa
MattStypa / zsh_prompt.md
Last active September 1, 2023 21:03
ZSH Prompt Node script
@MattStypa
MattStypa / Laracon US 2023 Coverage.md
Last active July 19, 2023 05:07
Laracon US 2023 coverage

Laracon US 2023 coverage

Coming Soon

@MattStypa
MattStypa / makeDirectory.js
Last active March 5, 2021 15:20
Create a directory at any depth
const fs = require('fs/promises');
const nodePath = require('path');
async function exists(path) {
try {
await fs.stat(nodePath.resolve(path));
return true;
} catch(error) {
if (error.code !== 'ENOENT') throw error;
return false;
@MattStypa
MattStypa / tailwind.config.js
Last active March 26, 2019 23:30
Tailwind 1.0 configuration using old color names
module.exports = {
theme: {
colors: {
'transparent': 'transparent',
'black': '#22292f',
'grey-darkest': '#3d4852',
'grey-darker': '#606f7b',
'grey-dark': '#8795a1',
'grey': '#b8c2cc',
<?php
namespace App\Console\Commands;
use Illuminate\Container\Container;
use Illuminate\Console\Command;
use Illuminate\Queue\Jobs\SyncJob;
class QueueSyncRetry extends Command
{
@MattStypa
MattStypa / tailwind_modules_as_plugins_speed_fix.md
Last active January 14, 2019 14:00
Modules as plugins speed fix.

The fix

I think I know what is causing the issue. I am not sure why though. I can only speculate.

Before I get into the nitty-gritty, here is the dirty fix.

# parseObjectStyles.js

import _ from 'lodash'
# Checkout master
git checkout master
# Make sure we are up to date
git pull
# Create new feature branch
git checkout -b {new_branch_name}
# Merge our work to the new branch
@MattStypa
MattStypa / terminalizer.yml
Created September 24, 2018 15:51
Terminalizer Config that I like
# Specify a command to be executed
# like `/bin/bash -l`, `ls`, or any other commands
# the default is bash for Linux
# or powershell.exe for Windows
command: null
# Specify the current working directory path
# the default is the current working directory path
cwd: null