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 { forkJoin, mergeAll, mergeMap, tap } from "rxjs"; | |
import { getValues, doubleValue, tripleValue } from "./service"; | |
getValues() | |
.pipe( | |
tap((value) => console.log(`Got ${value.join(", ")}\n`)), | |
mergeAll(), | |
tap((value) => console.log(`Processing ${value}`)), | |
mergeMap((value) => forkJoin([doubleValue(value), tripleValue(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
#!/bin/bash | |
website="https://www.vangoghmuseumshop.com/en/pokemon" | |
interval=5 # Time interval in seconds | |
count=0 | |
target=3 | |
while [ $count -lt $target ]; do | |
response=$(curl --max-time "$interval" --location --max-redirs 20 "$website" 2>&1) | |
if [[ "$response" == *"technical difficulties"* ]]; then |
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 os | |
import json | |
import sys | |
from typing import Set, Dict, List | |
def search_keys_in_directory(directory: str, search_keys: Set[str]) -> Set[str]: | |
used_keys = set() | |
for root, _, files in os.walk(directory): | |
if "node_modules" in root or "target" in root: |