sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Download zsh-autosuggestions by
| import enum | |
| import time | |
| from selenium import webdriver | |
| from selenium.webdriver.common.by import By | |
| from selenium.webdriver.common.keys import Keys | |
| driver = webdriver.Remote( | |
| command_executor='http://localhost:9999', | |
| desired_capabilities={ | |
| "debugConnectToRunningApp": 'false', |
| import time | |
| from selenium import webdriver | |
| from selenium.webdriver.common.by import By | |
| driver = webdriver.Remote( | |
| command_executor='http://localhost:9999', | |
| desired_capabilities={ | |
| "debugConnectToRunningApp": 'false', | |
| "app": r"C:/Users/Public/Desktop/Launch SentrySuite.lnk" | |
| }) |
| from bs4 import BeautifulSoup | |
| import requests | |
| def checkUrl(url): | |
| r = requests.get(url) | |
| soup = BeautifulSoup(r.text, 'html.parser') | |
| types = set() | |
| for item in soup.find_all(itemtype=True): | |
| types.add(item.get('itemtype')) | |
| for t in types: |
| package main | |
| import ( | |
| "bytes" | |
| "flag" | |
| "fmt" | |
| "math/big" | |
| "os" | |
| "regexp" | |
| "strconv" |
| import logging | |
| import sys | |
| import functools | |
| logging.basicConfig(level=logging.DEBUG) | |
| LOGGER = logging | |
| def log_if_exception(message): | |
| def decorator(function): |
| def currently_playing(self): | |
| ''' | |
| Returns the record for the currently playing track, | |
| or None if nothing is playing | |
| ''' | |
| try: | |
| if self.is_playing(): | |
| title = self.browser.find_element_by_class_name('title').text | |
| album_detail = self.browser.find_element_by_css_selector('.detail-album > a') | |
| album_title = album_detail.text |