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
| -- Drop the database if it already exists | |
| DROP DATABASE IF EXISTS ManufacturingDB; | |
| -- Create the database | |
| CREATE DATABASE ManufacturingDB; | |
| -- Use the database | |
| USE ManufacturingDB; | |
| -- Create the tables (using the schema provided earlier) |
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 tkinter as tk | |
| class App(tk.Tk): | |
| def __init__(self): | |
| super().__init__() | |
| self.title("Game with Different Components") | |
| # Keep track of the current scene | |
| self.current_scene = 0 |
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
| for num in range(1, 11): | |
| if num % 2 != 0: | |
| continue | |
| print(num) |
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
| def calculate_area(length, width): | |
| return length * width | |
| length_input = float(input("Enter the length of the rectangle: ")) | |
| width_input = float(input("\nEnter the width of the rectangle: ")) | |
| area = calculate_area(length_input, width_input) | |
| print("\nThe area of the rectangle is:", area) |
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 math | |
| a = int(input("Enter the first number:\n")) | |
| b = int(input("Enter the second number:\n")) | |
| print(math.gcd(a, b)) |
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
| <?php | |
| $user_name = "{'name': 'peet','timestamp' : " . time() . "}"; | |
| $encrypt_method = "aes128"; | |
| $secret_key = '123'; | |
| $secret_iv = '456'; | |
| // hash |
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
| <?php | |
| $temp = "Language = \"English\" | |
| Hideout Name = \"Celestial Hideout\" | |
| Hideout Hash = 34604 | |
| Stash = { Hash=3230065491, X=603, Y=553, Rot=47565, Flip=0, Var=0 } | |
| Guild Stash = { Hash=139228481, X=528, Y=547, Rot=18480, Flip=0, Var=0 } |
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
| Language = "English" | |
| Hideout Name = "Excavated Hideout" | |
| Hideout Hash = 55535 | |
| Stash = { Hash=3230065491, X=274, Y=226, Rot=16332, Flip=0, Var=0 } | |
| Guild Stash = { Hash=139228481, X=271, Y=184, Rot=24420, Flip=0, Var=0 } | |
| Waypoint = { Hash=1224707366, X=160, Y=261, Rot=48713, Flip=0, Var=0 } | |
| Crafting Bench = { Hash=2059629901, X=307, Y=261, Rot=30037, Flip=0, Var=0 } | |
| Map Device = { Hash=2306038834, X=240, Y=264, Rot=4992, Flip=0, Var=0 } | |
| Navali = { Hash=693228958, X=220, Y=217, Rot=12530, Flip=0, Var=0 } |