Skip to content

Instantly share code, notes, and snippets.

View dineshuprety's full-sized avatar
🤸
I may be slow to respond.

Dinesh Uprety dineshuprety

🤸
I may be slow to respond.
View GitHub Profile
@dineshuprety
dineshuprety / HTTPStatusCode.php
Created April 18, 2025 10:00
a well-structured PHP 8.4 class that encapsulates HTTP status codes with their corresponding messages, providing a type-safe way to work with status codes in your applications.
<?php
declare(strict_types=1);
namespace App\Http;
/**
* HTTP Status Code Class
*
* Provides a comprehensive collection of HTTP status codes with their
@dineshuprety
dineshuprety / zohotracker
Last active September 11, 2022 16:53
This extension helps you track the emails you send using Zoho Mail. It generates the tracking button for Zoho mail to insert the tracker url.
// zoho tracker button generator for zoho CRM
// version 1.1
// author: Dinesh Uprety
let styleSheet = `
.message{font-family:'Montserrat',sans-serif;width:100px;display:none;bottom:20px;left:50%;right:50%;margin:auto;color:#000;padding:15px;background-color:#fff;border-radius:5px;box-shadow:0 3px 15px #b8c6db;-moz-box-shadow:0 3px 15px #b8c6db;-webkit-box-shadow:0 3px 15px #b8c6db;z-index:99999}.button-85{padding:.6em 2em;border:none;outline:none;color:#fff;background:#111;cursor:pointer;position:relative;z-index:0;border-radius:10px;user-select:none;-webkit-user-select:none;touch-action:manipulation}.button-85:before{content:"";background:linear-gradient(45deg,red,#ff7300,#fffb00,#48ff00,#00ffd5,#002bff,#7a00ff,#ff00c8,red);position:absolute;top:-2px;left:-2px;background-size:400%;z-index:-1;filter:blur(5px);-webkit-filter:blur(5px);width:calc(100% + 4px);height:calc(100% + 4px);animation:glowing-button-85 20s linear infinite;transition:opacity .3s ease-in-out;border-radius:10px}@keyfram