Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / Get-RemoteEventId.ps1
Created May 13, 2013 06:26
IRF homework snippets.
# OVERVIEW:
# parse command line
# write output header
# create filter string
# read csv -> machines
# for machine in machines
# Get-WSManInstance wmicimv2/*
# -ComputerName ...
# -Enumerate
@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.
# This example shows how to use keras TensorBoard callback
# with model.train_on_batch
import tensorflow.keras as keras
# Setup the model
model = keras.models.Sequential()
model.add(...) # Add your layers
model.compile(...) # Compile as usual
"""Pseudocode description of the AlphaZero algorithm."""
from __future__ import google_type_annotations
from __future__ import division
import math
import numpy
import tensorflow as tf
from typing import List
@erenon
erenon / rewrite_matches.py
Created July 15, 2022 08:40
Rewrite matches
#!/bin/python
# Replace matching patterns at the specified locations
#
# On stdin it expects locations:
#
# <file_path>|<line> col <col>| match
#
# For example:
#