Skip to content

Instantly share code, notes, and snippets.

View iammuttaqi's full-sized avatar
🖥️
Coding

Muttaqi iammuttaqi

🖥️
Coding
View GitHub Profile
@iammuttaqi
iammuttaqi / Tags.php
Created November 9, 2023 14:24
TALL stack Tags Input using blade component
<?php
namespace App\View\Components;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
class Tags extends Component
{
@iammuttaqi
iammuttaqi / Tags.php
Created November 8, 2023 22:13
TALL stack tags input (daisy ui as tailwind framework)
<?php
namespace App\Http\Livewire\Components;
use Livewire\Attributes\Modelable;
use Livewire\Component;
class Tags extends Component
{
#[Modelable]
@iammuttaqi
iammuttaqi / ImageCropper.php
Last active November 8, 2023 22:14
TALL stack image cropper using CropperJs (daisy ui as tailwind framework)
<?php
namespace App\Http\Livewire\Components;
use Livewire\Attributes\Modelable;
use Livewire\Component;
class ImageCropper extends Component
{
#[Modelable]
@iammuttaqi
iammuttaqi / Laravel Countries Seeder
Created July 1, 2023 11:48
Add `CountrySeeder` to `DatabaseSeeder` file
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class CountrySeeder extends Seeder
{
/**
{"name":"update-october-2","settings":"{\"settings\":\"{\\r\\n \\\"workbench.startupEditor\\\": \\\"none\\\",\\r\\n \\\"editor.fontFamily\\\": \\\"Jetbrains Mono\\\",\\r\\n \\\"editor.fontLigatures\\\": true,\\r\\n \\\"editor.padding.bottom\\\": 10,\\r\\n \\\"editor.padding.top\\\": 10,\\r\\n \\\"editor.fontSize\\\": 11,\\r\\n \\\"workbench.iconTheme\\\": \\\"material-icon-theme\\\",\\r\\n \\\"editor.lineHeight\\\": 3,\\r\\n \\\"git.autofetch\\\": true,\\r\\n \\\"editor.wordWrap\\\": \\\"on\\\",\\r\\n \\\"editor.cursorSmoothCaretAnimation\\\": \\\"on\\\",\\r\\n \\\"editor.formatOnSave\\\": true,\\r\\n \\\"editor.codeActionsOnSave\\\": {\\r\\n \\\"source.fixAll.eslint\\\": true,\\r\\n \\\"source.fixAll.tslint\\\": true,\\r\\n \\\"source.organizeImports\\\": true\\r\\n },\\r\\n \\\"emmet.triggerExpansionOnTab\\\": true,\\r\\n \\\"explorer.autoReveal\\\": false,\\r\\n \\\"editor.renderWhitespace\\\": \\\"none\\\",\\r\\n \\\"terminal.integrated.fontSize\\\": 12,\\r\\n \\\"discord.detai
# remove specific file from git cache
git rm --cached filename
# remove all files from git cache
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
@iammuttaqi
iammuttaqi / meta-tags.md
Created January 28, 2021 20:43 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">