This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Traits; | |
use Hashids\Hashids; | |
use Illuminate\Database\Eloquent\Builder; | |
use Illuminate\Database\Eloquent\Casts\Attribute; | |
use Illuminate\Support\Str; | |
trait Hashid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
Help() { | |
echo "Prepare the app for deployment." | |
echo "This script will run Pint, generate Ziggy routes, and then run Prettier, before adding all changed files for committing." | |
echo | |
echo "Syntax: prepare [pint|ziggy|pretier|h|help]" | |
echo "options:" | |
echo "pint Format PHP files with Pint." | |
echo "ziggy Generate Ziggy routes." | |
echo "prettier Format front end files with Prettier." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
isInStandaloneMode() { | |
return (window.matchMedia("(display-mode: standalone)").matches) || | |
(("standalone" in window.navigator) && (window.navigator.standalone)); | |
} | |
isMac() { | |
return /(macintosh|macintel|macppc|mac68k|macos)/i.test(window.navigator.userAgent.toLowerCase()); | |
} | |
isIos() { | |
return /iphone|ipad|ipod/i.test(window.navigator.userAgent.toLowerCase()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.modal { | |
display: flex; | |
align-items: flex-end; | |
&.fade { | |
.modal-dialog-bottom { | |
position: absolute; | |
bottom: 0; | |
transition: transform 0.4s; |