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 axios from "axios"; | |
const client = axios.create({ | |
baseURL: process.env.BACKEND_API_URL || "hardcoded backend app url", | |
headers: { | |
"Content-Type": "application/json", | |
}, | |
}); | |
client.interceptors.request.use( |
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 | |
import operator | |
import unittest | |
from typing import List, Union | |
def reduce_json(data: dict, keys: List[Union[str, int]]): | |
if len(keys) == 0: | |
return |
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 requests | |
import xmltodict | |
country_code = input("Country code? : ").upper() | |
country_service_data = { | |
"soap:Envelope": { | |
"@xmlns:soap": "http://schemas.xmlsoap.org/soap/envelope/", | |
"soap:Body": { |
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
(() => { | |
for (let i = 1; i <= 30; i++) { | |
let radioClassName = `S${i}` | |
if (radioClassName === "S29" || radioClassName === "S30") { | |
$(`input:radio[name=${radioClassName}]`).last().prop('checked', true) | |
} | |
else { | |
$(`input:radio[name=${radioClassName}]`).first().prop('checked', true) | |
} |
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
print('Hello wild world!') |