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 display usage information | |
| show_help() { | |
| echo "Usage: $(basename $0) -r REPOSITORY -u USERNAME [-s START_DATE] [-e END_DATE]" | |
| echo | |
| echo "Examples:" | |
| echo " $(basename $0) -r owner/repo -u username" | |
| echo " $(basename $0) -r owner/repo -u username -s 2025-01-01 -e 2025-01-31" | |
| echo |
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 | |
| if [ "$#" -eq 0 ]; then | |
| echo "Usage: $0 <command>" | |
| exit 1 | |
| fi | |
| TOTAL_TIME=0 | |
| NUM_RUNS=5 |
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
| from minio import Minio | |
| from io import BytesIO | |
| def get_minio_content_as_binaryio(minio_client: Minio, bucket_name: str, object_name: str): | |
| # Fetch the object from MinIO | |
| response = minio_client.get_object(bucket_name, object_name) | |
| # Read the content into a BytesIO object | |
| content = BytesIO(response.read()) | |
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 smtplib | |
| from email.mime.multipart import MIMEMultipart | |
| from email.mime.text import MIMEText | |
| from email.mime.base import MIMEBase | |
| from email import encoders | |
| from typing import List, BinaryIO | |
| def send_mail_with_pdf(subject: str, recipients: List[str], attachments: List[BinaryIO], body: str, subtype: str = 'plain'): |
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
| +----+-------+-------+-------+ | |
| | -1 | 24000 | 14000 | 26000 | | |
| +----+-------+-------+-------+ | |
| | -1 | -1 | 6000 | 12000 | | |
| +----+-------+-------+-------+ | |
| | -1 | -1 | -1 | 9000 | | |
| +----+-------+-------+-------+ | |
| | -1 | -1 | -1 | -1 | | |
| +----+-------+-------+-------+ |
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
| Optimal BST Cost: 31 | |
| e:(expected cost) | |
| +---+---+---+---+---+ | |
| | 0 | 0 | 0 | 0 | 0 | | |
| +---+---+---+---+---+ | |
| | 0 | 2 | 9 | 21| 31| | |
| +---+---+---+---+---+ | |
| | 0 | 0 | 3 | 14| 21| | |
| +---+---+---+---+---+ | |
| | 0 | 0 | 0 | 4 | 11| |
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
| 38 | |
| +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ | |
| | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | |
| +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ | |
| | 0 | 0 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | | |
| +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ | |
| | 0 | 0 | 8 | 8 | 8 | 14| 14| 14| 14| 14| 14| 14| 14| 14| 14| 14| 14| | |
| +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ | |
| | 0 | 0 | 8 | 8 | 8 | 15| 15| 23| 23| 23| 29| 29| 29| 29| 29| 29| 29| | |
| +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ |
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
| #include<iostream> | |
| #include<vector> | |
| #include<algorithm> | |
| #include<utility> | |
| #define ll long long | |
| #define OAO cin.tie(0);ios_base::sync_with_stdio(0); | |
| #define F first | |
| #define S second | |
| #define PB push_back |
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
| 3 | |
| +---+---+---+---+---+---+ | |
| | 0 | 0 | 0 | 0 | 0 | 0 | | |
| +---+---+---+---+---+---+ | |
| | 0 | 1 | 1 | 1 | 1 | 1 | | |
| +---+---+---+---+---+---+ | |
| | 0 | 1 | 2 | 2 | 2 | 2 | | |
| +---+---+---+---+---+---+ | |
| | 0 | 1 | 2 | 2 | 3 | 3 | | |
| +---+---+---+---+---+---+ |
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
| 26000 | |
| 30 | |
| 6000 | |
| 4500 | |
| 82 |
NewerOlder