Skip to content

Instantly share code, notes, and snippets.

View GaurangTandon's full-sized avatar

Gaurang Tandon GaurangTandon

  • IIIT Hyderabad
  • India
View GitHub Profile
@GaurangTandon
GaurangTandon / JournalListForLS.txt
Last active June 8, 2018 10:06
For the CitationHelperForSE extension; execute in Console; adapted from JabRef
localStorage.setItem("journalList", {"\"Meteor\" Forschungsergebnisse":"\"Meteor\" Forschungsergeb.",
"2D Materials":"2D Mater.",
"3D Printing and Additive Manufacturing":"3D Print. Addit. Manuf.",
"AACN Clinical Issues":"AACN Clin. Issues",
"AACN Clinical Issues in Critical Care Nursing":"AACN Clin. Issues Crit. Care Nurs.",
"AADE Editors Journal":"AADE Ed. J.",
"AANA Journal":"AANA J.",
"AANNT Journal":"AANNT J.",
"AAOHN Journal":"AAOHN J.",
"AAPG Bulletin":"AAPG Bull.",
@GaurangTandon
GaurangTandon / Demobug.user.js
Last active June 9, 2018 05:09
SO question
// ==UserScript==
// @name Demobug
// @version 0.1
// @description Demo bug
// @author https://stackoverflow.com/users/2675672/gaurang-tandon
// @match *://*.stackoverflow.com/*
// @grant none
// ==/UserScript==
(function() {
@GaurangTandon
GaurangTandon / Citation Helper for StackExchange.user.js
Created June 9, 2018 12:15
beta version of Citation Helper for StackExchange userscript
// ==UserScript==
// @name Citation Helper for StackExchange
// @description Helps insert citations easily on StackExchange
// @author Gaurang Tandon
// @match *://*.askubuntu.com/*
// @match *://*.mathoverflow.net/*
// @match *://*.serverfault.com/*
// @match *://*.stackapps.com/*
// @match *://*.stackexchange.com/*
// @match *://*.stackoverflow.com/*
@GaurangTandon
GaurangTandon / Comment keyboard shortcuts.user.js
Last active June 12, 2018 14:00
Bold, italics, link, and custom shortcuts for comments in Stack Exchange
// ==UserScript==
// @name Comment Keyboard shortcuts
// @version 0.1
// @description Bold, italics, link, and custom shortcuts for comments in Stack Exchange
// @author Gaurang Tandon
// @match *://*.askubuntu.com/*
// @match *://*.mathoverflow.net/*
// @match *://*.serverfault.com/*
// @match *://*.stackapps.com/*
// @match *://*.stackexchange.com/*
@GaurangTandon
GaurangTandon / MarkdownShortcutsSE.user.js
Last active June 14, 2018 11:30
easily insert common (cuztomizable) LaTeX shortcuts
// ==UserScript==
// @name Markdown Shortcuts for StackExchange
// @version 0.1
// @description easily insert common (cuztomizable) LaTeX shortcuts
// @author Gaurang Tandon
// @match *://*.askubuntu.com/*
// @match *://*.mathoverflow.net/*
// @match *://*.serverfault.com/*
// @match *://*.stackapps.com/*
// @match *://*.stackexchange.com/*

Expansive Tech Quiz

Google assisstant action, created June 2019

We do not collect any data. No personal data of the user is ever even involved in any way from the moment the app runs till the moment it is closed. This is literally a simple general tech GK quiz. We do not have any of your data, hence, we cannot share it with anyone.

@GaurangTandon
GaurangTandon / questions.md
Last active October 22, 2020 04:07
Questions for Lazy Segtree Meet

Basic segtree (prerequisite)

Given n values a[1], ..., a[n], you entertain two types of queries:

  • point update: add x to the i-th value
  • range query: query minimum value of a[i] in the range l, r

Around 5 mins max. LIVE CODE.

Simple lazy segtree

# Basic segtree (prerequisite)
Given n values `a[1], ..., a[n]`, you entertain two types of queries:
- point update: add `x` to the i-th value
- range query: query minimum value of `a[i]` in the range `l, r`
LIVE CODE.
# Simple lazy segtree

Basic segtree (prerequisite)

Given n values a[1], ..., a[n], you entertain two types of queries:

  • point update: add x to the i-th value
  • range query: query minimum value of a[i] in the range l, r

LIVE CODE.

Simple lazy segtree

@GaurangTandon
GaurangTandon / close-ssh.user.js
Created February 14, 2021 06:46
Userscript to allow cloning with SSH directly from GitHub UI
// ==UserScript==
// @name SSH clone button
// @version 0.1
// @description For those who have SSH default in their repo
// @author Gaurang
// @match https://github.com/*/*
// @grant none
// ==/UserScript==
(function() {