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
| #! /bin/bash | |
| set -x | |
| set -e | |
| # Make sure /dev/shm has correct permissions. | |
| ls -l /dev/shm | |
| sudo chmod 1777 /dev/shm | |
| ls -l /dev/shm |
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
| var byLocator = By.cssSelector('.some.selector'); | |
| var timeout = 5;//seconds | |
| var element = (new WebDriverWait(driver, timeout)) | |
| .until(ExpectedConditions.visibilityOfElementLocated(byLocator)); | |
| console.log(element.getText()); |
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
| name="global"; | |
| var a = { | |
| name:"a", | |
| prop:Func, | |
| b:{ | |
| name:"b", | |
| prop:Func | |
| } | |
| }; |
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
| /** | |
| * A map of bit masks that correlate to a person's status. | |
| * @type {Object} | |
| */ | |
| var personStatus=(function(){ | |
| var i=0.5; | |
| return { | |
| CODING:(i*=2), | |
| EATING:(i*=2), | |
| READING:(i*=2), |
NewerOlder