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
<div> | |
@if ($data['nextInspection']) | |
<div | |
class="text-gray inline-flex items-baseline text-base font-semibold" | |
> | |
@if ($data['nextInspection']->isToday()) | |
Your inspection is today! | |
@else | |
<span class="mr-2 text-xs font-medium text-gray-700"> | |
{{ $data['nextInspection']->diffForhumans() }} |
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 | |
use Filament\Resources\Resource; | |
use Filament\Tables; | |
use Filament\Tables\Grouping\Group; | |
use Filament\Tables\Table; | |
use Illuminate\Database\Eloquent\Builder; | |
class ReceiptResource extends Resource | |
{ |
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
# The package "google_fonts" has a bug related to font weights, | |
# dont bother using it, just do this instead: | |
# Click "Download Family" on https://fonts.google.com/specimen/Inter | |
# Unzip the file and throw the .ttf files into assets/fonts/ | |
# Specify the Font family in your code like so: | |
# MaterialApp(theme: ThemeData(fontFamily: "Inter")); | |
## Then add this config to your pubspec.yaml file | |
flutter: | |
assets: |
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; | |
use Illuminate\Support\Str; | |
use Symfony\Component\DomCrawler\Crawler; | |
class HtmlCompressor | |
{ | |
protected bool $removeComments = true; |
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; | |
use Illuminate\Support\Arr; | |
use OpenAI\Laravel\Facades\OpenAI; | |
use OpenAI\Responses\Chat\CreateResponse; | |
use Throwable; | |
class AI |
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
powershell [Console]::Beep(658, 125); [Console]::Beep(1320, 500); [Console]::Beep(990, 250); [Console]::Beep(1056, 250); [Console]::Beep(1188, 250); [Console]::Beep(1320, 125); [Console]::Beep(1188, 125); [Console]::Beep(1056, 250); [Console]::Beep(990, 250); [Console]::Beep(880, 500); [Console]::Beep(880, 250); [Console]::Beep(1056, 250); [Console]::Beep(1320, 500); [Console]::Beep(1188, 250); [Console]::Beep(1056, 250); [Console]::Beep(990, 750); [Console]::Beep(1056, 250); [Console]::Beep(1188, 500); [Console]::Beep(1320, 500); [Console]::Beep(1056, 500); [Console]::Beep(880, 500); [Console]::Beep(880, 500); sleep -m 250; [Console]::Beep(1188, 500); [Console]::Beep(1408, 250); [Console]::Beep(1760, 500); [Console]::Beep(1584, 250); [Console]::Beep(1408, 250); [Console]::Beep(1320, 750); [Console]::Beep(1056, 250); [Console]::Beep(1320, 500); [Console]::Beep(1188, 250); [Console]::Beep(1056, 250); [Console]::Beep(990, 500); [Console]::Beep(990, 250); [Console]::Beep(1056, 250); [Console]::Beep(1188, 500); [ |
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\Scraping; | |
use App\HtmlCompressor; | |
use Closure; | |
use OpenAI; | |
use Spatie\Fork\Fork; | |
class SelectorFinder |
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\Console\Commands; | |
use App\Crawler\ExtractWithAI; | |
use Crwlr\Crawler\HttpCrawler; | |
use Crwlr\Crawler\Steps\Html; | |
use Crwlr\Crawler\Steps\Loading\Http; | |
use Crwlr\Crawler\Stores\SimpleCsvFileStore; | |
use Crwlr\Crawler\UserAgents\BotUserAgent; |
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
// Get defaultView from LocalStorage, fallback on basicWeek if it is not set yet. | |
var defaultView = (localStorage.getItem("fcDefaultView") !== null ? localStorage.getItem("fcDefaultView") : "basicWeek"); | |
$('#calendar').fullCalendar({ | |
header: { | |
left: 'prev,next today', | |
center: 'title', | |
right: 'month,basicWeek,basicDay' | |
}, | |
defaultView: defaultView, | |
viewRender: function (view, element) { |
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
# Stop and disable NGINX | |
sudo systemctl stop nginx | |
sudo systemctl disable nginx | |
# Install Go | |
wget https://go.dev/dl/go1.20.2.linux-amd64.tar.gz | |
sudo rm -rf /usr/local/go | |
sudo tar -C /usr/local -xzf go1.20.2.linux-amd64.tar.gz | |
rm -f go1.20.2.linux-amd64.tar.gz |
OlderNewer