Skip to content

Instantly share code, notes, and snippets.

@dmitriyvolk
dmitriyvolk / animals.Animal.java
Created March 26, 2024 23:16
Generics: RedRover 2024 Spring Lecture 16
package animals;
public class Animal {
private final String name;
private final double weight;
private final double canLiftWeight;
public Animal(String name, double weight, double canLiftWeight) {
this.name = name;
this.weight = weight;
@dmitriyvolk
dmitriyvolk / AlertTest.java
Created December 1, 2023 05:02
Alerts, Prompts, Frames
package lecture;
import org.openqa.selenium.Alert;
import org.openqa.selenium.By;
import org.openqa.selenium.NoAlertPresentException;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.testng.Assert;
import org.testng.annotations.Test;
import school.redrover.runner.BaseTest;
@dmitriyvolk
dmitriyvolk / ActionsTest.java
Created November 17, 2023 05:57
Selenium: Select and Action
import org.openqa.selenium.By;
import org.openqa.selenium.Dimension;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
import org.testng.Assert;
import org.testng.annotations.Test;
import school.redrover.runner.BaseTest;
/*
@dmitriyvolk
dmitriyvolk / Checker.java
Created October 13, 2023 04:45
Lecture 20: Generics, Interfaces, Lambdas
package transform;
public interface Checker<T> {
boolean check(T value);
}

Keybase proof

I hereby claim:

  • I am dmitriyvolk on github.
  • I am dvolk_domino (https://keybase.io/dvolk_domino) on keybase.
  • I have a public key ASDGDxOer4t1ViTBg9ZLjJuzE5_A6EBns-LsduiCNF7hago

To claim this, I am signing this object:

@dmitriyvolk
dmitriyvolk / sortingExperiment.scala
Last active September 21, 2017 23:42
An experiment around sorting various entities
import org.specs2.mutable.Specification
import org.specs2.specification.Scope
sealed trait Direction
case object Ascending extends Direction
case object Descending extends Direction
trait HasOriginal[T] {
def original: T
}