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
<!-- | |
Use like this | |
TextEntry::make('data') | |
->label('Data') | |
->view('filament.infolists.json-view') | |
->columnSpanFull(), | |
--> |
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
# Credits: https://blog.segger.com/decoding-the-akai-fire-part-1/ | |
import rtmidi | |
import threading | |
import time | |
# Constants | |
BITMAP_SIZE = 1171 # For OLED 128x64, calculated as ceil(128*64/7) | |
BITMUTATE = [ | |
[13, 0, 1, 2, 3, 4, 5, 6], |
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 Illuminate\Console\Command; | |
use Illuminate\Support\Facades\DB; | |
class DumpContext extends Command | |
{ | |
protected $signature = 'db:dump-context'; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>DnB Beat Generator Visualization</title> | |
<style> | |
body, html { | |
margin: 0; | |
overflow: hidden; |
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
<?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; | |
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\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
# 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 | |
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 | |
{ |
NewerOlder