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
//Using encode, parse from 'ini' lib, probably not needed *shrugs* | |
async function setAWSCredentials () { | |
const userProfilePath = process.env[(process.platform == 'win32') ? 'USERPROFILE' : 'HOME'] | |
const awsCacheFile = '/.aws/cli/cache' | |
const awsCredentialFile = '/.aws/credentials' | |
const cachefullPath = userProfilePath + awsCacheFile | |
const credsFullPath = userProfilePath + awsCredentialFile |
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
from http.client import HTTPSConnection | |
from html.parser import HTMLParser | |
class MYHTMLParser(HTMLParser): | |
def handle_starttag(self, tag, attrs): | |
if tag == 'a': | |
for name, value in attrs: | |
if name == "href": | |
print(name, "=", value) |
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 unittest | |
def solution(T): | |
seasons = ('WINTER', 'SPRING', 'SUMMER', 'AUTUMN') | |
season_len = len(T) // 4 | |
last_highest = 0 | |
highest_season = 0 | |
for i in range(4): |
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 unittest | |
def solution(N, S, T): | |
start_ord = ord('A') | |
s_arr = S.split(',') | |
t_arr = T.split(' ') | |
ships = [] |