Skip to content

Instantly share code, notes, and snippets.

@sumitpore
sumitpore / gist:aac8fc0b2b133c098c002fecc0ea88cd
Last active July 23, 2020 13:26
Git process to prevent overriding of other's code
git add .
git stash
git pull --rebase
git stash pop
git status
git commit
git push
@sumitpore
sumitpore / git merge using CLI.txt
Last active March 17, 2020 09:27
Merging Through CLI
git fetch origin
git checkout -b "source-branch" "origin/source-branch"
git checkout "origin/target-branch"
git merge --no-ff "source-branch"
git commit -m "Commit Message"
git push origin HEAD:target-branch
@NoelDeMartin
NoelDeMartin / README.md
Last active April 29, 2024 10:53
Laravel's tap helper implementation in Javascript & Typescript

I recently added this code to my utils package, so you are welcome to use it you want this. It's tree-shakable, so you don't have to worry about everything else!

@gwleuverink
gwleuverink / progress-bar.blade.php
Last active July 10, 2025 21:05
Progress bar blade component
@props([
'percentage' => 0,
'failed' => false
])
@php
$done = $failed || $percentage == 100;
@endphp
<div {{ $attributes->merge(['class' => ' space-y-1'])->whereDoesntStartWith('wire:poll') }}
@samselikoff
samselikoff / tailwind.config.js
Created April 16, 2021 15:57
Firefox plugin for Tailwind CSS. Add styles that target Firefox browser only.
const plugin = require("tailwindcss/plugin");
module.exports = {
mode: "jit",
purge: {
content: ["./src/**/*.{js,ts,jsx,tsx,mdx,vue}"],
},
theme: { extend: {} },
variants: {},
plugins: [