This file contains 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
// | |
// Closing block regex, this is used to find our {% endhint %} block | |
// | |
// / # - Start of regex | |
// ( # - Opening capture group 1 | |
// \{\%[\s]+ # - Match against "{% " and any number of white space | |
// endhint[\s]+ # - Match against "endhint " including one or more whitespace | |
// [.]*\%\} # - Match against "%}" including any random=properties which we ignore | |
// # ( Eg: "{% endhint param=xyz %}" ) | |
// ) # - Closing capture group 1 |
This file contains 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
{ | |
"result" : { | |
"data" : null, | |
"type" : "MANUAL", | |
"resolution" : "1280x960", | |
"testRunBillID" : "EAMdDc1hSCsQJfSPoDpMi6", | |
"result" : { | |
"workspacePath" : "/workspace/8JWGHaqm1ovYYvR2G54oam/", | |
"errorSteps" : [ ], | |
"session" : { |
This file contains 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 org.openqa.selenium.By; | |
import org.openqa.selenium.JavascriptExecutor; | |
import org.openqa.selenium.WebDriver; | |
import org.openqa.selenium.WebElement; | |
import org.openqa.selenium.chrome.ChromeDriver; | |
import org.openqa.selenium.interactions.Actions; | |
public class CreateYourFirstTestExample { | |
public static void main(String[] args) { | |
System.setProperty("webdriver.chrome.driver", "./exefiles/chromedriver.exe"); |
This file contains 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
# | |
# The following is an example dockerfile i used to build the statamic site | |
# to deploy in a single container, using php artisian serve | |
# | |
FROM php:8.0.9-fpm-alpine | |
# | |
# Add some required PHP "addons" | |
# and other addons | |
# |
This file contains 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
>--- | |
> [dev.to/docker-entrypoint.sh] DEMO mode | |
> | |
> Time to rock & roll | |
>--- | |
== Installing dependencies == | |
Warning: the running version of Bundler (1.17.2) is older than the version that created the lockfile (1.17.3). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`. | |
https://github.com/thepracticaldev/acts_as_follower.git (at master@288690c) is | |
not yet checked out. Run `bundle install` first. | |
Warning: the running version of Bundler (1.17.2) is older than the version that created the lockfile (1.17.3). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`. |
This file contains 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
{ | |
..., | |
storage : { | |
url: “https://<region>.api.mailgun.net/v3/domains/<your domain>/messages/<email-key>", | |
key: <email-key> | |
}, | |
... | |
} |
This file contains 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
// | |
// Testing for empty inbox | |
// | |
// Lets goto inbox kitten | |
I.goTo("https://inboxkitten.com"); | |
I.see("Open-Source Disposable Email"); | |
// Go to a random inbox inbox | |
I.fill("email", SAMPLE.id(22)); |
This file contains 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
// | |
// The following is a uilicious.com test script used to validate the bug | |
// | |
// Go to the bug reporting website | |
I.goTo("https://www.reddit.com/r/bugs/comments/91cp3r/bug_with_underscore_in_url/"); | |
// Perform the assertion | |
I.see("https://www.instagram.com/iamashleyortiz_"); | |
I.see("https://www.instagram.com/_Miss.Em_"); |
This file contains 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
let redis = require("promise-redis")(); | |
let redisClient = redis.createClient(port, host, { | |
retry_strategy: function (options){ | |
if(options.error && options.error.code === "ECONNREFUSED"){ | |
return new Error("The server refused the connection."); | |
} | |
if (options.total_retry_time > 1000 * 60 * 60) { | |
// End reconnecting after a specific timeout and flush all commands | |
// with a individual error | |
return new Error('Retry time exhausted'); |
NewerOlder