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 openpyxl import load_workbook | |
| import csv | |
| from collections import defaultdict, Counter | |
| # Load the workbook | |
| file_path = "Forum Gestion Entreprise Compta online.xlsx" | |
| workbook = load_workbook(file_path) | |
| sheet = workbook['Sheet1'] | |
| # Get the content of the "Droit pourquoi?" column |
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
| https://googlechromelabs.github.io/chrome-for-testing/ ( for windows) |
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 pandas as pd | |
| from slack_sdk import WebClient | |
| from slack_sdk.errors import SlackApiError | |
| import csv | |
| from time import sleep | |
| # Initialize Slack client with your token | |
| client = WebClient(token="<SLACK_BOT_TOKEN>") |
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 pandas as pd | |
| import datetime | |
| import re | |
| import matplotlib.pyplot as plt | |
| # Load the CSV file | |
| df = pd.read_csv("/mnt/data/06-10-2023_10-10.csv") | |
| # Function to convert status text to timedelta | |
| def convert_to_timedelta_updated_with_weeks(text): |
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
| - op: add | |
| path: /Resources/HTTPSRulePriorityAction1 | |
| value: | |
| Metadata: | |
| 'aws:copilot:description': 'Custom resource assigning priority for the first HTTPS listener rule' | |
| DependsOn: HTTPSListenerRule | |
| Type: Custom::RulePriorityFunction | |
| Properties: | |
| ServiceToken: !GetAtt RulePriorityFunction.Arn | |
| RulePath: ["/"] |
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 unittest | |
| from typing import List, Dict | |
| from tqdm import tqdm | |
| def distribute_elements(stream: List[int], servers: List[str], weights: List[int]) -> Dict[str, List[int]]: | |
| if len(servers) != len(weights): | |
| raise ValueError("The number of servers and weights must be the same.") | |
| total_weight = sum(weights) | |
| normalized_weights = [weight / total_weight for weight in weights] |
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
| apiVersion: argoproj.io/v1alpha1 | |
| kind: ApplicationSet | |
| metadata: | |
| name: easyappointments-preview | |
| namespace: argocd | |
| spec: | |
| generators: | |
| - pullRequest: | |
| github: | |
| owner: mongulu-cm |
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
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Sid": "DenyCreateResourcesInSpecificRegions", | |
| "Effect": "Deny", | |
| "Action": [ | |
| "*" | |
| ], | |
| "Resource": "*", |
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 pandas as pd | |
| import matplotlib.pyplot as plt | |
| # Load the CSV file | |
| file_path = '/mnt/data/resources(2).csv' | |
| data = pd.read_csv(file_path) | |
| # Calculate the number of resources per region | |
| resources_per_region = data['Region'].value_counts().reset_index() | |
| resources_per_region.columns = ['Region', 'Number of Resources'] |
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
| RUN_IDS=$(gh run list --repo $REPO --json databaseId --limit 50 | jq -r '.[1:] | .[].databaseId') | |
| Delet all runs: gh run delete --repo $REPO 10143283850 |