Skip to content

Instantly share code, notes, and snippets.

@TsvetomirSlavov
TsvetomirSlavov / gist:5ac24279a0447e4231d85f3797760751
Created February 5, 2017 08:17 — forked from chumster/gist:5093671
SoapUI - Groovy Cheatsheet
// Generate Random GUID
def guidVal = "${java.util.UUID.randomUUID()}"
// Get current date and time in milliseconds
now = Calendar.instance
log.info 'now is a ' + now.class.name
date = now.time
log.info 'date is a ' + date.class.name + ' with value ' + date
millis = date.time
log.info 'millis is a ' + millis.class.name + ' with value ' + millis
package ca.uwo.csd.cs2212.USERNAME;
public class BankAccount {
private double balance;
public BankAccount(double balance) {
this.balance = balance;
}
@TsvetomirSlavov
TsvetomirSlavov / git-cheatsheet
Created December 11, 2016 23:37 — forked from arunma/git-cheatsheet
git-cheatsheet
# Cloning a remote repository (SSH)
git clone <user@server:path/to/repo.git>
e.g. git clone git@github.com:TomyJaya/git-real.git
# Cloning a remote repository (https)
git clone <URL>
e.g. git clone https://github.com/TomyJaya/git-real.git
# Checking the Status of Your Files
git status
@TsvetomirSlavov
TsvetomirSlavov / SeleniumUtils.java
Created December 11, 2016 23:34 — forked from arunma/SeleniumUtils.java
Selenium Utils
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.collections.ListUtils;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger;
import org.openqa.selenium.By;