Skip to content

Instantly share code, notes, and snippets.

View aalok-sathe's full-sized avatar

Aalok Sathe | आलोक aalok-sathe

View GitHub Profile
@aalok-sathe
aalok-sathe / overleaf-remap.js
Last active June 5, 2025 16:08 — forked from allenjlw/overleaf-remap.js
Overleaf j k remap
// ==UserScript==
// @name Overleaf editor: map j to gj and k to gk
// @namespace http://tampermonkey.net/
// @version 0.2
// @match https://www.overleaf.com/project/*
// @grant none
// @description Remap j/k to gj/gk in Overleaf Vim normal/visual modes
// @downloadURL https://gist.githubusercontent.com/aalok-sathe/a5dab9274ac881bd20418a3530fbca70/raw/2f531157d115fd4010f6dc631cd4f1f086e41299/overleaf-remap.js
// @updateURL https://gist.githubusercontent.com/aalok-sathe/a5dab9274ac881bd20418a3530fbca70/raw/2f531157d115fd4010f6dc631cd4f1f086e41299/overleaf-remap.js
// ==/UserScript==
@aalok-sathe
aalok-sathe / interleave_dataframes.py
Last active December 6, 2023 22:24 — forked from rob-med/interleave_dataframes.py
Interleaving Multiple Pandas DataFrames of equal length in a round-robin fasion
import pandas as pd
import typing
def interleave_dataframes(dfs: typing.Collection[pd.DataFrame]):
"""
interleaves entries from multiple dataframes of equal size into a single dataframe.
each row is drawn from one of the input dataframes in a round-robin fashion.
modified from: https://gist.github.com/rob-med/9f3f696cb8e174f969ed4ec784317308
modified at: https://gist.github.com/aalok-sathe/6f807f3973440710582aa1518425d3fa
@aalok-sathe
aalok-sathe / dtdotool.sh
Created October 14, 2020 18:03 — forked from craigphicks/dtdotool.sh
Used in Ubuntu 18.04 to manipulate desktops as atomic elements of an array, e.g., swapping element order, inserting and deleting empty elements.
#!/bin/bash
# Copyright (c) 2019, Craig P Hicks
# content licensed as CC BY-NC-SA
# CC BY-NC-SA details at https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode
# This program depends upon 'xdotool' installed as Ubuntu 18.04 managed package
# xdotool project source can be found at:
# https://github.com/jordansissel/xdotool
# https://www.semicomplete.com/projects/xdotool/