Skip to content

Instantly share code, notes, and snippets.

View thinkphp's full-sized avatar

Adrian Statescu thinkphp

View GitHub Profile
@thinkphp
thinkphp / mean.asm
Created January 16, 2025 10:10
Media Aritmetica 8 numere pornind de la adresa simbolica werte
section .data
; aici definim cele 8 numere pornind de la adresa simbolica WERTE
werte dd 10, 20, 30, 40, 50, 60, 70, 80 ; poti sa schimbi numerele, nu este nicio problema.
count equ 8 ;stabilim numarul de numere in count
section .text
global _start
_start:
mov eax, 0 ; initializam suma cu 0
@thinkphp
thinkphp / append-liste.c
Created January 7, 2025 19:55
concatenare liste
#include <stdio.h>
#include <stdlib.h>
#define EXIT_SUCCESS 0
typedef struct node {
int data;
struct node* next;
} node_t;
//functie de afisare a listei simplu inlantuite
@thinkphp
thinkphp / rating.html
Created December 7, 2024 13:18
rating
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
* {
box-sizing: border-box;
transition: all 0.3s ease;
@thinkphp
thinkphp / suma2.txt
Created November 26, 2024 09:15
Problema Suma2 - rewrite - sume partiale
Problema Suma2
--------------
Fie N un numar natural si un sir de N numere naturale V[1], V[2],...,V[N]. Pentru M intrebari de forma (i,j), sa se calculeze media geometrica(aritmetica) a termenilor V[i], V[i+1],...,V[j].
Input:
Date de intrare
Pe prima linie a fișierului medii.in se găsește un număr natural N.
Pe următoarea linie se află N numere naturale, reprezentând valorile șirului V.
Pe a treia linie se află un număr natural M, reprezentând numărul de întrebări.
Pe următoarele M linii se află câte o pereche de numere (i,j) reprezentând o întrebare
pentru care se cere să se calculeze media geometrică(aritmetica) a termenilor V[i], V[i+1],...,V[j].
@thinkphp
thinkphp / readme.md
Created November 16, 2024 09:54
readme.md mp3

PyQt5 MP3 Player

A modern, feature-rich MP3 player built with PyQt5 and Pygame. This application provides a clean, user-friendly interface for playing and managing your music files.

Player Screenshot

Features

  • Modern Dark Theme Interface: Sleek dark mode design with intuitive controls
  • Basic Playback Controls:
@thinkphp
thinkphp / turn-the-page.html
Last active November 16, 2024 11:57
Turn Page 3D CSS HTML JS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>3D Portfolio - 3 Pages</title>
<style>
* {
margin: 0;
padding: 0;
@thinkphp
thinkphp / notepad.py
Created October 20, 2024 10:06
notepad
import sys
from PyQt5.QtWidgets import (QApplication, QMainWindow, QAction, QFileDialog, QTabWidget,
QPlainTextEdit, QWidget, QTextEdit)
from PyQt5.QtGui import QColor, QPainter, QTextFormat
from PyQt5.QtCore import Qt, QRect, QSize
class LineNumberArea(QWidget):
def __init__(self, editor):
super().__init__(editor)
self.editor = editor
@thinkphp
thinkphp / modal-window.html
Created October 19, 2024 11:49
modal-window.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Styled Modal Window Example</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
@thinkphp
thinkphp / login.html
Created October 13, 2024 07:10
login
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login Form with Changing Border</title>
<style>
body {
font-family: Arial, sans-serif;
@thinkphp
thinkphp / functii.html
Created October 9, 2024 12:51
functii
<script type="text/javascript">
//functii in JS sunt blocuri de cod reutilizabil
/*
definim o functie: cuvantul cheie "function", numele functiei, si intre
parantezele rotunde o lista de parametrii
- intre acolade avem corpul functiei
- functia poate fi apelata cu : numele functiei ( valoare1, valoare2...)