Skip to content

Instantly share code, notes, and snippets.

@vaznoe
vaznoe / ultimate-ut-cheat-sheet.md
Created February 28, 2019 03:11 — forked from yoavniran/ultimate-ut-cheat-sheet.md
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai and Sinon

The Ultimate Unit Testing Cheat-sheet

For Mocha, Chai and Sinon

using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies


@vaznoe
vaznoe / SmartXCUICoordinate.swift
Created August 27, 2018 23:34 — forked from garkhipov/SmartXCUICoordinate.swift
Workaround for XCUICoordinate in landscape
import XCUI
class SmartXCUICoordinate
{
let element: XCUIElement
let normalizedOffset: CGVector
init(element: XCUIElement, normalizedOffset offset: CGVector) {
self.element = element
self.normalizedOffset = offset
# basic pfctl control
# ==
# Related: http://www.OpenBSD.org
# Last update: Tue Dec 28, 2004
# ==
# Note:
# this document is only provided as a basic overview
# for some common pfctl commands and is by no means
# a replacement for the pfctl and pf manual pages.
@vaznoe
vaznoe / Selenide cheat sheet
Created October 22, 2017 23:18 — forked from makolesnik/Selenide cheat sheet
Selenide cheat sheet to create concise UI tests in Java. What is Selenide? Selenide is a wrapper for Selenium WebDriver. http://selenide.org/
=Navigating=
baseUrl = "http://site.com";
open("/login");
open("http://google.com");
switchTo().frame($("#myFrame").toWebElement());
=WebDriver=
getWebDriver().findElement(By.id("username")); // import static com.codeborne.selenide.WebDriverRunner.getWebDriver;
package com.vaznoe.java.core.examplesNIO;
import java.io.IOException;
import java.nio.file.*;
import java.nio.file.attribute.BasicFileAttributes;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* Created by vaznoe on 12/3/16.
@vaznoe
vaznoe / gist:635f61573b8f69baea0070b654559082
Created May 1, 2017 07:11 — forked from g3d/gist:2709563
Clean Install – OS X 10.11 El Capitan
package vaznoe.math;
import static java.lang.Math.*;
/**
* Created by vaznoe on 4/30/17.
*/
public class MathApp {
public static void main(String[] args) {
System.out.println(formula_14(1.5));
@vaznoe
vaznoe / AplphanumericTest.java
Created February 27, 2017 00:27
юнит тесты
package generator;
import generater.Alphanumeric;
import org.junit.Assert;
import org.junit.Test;
import static generater.Alphanumeric.Type.ALPHA;
import static generater.Alphanumeric.Type.ALPHANUMERIC;
import static generater.Alphanumeric.Type.NUMERIC;