Skip to content

Instantly share code, notes, and snippets.

View example.ps
$CustomPaths = @(
@{Name = "Cubs"; Path = "C:\cubs"; Exclude = @('*.txt', '*.pdf')},
@{Name = "Cubs"; Path = "C:\cubs"; Exclude = @('*.txt', '*.pdf')},
@{Name = "Cubs"; Path = "C:\cubs"; Exclude = @('*.txt', '*.pdf')},
@{Name = "Cubs"; Path = "C:\cubs"; Exclude = @('*.txt', '*.pdf')},
)
# Handle Mapping all the custom values
forEach ($Location in $CustomPaths) {
View S3SwapUrlGenerator.php
<?php
namespace App\Wilber\MediaLibrary\UrlGenerator;
use Illuminate\Contracts\Config\Repository as Config;
use Illuminate\Filesystem\FilesystemManager;
use Spatie\MediaLibrary\UrlGenerator\S3UrlGenerator;
class S3SwapUrlGenerator extends S3UrlGenerator
{
@JacobBennett
JacobBennett / problem.php
Created Dec 31, 2019
A little mess I had on my hands today
View problem.php
<?php
$start = Carbon::parse('2019-12-24');
$end = Carbon::parse('2020-01-04');
$birthDate = Carbon::parse('1985-12-24')->addDays(random_int(0,6));
// figure out if month and day of birthDate is between the $start and $end
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions