def formula(x, y, z):
return (x <= (y == z)) == ((x <= y) == (x <= z))
test_cases = [
(False, False, False), #1
(False, False, True), #2
This file contains hidden or 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 math | |
def is_simple_number(n): | |
if n < 2: | |
return False | |
elif n == 2: | |
return True | |
elif n % 2 == 0: | |
return False | |
else: |
Extension of the Axios library for use with Vue.js. The main purpose is to integrate a loading indicator (using Vue's Ref type) with Axios requests to automatically change state of loading state.
Check the example project
- Create or insert into existing
env.d.ts
file located on the same directory withtsconfig.json
. If you don't use typescript in your project, skip
This file contains hidden or 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 sys | |
import requests | |
import logging | |
import argparse | |
from typing import Optional | |
from dotenv import load_dotenv | |
from dataclasses import dataclass | |
# Configure root logger |
This file contains hidden or 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 | |
# Function to check if a command exists | |
command_exists() { | |
command -v "$1" >/dev/null 2>&1 | |
} | |
# Function to log messages | |
log() { | |
echo "[$(date +'%Y-%m-%d %H:%M:%S')] $1" |
OlderNewer