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 { useMutation } from 'react-query'; | |
| import { QueryClient } from 'react-query'; | |
| import * as FileSystem from 'expo-file-system'; | |
| import { Buffer } from 'buffer'; | |
| import { nanoid } from 'nanoid'; | |
| export interface Request { | |
| text_prompts: { text: string }[]; | |
| cfg_scale?: number; | |
| steps?: number; |
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 the os module for file operations | |
| import PyPDF2 as PyPDF2 # Import the PyPDF2 module for PDF operations | |
| # List of Amazon order IDs and tracking numbers | |
| amazon_order_id_and_tracking_number = [ | |
| "<amazon_order>|<tracking_number>", | |
| ] | |
| # Directory where the proof of exportation PDF files are stored | |
| directory = "../proof-of-exportation" | |
| # Function to look for a proof of exportation file with a given tracking number |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| ''' | |
| Methods used to validate and tokenize the formulas enter by the user. | |
| ''' | |
| VALID_OPERATORS = ['∧','∨','→'] | |
| VALID_PROPORTIONAL_VARIABLES = [ | |
| 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', | |
| 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', | |
| 's', 't', 'u', 'v', 'w', 'x', 'y', 'z' | |
| ] |
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
| #!/usr/bin/env python | |
| """ | |
| downloader.py: A simple python images downloader, this use a simple list and download every item from a http uri. | |
| """ | |
| __author__ = "Dante Faña Badia <[email protected]>" | |
| __copyright__ = "Copyright 2018, Dante Faña Badia" | |
| __license__ = "GPL" | |
| __version__ = "1.0.0" |