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
| $ lsof -n -i4TCP:3000 | grep LISTEN | |
| $ # where 3000 is the port number |
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
| /** | |
| * Close an open window. | |
| * <br> | |
| * If you have opened only 1 external window, then when you call this method, the context will switch back to the window you were using before.<br> | |
| * <br> | |
| * If you had more than 2 windows displaying, then you will need to call {@link #switchToWindow(String)} to switch back context. | |
| * @param regex The title of the window to close (regex enabled). You may specify <code>null</code> to close the active window. If you specify <code>null</code> then the context will switch back to the initial window. | |
| * @return | |
| */ | |
| public AutomationTest closeWindow(String regex) { |
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
| sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080 |
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
| BATTLING: Bandit | |
| `'#' | |
| ';::::; | |
| +:::::;:` | |
| ;;::::;::+ | |
| `':::::::;::, | |
| +:::::;:::;+ | |
| '::::::;+;;+++: | |
| #::+, ;;';::::'+##+'## | |
| ;::::#+++''''+#+#'';;;''# |
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
| casper.test.begin 'assertDoesntExist() tests', 1, (test) -> | |
| casper.start().then -> | |
| @setContent '<div class="heaven"></div>' | |
| test.assertDoesntExist '.taxes' | |
| .run -> | |
| test.done() |
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
| [ | |
| java, | |
| applet, | |
| awt, | |
| color, | |
| datatransfer, | |
| dnd, | |
| event, | |
| font, | |
| geom, |
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
| package com.company.seleniumframework.functional; | |
| import com.company.seleniumframework.AutomationTest; | |
| import com.company.seleniumframework.Browser; | |
| import com.company.seleniumframework.Config; | |
| import org.junit.Test; | |
| import org.openqa.selenium.By; | |
| import org.openqa.selenium.WebElement; | |
| import java.util.ArrayList; |
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
| @namespace url(http://www.w3.org/1999/xhtml); | |
| @namespace svg url(http://www.w3.org/2000/svg); | |
| @-moz-document regexp("^https?://((raw[2-9]*|gist|guides|help|status|developer)\.)?github\.com.*") { | |
| /*********************************************** | |
| * Github Dark Theme v1.8.7 (3/22/2014) | |
| * https://github.com/StylishThemes/GitHub-Dark | |
| * http://userstyles.org/styles/37035 | |
| * License: http://sam.zoy.org/wtfpl/ | |
| ***********************************************/ | |
| body { |
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
| /** | |
| Main File | |
| **/ | |
| #include "Card.h" | |
| #include <vector> | |
| using namespace Cards; | |
| void shuffle(std::vector<Card> deck) { | |
| for (int suit = 0; suit < 3; suit++) { |
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
| Main Module | |
| Get input from user | |
| Display unit price (price per ounce) | |
| Display total price | |
| End Main Module | |
| Get Input Module | |
| Declare ItemName as String | |
| Declare UnitPrice as Float | |
| Declare Pounds as Float |