using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import XCUI | |
| class SmartXCUICoordinate | |
| { | |
| let element: XCUIElement | |
| let normalizedOffset: CGVector | |
| init(element: XCUIElement, normalizedOffset offset: CGVector) { | |
| self.element = element | |
| self.normalizedOffset = offset |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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. |
Visit my blog or connect with me on Twitter
git init
or
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| =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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
#Mac OS X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |