Skip to content

Instantly share code, notes, and snippets.

View frandemona's full-sized avatar
🎯
Focusing

Francisco frandemona

🎯
Focusing
View GitHub Profile
@frandemona
frandemona / console.js
Last active February 8, 2023 19:33
Decline Startup School Co-Founder Match Invitations
let interval = setInterval(function () {
const spanDecline = Array.from(document.querySelectorAll("button.CFMInbox-MuiButtonBase-root.CFMInbox-MuiButton-root.CFMInbox-MuiButton-disableElevation > span.CFMInbox-MuiButton-label")).find(el => el.textContent === 'Decline');
if(!spanDecline) {
clearInterval(interval);
return;
}
console.log(spanDecline);
spanDecline.parentNode.click();
const listOfParticipants = Array.from(document.querySelectorAll('#b78978f311b3b616df6c96720e110c5a > div > div.css-1kq89qe > div.css-19du4nb button'));
if(listOfParticipants.length !== 0) {
@frandemona
frandemona / pdf2svgs.py
Created November 14, 2020 15:37 — forked from vitchyr/pdf2svgs.py
Convert PDF to multiple SVGs with Inkscape and pyPdf
"""
Author: Vitchyr Pong
Convert a PDF to svg files. Note that this is pretty slow since it makes
subprocess calls to inkscape's PDF-to-SVG command line convert.
Requirements:
- Inkscape (https://inkscape.org/)
- pyPdf (http://pybrary.net/pyPdf/)
- A '/tmp' directory. If not, you must pass in another directory.