Skip to content

Instantly share code, notes, and snippets.

@nikhilweee
nikhilweee / workday_add_time.py
Created February 25, 2024 06:51
Add time on workday using Selenium
import os
import time
import getpass
import argparse
import logging
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.wait import WebDriverWait
@nikhilweee
nikhilweee / nested_search.js
Last active August 3, 2024 05:21
Search for nested values in a JS object
function search(obj, string) {
const maxDepth = 10;
const excludeKeys = ["_root"];
function isObject(val) {
return typeof val === "function" || typeof val === "object";
}
function traverse(obj, depth, path) {
// Guard clause
@nikhilweee
nikhilweee / querygen.html
Last active January 10, 2026 06:26
Search Query Generator
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Google Search Query Generator</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;