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
| class MultiVerse(unittest.TestCase): | |
| """docstring for PythonOrgSearch""" | |
| def setUp(self): | |
| self.driver = webdriver.Remote( | |
| command_executor='http://127.0.0.1:4444/wd/hub', | |
| desired_capabilities=DesiredCapabilities.CHROME) | |
| def test_go_to_download_in_python_org(self): |
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
| import requests | |
| from bs4 import BeautifulSoup | |
| try: | |
| resp =requests.get("https://www.python.org/dev/peps/pep-0020/") | |
| if resp.status_code == 200: | |
| soup = BeautifulSoup(resp.content, 'html.parser') | |
| print soup.pre.string |
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
| import sched, time, sys | |
| from pync import Notifier | |
| try: | |
| seconds = int(sys.argv[1])*60 | |
| text = sys.argv[2] | |
| def showNotifier(): | |
| Notifier.notify(text, title="Reminder", sound="default") |
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
| syntax enable | |
| set background=dark | |
| let g:solarized_termtrans = 1 | |
| let g:solarized_italic = 1 | |
| let g:solarized_contrast = "high" | |
| colorscheme solarized | |
| set number | |
| set incsearch | |
| set hlsearch |
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
| # remap prefix to Control + a | |
| set -g prefix C-a | |
| # bind 'C-a C-a' to type 'C-a' | |
| bind C-a send-prefix | |
| unbind C-b | |
| set -g mouse on | |
| # Mouse based copy | |
| bind-key -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel "pbcopy" |