Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@erenon
erenon / BoostPipelineProp.md
Last active August 29, 2015 13:57
Boost.Pipeline GSoC 2014 Proposal

GSoC 2014 Boost.Pipeline Proposal

Personal Details

  • Name: Benedek Thaler
  • University: Budapest University of Technology and Economics
  • Course/Major: Computer Engineer, Applied Informatics
  • Degree Program: M.Sc.
@erenon
erenon / imprisoned-toroid.cpp
Created January 30, 2015 20:15
A simple raytrace program
// 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>
@erenon
erenon / BoostEnhVectorPorp.md
Created March 14, 2015 17:05
Boost Enhanced Vector and Deque GSoC 2015 Proposal

GSoC 2015 Enhanced vector and deque containers Proposal

Personal Details

  • Name: Benedek Thaler
  • University: Budapest University of Technology and Economics
  • Course/Major: Computer Engineer, Applied Informatics
  • Degree Program: M.Sc.
@erenon
erenon / gist:309999
Created February 21, 2010 00:14
HtmlElement
<?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
@erenon
erenon / WL-Testme
Created March 20, 2010 10:00
WL-Testme cikk
/**
* 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
@erenon
erenon / WL-Testme II
Created August 26, 2010 18:25
PHP osztályok egységtesztelése II
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
@erenon
erenon / betuszuro.c
Created October 21, 2010 13:03
[Proggyak I] Betűszűrő
/**
* 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>
@erenon
erenon / probaNZH_f1.c
Created October 28, 2010 20:09
probaNZH f1
#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++) {
@erenon
erenon / probaNZH_f0.c
Created October 28, 2010 20:25
probaNZH f0
#include <stdio.h>
#include <stdlib.h>
struct ablak {
int a;
int b;
int c;
int d;
char e[50];
};
@erenon
erenon / probaNZH_f2.c
Created October 28, 2010 20:09
probaNZH f2
#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;