Kata: https://github.com/scmallorca/string-calculator-dojo
Default repo: https://github.com/GDGCB/dojo-ts
| module LatestClock exposing (latestClock) | |
| import Debug | |
| import List | |
| import List.Extra exposing (getAt, permutations) | |
| import String | |
| isValidTime : List Int -> Bool | |
| isValidTime list = |
| import os | |
| from pprint import pprint | |
| import requests | |
| def main(album_url): | |
| base_api_url = f"https://p23-sharedstreams.icloud.com/{album_url.split('#')[1]}/sharedstreams" | |
| stream_data = requests.post(f"{base_api_url}/webstream", json={"streamCtag": None}).json() |
| import requests | |
| import re | |
| emoji_pattern = re.compile("[" | |
| u"\U0001F600-\U0001F64F" # emoticons | |
| u"\U0001F300-\U0001F5FF" # symbols & pictographs | |
| u"\U0001F680-\U0001F6FF" # transport & map symbols | |
| u"\U0001F1E0-\U0001F1FF" # flags (iOS) | |
| u"\U00002702-\U000027B0" | |
| u"\U000024C2-\U0001F251" |
| import csv | |
| import io | |
| import requests | |
| # file > publish on web > CSV > copy KEY from URL | |
| KEY = "2PACX-....jzc" | |
| URL = f"https://docs.google.com/spreadsheets/d/e/{KEY}/pub" | |
| resources: | |
| Resources: | |
| #region OpenSearch | |
| CognitoAccessForAmazonOS: | |
| Type: "AWS::IAM::Role" | |
| Properties: | |
| AssumeRolePolicyDocument: | |
| Version: '2012-10-17' | |
| Statement: | |
| - Effect: Allow |
| import base64 | |
| import json | |
| import uuid | |
| from urllib.parse import urlencode | |
| import requests | |
| class OAC: | |
| """ |
| import pandas as pd | |
| df = pd.read_csv('./exportData.csv') | |
| df.drop(df.tail(1).index, inplace=True) # drop extra line on the end | |
| # fix delimiter | |
| df["Time Spent (h)"] = df["Time Spent (h)"] = [x.replace(',', '.') for x in df["Time Spent (h)"]] | |
| # time to numbers | |
| df["Time Spent (h)"] = df["Time Spent (h)"].apply(pd.to_numeric, errors='coerce') | |
| # yyyy-mm column to groupby |
| #!/usr/bin/env python3 | |
| """ | |
| Extracts all resource from given Terraform file | |
| """ | |
| import re | |
| from optparse import OptionParser | |
| def main(prefix="", file_path=""): | |
| resources = [] |
| from contextlib import closing | |
| from selenium import webdriver | |
| from selenium.webdriver.remote.webelement import WebElement | |
| TEST_FILE = "/home/twista/.../test_file.html" | |
| def has_parent_xpath(child: WebElement, el_name: str) -> bool: | |
| # find_element vyhodi exception, takze pouziju elements a pak pokud takoveho parenta nema - vrati prazdne pole |
Kata: https://github.com/scmallorca/string-calculator-dojo
Default repo: https://github.com/GDGCB/dojo-ts