Skip to content

Instantly share code, notes, and snippets.

View EricBallard's full-sized avatar
💚

Eric Ballard EricBallard

💚
View GitHub Profile
@EricBallard
EricBallard / IntegertoRoman.java
Last active December 2, 2022 04:01
IntegertoRoman.java
public static void main(String[] args) {
System.out.println(new Solution().romanToInt("MCMXCIV"));
}
static class Solution {
private int getTotal(String s, char c, int index, int size) {
if (index == size - 1) return -1;
char cc = s.charAt(index + 1);
@EricBallard
EricBallard / Browser.java
Last active July 16, 2022 05:40
Detects installed Chrome version, validates supported ChromeDriver version, provides proper ChromeDriver URL if mismatched.
import org.openqa.selenium.SessionNotCreatedException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import javax.annotation.Nullable;
import java.io.File;
public class Browser {
public static boolean init() {