Skip to content

Instantly share code, notes, and snippets.

View 2rohityadav's full-sized avatar
🌴
Working From Home

Rohit Kumar 2rohityadav

🌴
Working From Home
View GitHub Profile
@2rohityadav
2rohityadav / privacy-policy.md
Created March 3, 2026 10:11
privacy-policy.md

Privacy Policy — Time Viewer Tooltip

Last updated: March 3, 2026

Data Collection

Time Viewer Tooltip does not collect, store, or transmit any personal data or browsing information.

How It Works

The extension runs entirely in your browser. It scans the visible text on web pages for ISO 8601 UTC timestamps and displays a tooltip with the converted time in IST. No data ever leaves your device.

@2rohityadav
2rohityadav / lighthouserc.schema.yml
Created January 19, 2024 09:52
Unofficial lighthouserc.yml schema
$schema: https://json-schema.org/draft/2020-12/schema
title: .lighthouserc
description: Lighthouse CI configuration JSON schema. Reference: https://github.com/GoogleChrome/lighthouse-ci/blob/main/docs/configuration.md
type: object
properties:
ci:
type: object
properties:
collect:
type: object
@2rohityadav
2rohityadav / Storing-Images-On-Github.md
Created May 29, 2023 18:07 — forked from joncardasis/Storing-Images-On-Github.md
Storing Images and Demos in your Repo

Storing Images and Demos in your Repo

In this quick walkthough you'll learn how to create a separate branch in your repo to house your screenshots and demo gifs for use in your master's readme.

How to

1. Clone a fresh copy of your repo

In order to prevent any loss of work it is best to clone the repo in a separate location to complete this task.

2. Create a new branch

Create a new branch in your repo by using git checkout --orphan assets

@2rohityadav
2rohityadav / vscode-settings-mac.json
Created April 20, 2023 16:47
vscode-settings.json | mac Only
{
"workbench.iconTheme": "material-icon-theme",
"workbench.colorTheme": "Monokai Pro (Filter Spectrum)",
"editor.inlayHints.fontFamily": "Fira Code",
"editor.fontFamily": "Fira Code",
"editor.fontSize": 14,
"editor.tabSize": 2,
"editor.wordWrap": "on",
"editor.formatOnSave": true,
"editor.formatOnPaste": true,

Angular - Unit Testing | Code Coverage | Chrome headless

1) Configuarion in karma.conf.js -

browsers: ['ChromeHeadless', 'Chrome'],

2) Configuarion in package.json

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Shallow vs Deep Copy</title>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="../video-pages/main.css">
</head>
<body>
<header>
@2rohityadav
2rohityadav / neovim-install-providers-in-windows.md
Created October 28, 2021 16:58 — forked from goldie-lin/neovim-install-providers-in-windows.md
Install provider-* for Neovim (nvim) in Windows

Install provider-* for Neovim (nvim) in Windows

:h provider-python

First, add those lines in your %LocalAppData%\nvim\init.vim:

" Source local init.vim {{{1
let s:local_vimrc = expand('$LOCALAPPDATA\nvim\init.local.vim')
if filereadable(fnameescape(s:local_vimrc))
@2rohityadav
2rohityadav / queryParams.md
Created September 16, 2021 12:14
Add or update query string parameter
  • JavaScript Version
function updateUrlParameter(uri, key, value) {
    // remove the hash part before operating on the uri
    var i = uri.indexOf('#');
    var hash = i === -1 ? ''  : uri.substr(i);
    uri = i === -1 ? uri : uri.substr(0, i);

 var re = new RegExp("([?&amp;])" + key + "=.*?(&amp;|$)", "i");
/*
* The default style sheet used to render HTML.
*
* Copyright (C) 2000 Lars Knoll (knoll@kde.org)
* Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
@2rohityadav
2rohityadav / vscode-settings-win.json
Last active April 20, 2023 16:45
vscode-settings.json | Windows Only
{
"workbench.iconTheme": "material-icon-theme",
// FiraCode
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"editor.tabSize": 2,
"editor.detectIndentation": false,
"window.zoomLevel": 0,
// Enable/disable navigation breadcrumbs
"breadcrumbs.enabled": true,