- Name: Benedek Thaler
- University: Budapest University of Technology and Economics
- Course/Major: Computer Engineer, Applied Informatics
- Degree Program: M.Sc.
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
// Imprisoned Toroid -- a simple raytrace program | |
// written in 2012, shared for educational purposes only. | |
// A (more than) slightly modified version of this program produces the following: | |
// https://www.youtube.com/watch?v=oYdYEcjz7_4 | |
#include <math.h> | |
#include <stdlib.h> | |
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) | |
#include <windows.h> |
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
<?php | |
/** | |
* Osztálygyűlytemény HTML generálásra | |
* | |
* Szigorúan PoC, produktív környezetben valószínűleg használhatatlan | |
* | |
* | |
* @category HtmlGenerator | |
* @package Generator | |
* @license New BSD License |
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
/** | |
* A Weblabor számára egységtesztelés témakörben írt cikk első része | |
* | |
* @author erenon | |
* @alias WL-Testme | |
* @license New BSD | |
* | |
*/ | |
PHP osztályok egységtesztelése |
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
PHP osztályok egységtesztelése II | |
================================= | |
Cikkünk első részében megismerkedtünk az egységtesztelés alapjaival, felmértük a fontosságát, ismertettük előnyeit és hátrányait. A folytatásban bemutatásra kerül egy egyszerű teszteset szervezés, valamint átfogóbban tárgyaljuk a könnyen tesztelhető kód főbb jellemzőit. | |
[h3]Tesztesetek szervezése[/h3] | |
Az előző részben bemutatott tesztkódot a következőképpen futtatuk: | |
[colorer=cmd]$ phpunit arithmetic-test.php |
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
/** | |
* Betuszuro | |
* | |
* Beker ket szot, es kiirja azokat a karaktereket, | |
* melyek csak az elsoben szerepelnek | |
* | |
* @todo source_unique and source_filter violates DRY. | |
*/ | |
#include <stdio.h> |
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 <math.h> | |
int main(){ | |
int a,b; | |
double c; | |
a=1; | |
for(a=1;a<10000;a++) { | |
for(b=a;b<10000;b++) { |
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 <stdlib.h> | |
struct ablak { | |
int a; | |
int b; | |
int c; | |
int d; | |
char e[50]; | |
}; |
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> | |
int main(){ | |
int m, m2, in, part, addm; | |
m=1; | |
m = m<<16; | |
m -= 1; | |
m2 = 1; | |
m2 = m2<<8; | |
m2 -= 1; |
OlderNewer