wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
$ sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list
sudo apt update
sudo apt install unzip google-chrome-stable
- Navigate to the ChromeDriver page and choose the latest version (2.37 at the time of writing this)
- Copy the link for the linux download
wget http://chromedriver.storage.googleapis.com/2.37/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
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
#include "Rectangle.h" | |
#include "iostream" | |
using namespace std; | |
void main() | |
{ | |
cout<< "Welcome! This will give you information of a given rectangle or square.\nJust follow the instructions and you will see."<<endl; | |
double width, height; | |
cout << "Enter the width" << endl; | |
cin>>width; |
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
String one = "One"; | |
if(userInput == one) | |
{ | |
return true; | |
} | |
return false; | |
Assume userInput is a string input by the user (That is "One"). This will return false, while |
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
public class P { | |
static boolean p(long a){ | |
if(a<2)return false; | |
long i = 2; | |
for(;i*i<=a;i+=2){ | |
if(a%i==0)return false; | |
if(i<5)i--; | |
} | |
return true; | |
} |
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
#include <iostream> | |
#include "Vector2.h" | |
int main(){ | |
Vector2 vec(2,4); | |
vec.printVector(); | |
system("pause"); | |
return 0; | |
} |
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
package main | |
import "io/ioutil" | |
import "regexp" | |
import "log" | |
import "strings" | |
import "encoding/json" | |
func main() { | |
size := 4 | |
mapping := make(map[string]int) |