Skip to content

Instantly share code, notes, and snippets.

git inspector

Andrew Luca iamandrewluca

git inspector
Block or report user

Report or block iamandrewluca

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
iamandrewluca / highbbcode.js
Created Aug 27, 2015
TMD BBCode Highlighter (userscript)
View highbbcode.js
// ==UserScript==
// @name TMD BB Code Highilighter
// @author tmd(trolic, Spider)
// @description This script will add a feauture to post menu. Use old code button, 20th in the row.
// @include http://*.torrentsmd.*/forum.php?action=viewforum*
// @include http://*.torrentsmd.*/forum.php?action=viewtopic*
// @require
// ==/UserScript==
function getCaret(node) {
iamandrewluca / Matrice.cpp
Created Feb 21, 2014
Supraincarcarea operatorului [][] in C++ creind o matrice.
View Matrice.cpp
Titlu: Supraincarcarea operatorului [][] in C++ creind o matrice.
Autor: Luca Andrei
Descriere: De fapt operatorul [][] nu poate fi supraincarcat,
deoarece el nu este operator )), ma contrazic pe mine ce am scris in titlu ).
De fapt aici sunt doi operatori []. Pentru a "supraincarca" [][], avem nevoie
sa cream 2 clase, si pentru fiecare in parte sa supraincarcam [].
Urmariti exemplul de mai jos pentru lamurire.
View increment-suffix-postfix.cpp
#include <iostream>
class Punct
float x;
float y;
Punct(): x(.0f), y(.0f) { std::cout << "default" << std::endl; }
Punct(float _x, float _y): x(_x), y(_y) { std::cout << "general" << std::endl; }
View poly.cpp
// in cazul tau e polimorfism pe functii curate ))
// nu sunt sigur daca merge, dar de ce nu
typedef struct {
int a;
char b;
float c;
// ... alte tipuri
} elev;
View md.cpp
// ----- Inceputul programului
Name: Algoritmul de determinare a grafului de acoperire
Copyright: Luca
Author: Luca Andrei
Date: 28/05/12 18:42
Description: Acest program determina graful de acoperire
View md1.cpp
typedef struct val {
unsigned v:2;
void ver_m_i();
iamandrewluca / tmdwatcherspy.js
Last active Sep 30, 2015
highlights topics in red where you wrote something and where is more than one reply after yours
View tmdwatcherspy.js
// ==UserScript==
// @name TMD Watcher Spy
// @namespace http://your.homepage/
// @version 0.1
// @description highlights topics in red where you wrote something and where is more than one reply after yours
// @author Luca Andrei
// @include http*://torrentsmd.*/watcher.php
// @include http*://torrentsmd.*/forum.php?action=viewtopic&topicid=*
// @include http*://*.torrentsmd.*/watcher.php
// @include http*://*.torrentsmd.*/forum.php?action=viewtopic&topicid=*
View bootstrap-block-grid.css
[class*="block-grid-"] {
display: block;
margin: -15px;
padding: 0;
[class*="block-grid-"]:after {
content: " ";
display: table;
iamandrewluca / divizori.cpp
Created Dec 4, 2015
Intr-un masiv de aflat cantitatea si media aritmetica a elementelor divizibile cu 3
View divizori.cpp
#include <iostream>
int main() {
int dimensiuneMasiv;
int *masiv;
float mediaAritmetica;
int numarulElementelorDivizibile = 0;
int sumaElementelorDivizibile = 0;
int divizor = 3;
iamandrewluca / radaciniPatrate.cpp
Created Dec 4, 2015
Suma radacinilor patrate a elementelor impare
View radaciniPatrate.cpp
#include <iostream>
#include <cmath>
int main() {
int dimensiuneMasiv;
int *masiv;
int suma = 0;
std::cout << "Dati numarul de elemente in masiv: ";
You can’t perform that action at this time.