Added battleship files
This commit is contained in:
14
Battleships/battleships-137-main/.vscode/make_url.py
vendored
Normal file
14
Battleships/battleships-137-main/.vscode/make_url.py
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
# Simple utility for creating the Cloudinary URL from a
|
||||
# cloudinary_python.txt file
|
||||
# Matt Rudge, November 2021
|
||||
|
||||
import re
|
||||
|
||||
with open("cloudinary_python.txt") as f:
|
||||
content = f.readlines()
|
||||
|
||||
cloud_name = re.findall(r"['](.*?)[']",content[15])[0]
|
||||
api_key = re.findall(r"['](.*?)[']",content[16])[0]
|
||||
api_secret = re.findall(r"['](.*?)[']",content[17])[0]
|
||||
|
||||
print(f"cloudinary://{api_key}:{api_secret}@{cloud_name}")
|
||||
Reference in New Issue
Block a user