Skip to content

Instantly share code, notes, and snippets.

View mayankagarwal2402's full-sized avatar

darthpool mayankagarwal2402

  • elevenapps
  • Bangalore, India
View GitHub Profile
@mayankagarwal2402
mayankagarwal2402 / mark_vendor_viewed.js
Created October 8, 2021 01:29
hide/mark as viewed the vendor files in your PR if you manage vendor depencies inside your golang project for clutter free review
// Usage:
// open the files tab in the PR you want to review with vendor files
// copy paste following function in your developer tools console and run the func hideVendorFiles()
function hideVendorFiles() {
var lp = document.querySelectorAll('div.file-info a.Link--primary')
var lp2 = [...lp].filter(l => l.title.startsWith('vendor/'))
for (l of lp2) {
@mayankagarwal2402
mayankagarwal2402 / mng_followed_acc.js
Created October 8, 2021 01:25
script to help view and manage the list of accounts you follow using the the desktop website.
// Usage:
// open https://www.instagram.com/
// ensure you are logged in
// copy past script in your developer tools console
// or create a new saved snippet in the sources tab of developer tools, comes in handy for updates and reuse
// to start the script, edit configuration as per your requirement
// TO_OPEN_IN_TAB, TO_COPY_ONE_BY_ONE, TO_AUTOMATE, SKIP_FIRST_N
// then run the `main()` function in your console
// to kill the process in case it is causing an issue or stuck in a loop (if running in automated mode), run following cmd
// lol 0x1F61B
0x1F61B
@mayankagarwal2402
mayankagarwal2402 / index.html
Created January 26, 2017 13:09
Simple Responsive Webpage
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simple Responsive</title>
<link rel="stylesheet" href="style.css">
<style>
body {
margin: 0;
@mayankagarwal2402
mayankagarwal2402 / 0_reuse_code.js
Created August 25, 2016 19:15
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console