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 logging | |
| class LLMRouterException(Exception): | |
| pass | |
| class ProviderFailedException(LLMRouterException): | |
| pass | |
| class AllProvidersFailedException(LLMRouterException): | |
| pass |
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 json | |
| import logging | |
| # Set up logging | |
| logging.basicConfig(filename='processing.log', level=logging.INFO) | |
| # Define the JSON file path | |
| json_file = 'input.json' |
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://nfs.faireconomy.media/ff_calendar_thisweek.xml |
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
| function generatelicense() { | |
| var result = ''; | |
| var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; | |
| var charactersLength = characters.length; | |
| for (var i = 0; i < 16; i++) { | |
| result += characters.charAt(Math.floor(Math.random() * charactersLength)); | |
| if (i === 3 || i === 7 || i === 11) { | |
| result += '-'; | |
| } | |
| } |
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
| # Define your functions | |
| def coffee_bot(): | |
| print("Welcome to the cafe!") | |
| size = get_size() | |
| print(size) | |
| drink_type = get_drink_type() | |
| print(drink_type) | |
| print('Alright, that\'s a {} {}!'.format(size, drink_type)) |
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
| # Write your max_num function here: | |
| def max_num(num1, num2, num3): | |
| # if (num1>num2) and (num1>num3) return num1 | |
| # if (num1>num2) and (num1>num3) return num1 | |
| list = [num1, num2, num3] | |
| list.sort() | |
| # print(list[0]) | |
| # print(list[1]) | |
| # print(list[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
| When you installed phpMyAdmin onto your server, it automatically created a database user called phpmyadmin which performs certain underlying processes for the program. Rather than logging in as this user with the administrative password you set during installation, it’s recommended that you log in as either your root MySQL user or as a user dedicated to managing databases through the phpMyAdmin interface. | |
| Configuring Password Access for the MySQL Root Account | |
| In Ubuntu systems running MySQL 5.7 (and later versions), the root MySQL user is set to authenticate using the auth_socket plugin by default rather than with a password. This allows for some greater security and usability in many cases, but it can also complicate things when you need to allow an external program — like phpMyAdmin — to access the user. | |
| In order to log in to phpMyAdmin as your root MySQL user, you will need to switch its authentication method from auth_socket to mysql_native_password if you haven’t already done so. To do this, open up th |
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 | |
| from google.colab import drive | |
| drive.mount('/content/drive', force_remount=True) | |
| # os.remove('/content/inv-tf') | |
| os.symlink('/content/drive/Team Drives/Inv-tf', '/content/inv-tf') | |
| print("symlink created") | |
| !ls -l /content/inv-tf | |
| root_dir = "/content/inv-tf/" |
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
| # Please note that latest src is The Kali Rolling Repository. Refer for new update : http://docs.kali.org/general-use/kali-linux-sources-list-repositories | |
| # According to the Kali Linux Official Documentation, the sources.list file should contain the following line(s): | |
| deb http://http.kali.org/kali kali-rolling main contrib non-free | |
| # For source package access, uncomment the following line | |
| # deb-src http://http.kali.org/kali kali-rolling main contrib non-free |
NewerOlder