This file contains 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
{"lastUpload":"2021-09-02T10:41:04.762Z","extensionVersion":"v3.4.3"} |
This file contains 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 pytz | |
from datetime import datetime as dt, tzinfo | |
NOW = dt.now(tz=pytz.utc) | |
def get_timezone_code(tz: tzinfo = pytz.utc) -> str: | |
return tz.normalize(NOW).strftime("%Z") | |
This file contains 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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQENBFviCsEBCADExtYbgP/v+Ss3mmrvPrX7raoYdGzsVRwIkK4eS3m7Y0Q45ETM | |
yff6p+u4ejjciwOk0+DwgQa8z8ycSDgKAsMVhXeSlsdbiyWJ8UxFxWozv8Y/cdXg | |
RblJQMYHQWcresY9tEq8JFqdNig5YJrED2N30TUGIrUYBcY10dCLnGXgRDyIe2Cu | |
QbeVPXQPDFFLq84i64NA0fwkeixCMRPy4Scywm1LDYnQdX3BW20MMBeK0nDmrEd8 | |
JvmBuZxKsY3SpKIPOJHBcR5NZSIpPFYSp7yoopYSJyZnnmvPSZsa9zXSnvDE74i3 | |
iOuE/2KTjreiDgh5272n8UOu/kYnElavouapABEBAAG0Ik1hcmsgQ29ja2J1cm4g | |
PE1vcmtAVGhlTW9yay5jby51az6JAVQEEwEIAD4WIQSK6JwUTaxa+dpSrsjpS8qw | |
Ka1w5QUCW+IKwQIbIwUJA8Mv/wULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRDp |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am morkhub on github. | |
* I am themork (https://keybase.io/themork) on keybase. | |
* I have a public key ASAccGMW_UhXVRVXe8GGij4Vd0lBTbJU0JP_8pZgKkNDzAo | |
To claim this, I am signing this object: |
This file contains 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 numpy as np, cv2, imutils | |
image = cv2.imread("images/thumbscreen.png") | |
lower = np.array([250, 0, 250]) | |
upper = np.array([255, 0, 255]) | |
shapeMask = cv2.inRange(image, lower, upper) | |
cnts = cv2.findContours(shapeMask.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE) | |
cnts = cnts[0] if imutils.is_cv2() else cnts[1] | |
c = max(cnts, key=cv2.contourArea) |
This file contains 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
Adah gave birth to Jabal; he was the father of those who dwell in tents and have livestock. |
This file contains 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
mark@ubuntu ~ $ apachectl -t -D DUMP_VHOSTS | |
VirtualHost configuration: | |
*:443 is a NameVirtualHost | |
default server none (/etc/apache2/sites-enabled/000-default-ssl.conf:2) | |
port 443 namevhost none (/etc/apache2/sites-enabled/000-default-ssl.conf:2) | |
port 443 namevhost themork.co.uk (/etc/apache2/sites-enabled/themork.co.uk-ssl.conf:1) | |
alias www.themork.co.uk | |
*:80 is a NameVirtualHost | |
default server none (/etc/apache2/sites-enabled/000-default.conf:1) |
This file contains 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
*.log* | |
secret.py |
This file contains 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 functools | |
commands = {} | |
def register(command_name): | |
def wrapped(fn): | |
@functools.wraps(fn) | |
def wrapped_f(*args, **kwargs): | |
return fn(*args, **kwargs) | |
wrapped_f.__doc__ += "(command=%s)" % command_name | |
wrapped_f.command_name = command_name |
This file contains 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
sum = 0 # start sum at 0 | |
count = 0 # start count at 0 | |
number = float(input("Enter a number: ")) # get first number | |
while number != 0: # forever if number is not zero | |
sum += number # add number to the sum | |
count += 1 # count the number | |
number = float(input("Enter a number")) # get next number | |
print("Choose an option:"); | |
print("[1] Count values") |
NewerOlder