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 / SEQ_LIST.c
Created October 5, 2026 08:58
SEQ_LIST
#include <stdio.h>
#include <stdlib.h>
typedef struct {
int *array;//structura de date
int size;
int capacity;
} SEQ_LIST;
@thinkphp
thinkphp / sll_reverse.c
Created October 5, 2026 08:00
PRoblema Reverse Singly Linked List
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct _SLL_NODE {
int key;
struct _SLL_NODE *next;
} SLL_NODE;
@thinkphp
thinkphp / problema2-3.c
Created October 5, 2026 06:42
Laboratorul 1 Problemele 2 si 3
#include <stdio.h>
#include <malloc.h> //or <stdlib.h>
/*
Adauga elementul x pe ultima pozitie a sirului.
v - sirul alocat dinamic
nr - pointer catre numarul curent de elemente (se va modifica pe parcursul executie)
capacity - numarul maxim de elemente care incap in sir
@returneaza 1 daca s-a adaugat , 0 daca sirul este plin
*/
@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 October 5, 2026 05:39
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