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 csv | |
| import time | |
| from faker import Faker | |
| from datetime import datetime, timedelta | |
| def create_file(filename, records): | |
| with open(filename, mode='w') as file: | |
| file_writer = csv.writer(file, delimiter=';', quotechar='"', quoting=csv.QUOTE_MINIMAL) |
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 json | |
| from googletrans import Translator | |
| from functools import reduce | |
| def deep_get(dictionary, keys, default=None): | |
| return reduce(lambda d, key: d.get(key, default) if isinstance(d, dict) else default, keys.split("."), dictionary) | |
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 itertools import permutations | |
| import enchant | |
| def prepare_list(word_): | |
| new_letters = [word_] | |
| for i_, letter in enumerate(word_, start=0): | |
| if letter in 'aeiou': | |
| new_letter = letter + u'\u0301' |
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
| # dags/deleteme.py | |
| from datetime import timedelta | |
| from airflow import DAG | |
| from airflow.operators.dummy import DummyOperator | |
| from airflow.utils.dates import days_ago | |
| from includes.taskgroup import build_taskgroup |
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 airflow | |
| from airflow import settings | |
| from airflow.models import clear_task_instances, DAG, TaskInstance, Variable | |
| from airflow.operators.dummy_operator import DummyOperator | |
| from airflow.operators.python_operator import PythonOperator | |
| from airflow.utils.state import State | |
| from datetime import datetime, timezone | |
| import logging | |
| # Seconds in an hour |
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 datetime as dt | |
| import logging | |
| import math | |
| import os | |
| import random | |
| import sys | |
| import time | |
| import pyautogui |
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
| """ | |
| The idea for this script is to have a tiny "world" with your custom compediums and then export it as a new module. | |
| This file must be located in your world folder, for example: | |
| "<foundrydata folder>/Data/worlds/<your module name>" | |
| """ | |
| import json | |
| import os |
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
| package com.globant.augmented.coding.auth.security.jwt; | |
| import org.springframework.core.io.ClassPathResource; | |
| import sun.misc.BASE64Decoder; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import java.nio.file.Files; | |
| import java.security.KeyFactory; | |
| import java.security.NoSuchAlgorithmException; | |
| import java.security.interfaces.RSAPrivateKey; |
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 selenium import webdriver | |
| from selenium.common.exceptions import TimeoutException | |
| from selenium.webdriver.support.ui import WebDriverWait | |
| from selenium.webdriver.support import expected_conditions as ec | |
| from selenium.webdriver.common.by import By | |
| from selenium.webdriver.firefox.service import Service | |
| from selenium.webdriver.firefox.options import Options | |
| import time | |
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 pika | |
| routing_key = 'test' | |
| #Mensaje con formato JSON | |
| message = """ | |
| { | |
| "hola": "mundo", | |
| "lorem": "ipsum" | |
| }""" |
NewerOlder