Skip to content

Instantly share code, notes, and snippets.

View thinkphp's full-sized avatar

Adrian Statescu thinkphp

View GitHub Profile
@thinkphp
thinkphp / task1.py
Created September 30, 2025 13:05
task1.py
# Task 1 - Main Menu for Tackle Hire System
# Date: September 30, 2025
def display_menu():
"""
Function to display the main menu options
"""
print("\n" + "="*50)
print("TACKLE HIRE SYSTEM - MAIN MENU")
print("="*50)
@thinkphp
thinkphp / equipment_prices.py
Last active September 30, 2025 13:14
equipment_prices.py
equipment_prices = {
"1": {"name": "Day chairs", "price": 15.00},
"2": {"name": "Bed chairs", "price": 25.00},
"3": {"name": "Bite Alarm (set of 3)", "price": 20.00},
"4": {"name": "Bite Alarm (single)", "price": 5.00},
"5": {"name": "Bait Boat", "price": 60.00},
"6": {"name": "Camping tent", "price": 20.00},
"7": {"name": "Sleeping bag", "price": 20.00},
"8": {"name": "Rods (3lb TC)", "price": 10.00},
"9": {"name": "Rods (Bait runners)", "price": 5.00},
@thinkphp
thinkphp / refund.md
Last active September 8, 2025 16:04
refund.md

Refund Workflow for Roger Art Gallery

1. Client request

The client calls and says:

"I ordered 5 paintings, I want to return 3."

2. Identify the order

  • Ask for the order number (order_id) or the email address used for the purchase.
@thinkphp
thinkphp / privacy.md
Created September 4, 2025 07:17
Privacy-Policy

Privacy Policy

Roger Art Gallery
Last Updated: September 2025

1. Introduction

Roger Art Gallery ("we," "our," or "us") is committed to protecting your privacy. This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you visit our website and make purchases from our online art gallery.

2. Information We Collect

@thinkphp
thinkphp / Terms & Conditions.md
Last active September 4, 2025 07:18
Terms & Conditions Art Gallery

Terms & Conditions

Roger Art Gallery
Last Updated: September 2025

1. Acceptance of Terms

By accessing and using the Roger Art Gallery website and purchasing our artworks, you accept and agree to be bound by the terms and provision of this agreement. These Terms & Conditions govern your use of our website and the purchase of artwork from Roger Art Gallery.

2. Artwork Description and Accuracy

@thinkphp
thinkphp / estDelivery.md
Last active August 26, 2025 17:08
Est Delivery

Python3/PHP Delivery Interval Generator

A simple PHP function to generate estimated delivery date ranges for e-commerce applications, with support for business days calculation.

Samples

Function Overview

@thinkphp
thinkphp / EstimateDelivery.php
Last active August 27, 2025 18:28
Est Delivery
<?php
function generateDeliveryInterval($minDays = 7, $maxDays = 7, $skipWeekends = true) {
$start = new DateTime();
// Calculate minimum delivery date (starting tomorrow)
$minDate = clone $start;
$minDate->add(new DateInterval('P1W')); // Start from tomorrow P1Y , P2M PT5H
// Calculate maximum delivery date
@thinkphp
thinkphp / todolist.txt
Last active September 30, 2025 19:02
TODO TASKs Rogerspaintings.co.uk
STAGE 2
---------
1. Adaugare in Dashboard FRAME field
-----------------------------------------
2. Analytics
-----------------------------------------
3. Searching by TITLE, PRICE or SIZE
------------------------------------------
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Add to Gallery</title>
<style>
* {
margin: 0;
padding: 0;
// Remove the hardcoded galleryData array and replace with an empty array
let galleryData = [];
// Cart array remains the same
let cart = [];
const notification = document.getElementById("notification");
const galleryContainer = document.getElementById("gallery-grid");
// Function to load gallery data from backend