Skip to content

Instantly share code, notes, and snippets.

View thinkphp's full-sized avatar
💭
If I have seen further it is only by standing on the shoulders of giants. Newton

Adrian Statescu thinkphp

💭
If I have seen further it is only by standing on the shoulders of giants. Newton
View GitHub Profile
@thinkphp
thinkphp / react-tip-calculator-readme.md
Created October 17, 2026 06:54
tip calculator readme.md

SPLITTER ( Tip Calculator App )

A modern, responsive, and interactive tip and bill-splitting calculator built with React and Vite. This application simplifies group dining and bill management by accurately computing individual tip amounts and total payments in real-time.


Overview

The SPLITTER Tip Calculator is designed to provide a fast and intuitive experience for calculating tips and splitting restaurant or service bills among friends, colleagues, or family members. As inputs are entered, all calculations update immediately with zero delay.

#include <iostream>
#include <string>
using namespace std;
class ContBancar {
private:
string titular;
double sold;
@thinkphp
thinkphp / Doubly-linked-list.c
Created October 12, 2026 08:49
Doubly Linked List
// Doubly Linked List
// list->first->prev = NEWNODE
// NEWNODE[key, next, prev] [key, next, prev] ---> [key, next, prev] --->> .... --->> [key, next, prev] next= null
// | ^ ^
// | | |
// -------------------
// +------------+
/// 1 2 3 4 5 6 7
// -------------> print
@thinkphp
thinkphp / Circular-Linked-List.c
Last active October 12, 2026 08:12
Circular-Linked-List.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
* Singly Linked List
* [key, next] ---> [key, next] --->> .... --->> [key, next]
* NULL
*
* Lista simplu inlantuita circulara SDA
*
@thinkphp
thinkphp / seq
Created October 12, 2026 06:33
SEQ_LIST COMPLET
#include <stdio.h>
#include <stdlib.h>
typedef struct {
int *array;
int size;
int capacity;
} SEQ_LIST;
SEQ_LIST *create_seq_list(int init_capacity);
@thinkphp
thinkphp / dependency.js
Created October 10, 2026 08:07
Dependency OOP
class PDfExporter {
export(content) {
return `[PDF] ${content}`
}
}
class Logger {
log(message) {
//contractul . spune ce trebuie sa faci, nu cum sa faci..
class PaymentMethod {
constructor() {
if(new.target === PaymentMethod) {
throw new Error("PaymentMethod este o interfata, nu poate fi instantiata")
}
@thinkphp
thinkphp / inheritance.js
Created October 10, 2026 07:49
inheritance.js
class Person {
constructor(name, email) {
this.name = name;
this.email = email;
}
introduce() {
return `Hello, my name is ${this.name} (${this.email})`
@thinkphp
thinkphp / compozitie.js
Created October 10, 2026 07:41
Compozitie Relationship OOP
class Engine {
#running = false;
constructor(make, model, power) {
this.make = make;
this.model = model;
this.power = power;
@thinkphp
thinkphp / Agg.js
Created October 10, 2026 07:26
OOP Agregare
/*
- Agregare
- Compositie
- Asociere
- Mostenire
- Dependenta
- Realizare
*/
class Subscriber {