Skip to content

Instantly share code, notes, and snippets.

var xs = document.querySelectorAll("[data-testid*='unfollow']");
var count = 0;
console.log(xs.length);
for (var i = 0; i < xs.length && count < 9999; i++) {
xs[i].click();
var ys = document.querySelectorAll("[data-testid*='confirmationSheetConfirm']");
ys[0].click();
count++;
}
@bobismijnnaam
bobismijnnaam / rts.py
Last active September 29, 2016 07:54
Syncs all RoboTeamTwente packages in catkin workspace.
#! /usr/bin/env python3
import getpass
from git import Repo
from git.exc import *
from github import Github, GithubException
import os
import sys
description = """
@bobismijnnaam
bobismijnnaam / silent.py
Created September 30, 2015 15:23
Starts a process hidden, inheriting permissions.
from win32com.shell import shell
import os
fileDir = os.path.dirname(os.path.realpath(__file__)) + "\\start.bat"
OPEN_NORMAL = 5
OPEN_HIDDEN = 0
a = shell.ShellExecuteEx(
# "runas" is also nice, to request admin rights before starting. See MSDN docs on ShellExecuteEx for details.
@bobismijnnaam
bobismijnnaam / create.bat
Last active December 31, 2015 15:39
Creation script I use often at the start of my projects
@ECHO OFF
IF "%1"=="header" GOTO HeaderFile
IF "%1"=="source" GOTO SourceFile
IF "%1"=="class" GOTO Class
GOTO DisplayHelp
:DisplayHelp
ECHO Usage:
ECHO create ^<FILETYPE^> ^<CLASSNAME^>
@bobismijnnaam
bobismijnnaam / gist:7030673
Last active December 25, 2015 19:49
Universal makefile. Vanilla makefile. Automatic makefile. Cost me a lot of time and almost every available makefile resource on the WWW to make it. I will try using this template for my projects until something comes along that actually works without too much trouble.
# Compiler of your choosing
CC := ...
# Collects all the cpp files
SRC := $(wildcard *.cpp)
# Linker Options
LOPS := ...
# Executable name (without .exe!)