Skip to content

Instantly share code, notes, and snippets.

View gdlmx's full-sized avatar

Mingxuan Lin gdlmx

View GitHub Profile
@gdlmx
gdlmx / GoogleDocAutoplay.js
Last active October 6, 2023 02:07
Google Doc autoplay
var jumpto = (i , n)=>{
var evt = new Event("blur", {"bubbles":true, "cancelable":false});
var sldnr = document.querySelector('input.a-b-La-su-vb') ;
sldnr.value = `${i}`;
console.log(`jumping to ${i}, ${n} , ${sldnr.getAttribute('aria-label')}`);
sldnr.dispatchEvent(evt);
if(i<n){
setTimeout(() => {
jumpto(i+1, n);
}, 1500);
@gdlmx
gdlmx / pyproject.toml
Last active June 24, 2024 06:10
Split pdf file into chunks of pages
[build-system]
requires = ["hatchling>=1.24.2", "hatch-vcs>=0.3.0"]
build-backend = "hatchling.build"
[project]
name = "pdfsplit"
description = ""
readme = "README.md"
license = "MIT"
requires-python = ">=3.11"