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 / projects.txt
Last active October 3, 2026 13:22
Projects pentru portofolio
0. Counter App TS + JS Frontend
1. Splitter Bill +JS Frontend
2. Analyzer Sentiments Full Stack (frontend React, Backend Express ,Python) deployment Vercel + RAilway sau Render
3. Billy....Full Stack (react frontned, fastAPI pe backend + postgres) + AI https://aistudio.google.com/ LLM ....
4. Notes Google Keeeps Full Stack
@thinkphp
thinkphp / tip.js
Created October 3, 2026 09:50
tip UI Calculator
import { useState } from 'react';
import './App.css';
export default function App() {
const [bill, setBill] = useState(''); //valoarea curenta a facturii; setBill=>functia prin care modifici bill-ul
const [tipPercentage, setTipPercentage] = useState(15); //procentul bacsisului ; valoarea initiala 15; modifica procentul
const [customTip, setCustomTip] = useState(''); //se pastreaza un bacsis introdus manual de user
const [people, setPeople] = useState( 1 );//numarul de oameni, setPeople . functie care modifica numarul de oameni
:root {
--cyan-primary: #26c2ae;
--bg-color: #c5e4e7;
--dark-green: #00474b;
--text-dark: #3d6666;
--text-light: #7f9d9f;
--bg-card: #ffffff;
--bg-input: #f3f9fb;
--error-color: #e17457;
}
body {
margin: 0;
padding: 0;
background-color: #e4ecfa;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
/** Header **/
header {
width: 100%;
@thinkphp
thinkphp / SOLID.js
Created October 3, 2026 07:54
Principiile SOLID
/*
const person = {
nane:"john",
age: 20,
}
for(const item in person ){
console.log(item); //key
@thinkphp
thinkphp / generator.js
Created October 3, 2026 07:07
generator-intrebare interview.
function* generator( i ) {
yield i;
yield i * 2;
yield i * i * 2;
}
const gen = generator( 10 );
console.log(gen.next().value);
@thinkphp
thinkphp / singly-linked-list.c
Last active September 28, 2026 09:33
singly-linked-list.c
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
//
// Singly Linked List
//
// node1(data, next[0x231213])----> node2(data, next[])-->node3(data, next)---> node4--->NULL
//avem 2 campuri = data si next un camp de referinta care retine adresa urmatorului node
@thinkphp
thinkphp / complex.c
Created September 28, 2026 07:22
Laborator1 Numere Complexe
/*
Numere complexe:
parte reala
parte imaginara
z1 = a + bi
z2 = c + di
unhde i^1 = -1
@thinkphp
thinkphp / clone_string.c
Created September 28, 2026 06:21
String Copy CLonare
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <string>//strcpy(sir1, sir2)
char* str_cpy(const char* src ) {
if(src == NULL) return NULL;
size_t len = sizeof( src ) + 1; //\0
@thinkphp
thinkphp / matrix-liniarizat.c
Created September 25, 2026 10:00
matrice liniarizata transpusa
/*
int **mat;
//mat = (int*)malloc(m * sizeof(int*));
//mat = [ptr1, ptr2, ptr3..]
for(int i = 0; i < lines; ++i) {
mat[i] = (int*)malloc(n * sizeof(int))