Skip to content

Instantly share code, notes, and snippets.

View Neeraj1005's full-sized avatar
🎯
Focusing

Neeraj Singh Neeraj1005

🎯
Focusing
View GitHub Profile
@Neeraj1005
Neeraj1005 / slider-next-prev.md
Created February 15, 2023 09:24 — forked from neeraj-tangariya/slider-next-prev.md
slider next and previous button incrementation and decrementation
let up = true;
let down = true;
let screenCounter = 0;
let incrementBy = 1;
let defaultTftMode = "light";
const lengthOfScreen = 4;

// direction would be up or down
function changeScreen(direction = null) {
@Neeraj1005
Neeraj1005 / GitDeleteCommands.ps1
Created March 27, 2021 10:31 — forked from cmatskas/GitDeleteCommands.ps1
Git Delete Branch commands
## Delete a remote branch
$ git push origin --delete <branch> # Git version 1.7.0 or newer
$ git push origin :<branch> # Git versions older than 1.7.0
## Delete a local branch
$ git branch --delete <branch>
$ git branch -d <branch> # Shorter version
$ git branch -D <branch> # Force delete un-merged branches
## Delete a local remote-tracking branch
@Neeraj1005
Neeraj1005 / UsersTable.php
Created January 5, 2021 06:05 — forked from davidgrzyb/UsersTable.php
Livewire Infinite Scroll Example
<?php
namespace App\Http\Livewire;
use App\Models\User;
use Livewire\Component;
class UsersTable extends Component
{
public $totalRecords;