Skip to content

Instantly share code, notes, and snippets.

View rlundy's full-sized avatar

Ryan Lundy rlundy

  • Medgate AG
  • Haltingen, Deutschland
  • 07:39 (UTC +02:00)
View GitHub Profile
@eshapard
eshapard / filterSafety.py
Last active October 23, 2023 21:04
Anki 2.0 addon. Prevents learning (and re-learning) cards from being removed from a filtered deck. This allows you to rebuild the deck while keeping the learning cards inside of it; bypassing the problems with Anki decks where learning cards are set back to 'new' or 'review' when they exit a filtered deck.
# Filter Safety
# Anki 2.0 addon
# Author EJS
# https://eshapard.github.io/
#
# Prevents cards in learning state from being moved out of a filtered deck
# when you rebuild it.
from anki.sched import Scheduler
#from aqt.utils import showInfo
@nickgrealy
nickgrealy / SynchronizedInternetExplorerDriver.java
Last active February 5, 2020 08:31
Class to synchronise calls to the WebDriver instance.
package selenium.webdrivers;
import org.openqa.selenium.Capabilities;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.ie.InternetExplorerDriverService;
import org.openqa.selenium.remote.Response;
import java.util.Map;
/**
@jpoetker
jpoetker / geb-chrome-driver.groovy
Last active April 11, 2018 14:55
Basic GEB script with Chrome
@Grapes([
@Grab("org.codehaus.geb:geb-core:0.7.2"),
@Grab("org.seleniumhq.selenium:selenium-chrome-driver:2.28.0"),
@Grab("org.seleniumhq.selenium:selenium-support:2.28.0")
])
import geb.Browser
import org.openqa.selenium.chrome.ChromeDriver
b = new Browser(driver: new ChromeDriver())