Skip to content

Instantly share code, notes, and snippets.

@mangena-dave
mangena-dave / Telephone Number Validator.txt
Created August 15, 2019 09:04 — forked from AndriiBozh/Telephone Number Validator.txt
Telephone Number Validator (Reg Ex)
ASSIGNMENT
__________________________________________________________________________________________________________________________
Return true if the passed string looks like a valid US phone number.
The user may fill out the form field any way they choose as long as it has
the format of a valid US number. The following are examples of valid formats for US numbers
(refer to the tests below for other variants):
555-555-5555
(555)555-5555
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-7-jre
# install openjdk
sudo apt-get install openjdk-7-jdk
# download android sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
@mangena-dave
mangena-dave / install.sh
Created January 31, 2018 13:43 — forked from ziadoz/install.sh
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
#!/usr/bin/env bash
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c
# http://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver
# http://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception
# http://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal
# http://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04
# Versions
CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`