Skip to content

Instantly share code, notes, and snippets.

@tjadhav
tjadhav / quora.user.js
Last active August 20, 2019 12:24
Quora Script
// ==UserScript==
// @name Quora AdFree
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Remove ads
// @author Tushar
// @match https://www.quora.com/*
// @grant none
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery-countdown/2.0.2/jquery.plugin.min.js
// ==/UserScript==
@tjadhav
tjadhav / darkmode.user.js
Created August 1, 2019 13:06
Dark Mode for chAnQya.com
// ==UserScript==
// @name Chanqya Dark Mode
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Dark Mode
// @author Tushar Jadhav
// @match https://chanqya.com/*
// @run-at document-start
// @grant GM_addStyle
// ==/UserScript==
@tjadhav
tjadhav / hotstar.user.js
Last active July 17, 2019 13:38
Hotstar 5-minutes preview killer
// ==UserScript==
// @name Hotstar
// @namespace https://hotstar.com/
// @version 0.1
// @description Premium
// @author Tushar
// @match https://www.hotstar.com/*
// @grant none
// ==/UserScript==
@tjadhav
tjadhav / UUIDGenerator.js
Last active June 11, 2018 07:13
UUID Generator
// https://medium.com/@ideepak.jsd/javascript-generator-yield-next-async-await-e428b0cb52e4
function* UUIDGenerator() {
let d, r;
while (true) {
yield 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
r = (new Date().getTime() + Math.random() * 16) % 16 | 0;
d = Math.floor(d / 16);
return (c == 'x' ? r : (r & 0x3 | 0x8)).toString(16);
});
}
@tjadhav
tjadhav / annonate.sh
Created March 27, 2018 12:32
Annonate all AngularJS files
for f in $(find path/to/client -name '*.js');
do
ng-annotate -a $f -o $f;
echo $f;
done
echo "Done!";
{
"swagger": "2.0",
"info": {
"description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.",
"version": "1.0.0",
"title": "Swagger Petstore",
"x-lastModified": "July 22, 2015 5:34pm",
"termsOfService": "http://swagger.io/terms/",
"contact": {
"email": "[email protected]"