Skip to content

Instantly share code, notes, and snippets.

@erenon
erenon / Crossover.asm
Created April 19, 2012 22:24
Crossover
;***************************************************************
;* Feladat: Forgalmi jelzolampa fenyerzekelo ejszakai uzemmoddal
;* Rövid leírás:
;
;* Szerzők: Thaler Benedek EDDO10
;* Mérőcsoport: CDU65
;
;***************************************************************
;* "AVR ExperimentBoard" port assignment information:
;***************************************************************
@erenon
erenon / point.cc
Created July 14, 2011 06:39
Why my constructor doesn't run?
#include <node.h>
#include <v8.h>
#include <iostream>
using namespace v8;
using namespace node;
class Point
:ObjectWrap
@erenon
erenon / .fonts.conf
Created May 16, 2011 13:27
Fontconfig file - display sharp fonts in browsers
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font" >
<edit mode="assign" name="hintstyle" >
<const>hintfull</const>
</edit>
</match>
@erenon
erenon / list.hpp
Created May 14, 2011 18:20
Custom simple list implementation
#ifndef LIST_H_
#define LIST_H_
#include <cstddef>
template <typename T>
class List {
struct item {
T value;
@erenon
erenon / find_memleak.h
Created May 6, 2011 17:42
find_memleak
#include <iostream>
#include <cstdlib>
#define new _NEW_WRAPPER() + new
using namespace std;
int _NEW_WRAPPER() {
cout << "hello" << endl;
return 0;
@erenon
erenon / digit check.sh
Created December 9, 2010 12:31
Checks the digit resoult
#!/bin/bash
wget http://home.mit.bme.hu/~laczko/digit_eredmenyek.pdf -N -q
if [ -e "digit_md5" ]; then
md5sum digit_md5 --status -c
if [ $? != 0 ]; then
echo "===FRISSÜLT==="
fi
else
@erenon
erenon / Makefile
Created December 6, 2010 19:24
Makefile
C_SRCS += \
./library.c \
./functions.c \
./konyvtar.c
OBJS += \
./library.o \
./functions.o \
./konyvtar.o
@erenon
erenon / mod.c
Created December 5, 2010 23:05 — forked from anonymous/mod.c
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define MAX_STRING_LENGTH 101
typedef struct {
char szerzo[101];
char cim[101];
unsigned kev;
char tema[101] ;
@erenon
erenon / btree-latex.c
Created November 30, 2010 09:42
binary tree visualization
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct _btree {
int value;
struct _btree *left;
struct _btree *right;
} btree;
@erenon
erenon / mutantbtree.c
Created November 29, 2010 20:30
mutant and balanced binary tree
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct _btree {
int value;
struct _btree *left;
struct _btree *right;
} btree;