Skip to content

Instantly share code, notes, and snippets.

View AndreiDuma's full-sized avatar

Andrei Duma AndreiDuma

View GitHub Profile
@AndreiDuma
AndreiDuma / Kbuild
Created December 8, 2015 10:06
SI Lab Drivere
EXTRA_CFLAGS = -Wall -g
obj-m = hello.o
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AndreiDuma
AndreiDuma / in.txt
Last active December 2, 2015 07:22
5 5
0 0 0 -31 0
-9 -43 0 -76 -27
0 -102 0 0 -38
0 -47 -22 -114 -1
0 0 0 0 0
1 0
# versiunea unsigned char
create or replace package premiere as
function mediu(functie emp.job%type) return number;
function bns(ang emp%rowtype, sef emp%rowtype) return number;
procedure tabel;
end premiere;
/
create or replace package body premiere as
function mediu(functie emp.job%type) return number is
med number;
begin
@AndreiDuma
AndreiDuma / lab.sql
Created November 16, 2015 17:55
BD Lab 7
set serveroutput on;
declare
-- function f_salariati(p_idDept in number) return number
-- as
-- nrAng number;
-- begin
-- select count(distinct empno) into nrAng from emp where deptno = p_idDept;
-- return nrAng;
-- end;
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AndreiDuma
AndreiDuma / Makefile
Created October 15, 2015 07:02
Lab 2 CPL
all:
flex calc.l
bison -d -v calc.y
g++ calc.tab.c lex.yy.c -ocalc
clean:
rm calc.tab.* *.output lex.yy.c calc
@AndreiDuma
AndreiDuma / epoll.c
Created May 21, 2015 08:48
Lab 11 SO
/**
* SO, 2011
* Lab #11, Advanced IO Linux
*
* Task #2, Linux
*
* Epoll usage
*/
#include <stdio.h>