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
| document.getElementsByTagName("video")[0].playbackRate = 3.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
| blank = {} | |
| print_structure(configs, "") | |
| def print_structure(obj, prefix): | |
| for key, value in obj.iteritems(): | |
| print prefix + "-" + key + ": " + str(type(value)) | |
| if isinstance(value,dict): | |
| print_structure(value, prefix + "-") |
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
| tell application "iTerm" | |
| activate | |
| create window with default profile | |
| tell current session of current window | |
| write text "say exporting path; export PWD=~/Developer/Content/NG1/NW; say opening atom; atom $PWD; say opening sourcetree; stree $PWD; say end;" | |
| end tell | |
| end tell |
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
| // Example usage to check visibility (using Jasmine and Protractor) | |
| describe('My page', function() { | |
| it('displays "Hello World" after clicking something on the page', function() { | |
| saveScreenshot('C:\\Users\\omouse\\Documents\\test-step-1.png'); | |
| clickSomethingOnPage(); | |
| saveScreenshot('C:\\Users\\omouse\\Documents\\test-step-2.png'); | |
| var helloWorld = element(by.css('.message')); | |
| var helloWorldIsVisible = protractor.ExpectedConditions.visibilityOf(helloWorld); | |
| expect(helloWorldIsVisible()).toBe(true); |
NewerOlder