This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name TMD BB Code Highilighter | |
// @author tmd(trolic, Spider) | |
// @description This script will add a feauture to torrentsmd.com 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 http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js | |
// ==/UserScript== | |
function getCaret(node) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Titlu: Supraincarcarea operatorului [][] in C++ creind o matrice. | |
Autor: Luca Andrei | |
Ideone: http://ideone.com/y8Km37 | |
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. | |
/**/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
class Punct | |
{ | |
private: | |
float x; | |
float y; | |
public: | |
Punct(): x(.0f), y(.0f) { std::cout << "default" << std::endl; } | |
Punct(float _x, float _y): x(_x), y(_y) { std::cout << "general" << std::endl; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//============================================================================= | |
// ----- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<conio2.h> | |
#include<stdlib.h> | |
#include<dos.h> | |
typedef struct val { | |
unsigned v:2; | |
}val; | |
void ver_m_i(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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=* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
int main() { | |
int dimensiuneMasiv; | |
int *masiv; | |
float mediaAritmetica; | |
int numarulElementelorDivizibile = 0; | |
int sumaElementelorDivizibile = 0; | |
int divizor = 3; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cmath> | |
int main() { | |
int dimensiuneMasiv; | |
int *masiv; | |
int suma = 0; | |
std::cout << "Dati numarul de elemente in masiv: "; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% ------------------------------------------------------------------------------ | |
% Generic Expert System interface | |
% ------------------------------------------------------------------------------ | |
% Dynamic fact | |
% -------------------------------------- | |
:- dynamic(known/3). | |
% -------------------------------------- | |
% Start system | |
% -------------------------------------- | |
solve :- |
OlderNewer