Skip to content

Instantly share code, notes, and snippets.

@erenon
erenon / rewrite_rust_errors.py
Created Jul 19, 2022
Replace matching patterns at the specified locations
View rewrite_rust_errors.py
#!/bin/python
# Replace matching patterns at the specified locations
#
# On stdin it expects locations (as reported by the rustc compiler):
#
# --> path/to/file.rs:line:col
#
# Lines not matching this pattern are ignored:
View rewrite_matches.py
#!/bin/python
# Replace matching patterns at the specified locations
#
# On stdin it expects locations:
#
# <file_path>|<line> col <col>| match
#
# For example:
#
View alpha_zero_pseudocode.py
"""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
View train_on_batch_with_tensorboard.py
# 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
@erenon
erenon / BoostEnhVectorPorp.md
Created Mar 14, 2015
Boost Enhanced Vector and Deque GSoC 2015 Proposal
View BoostEnhVectorPorp.md

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 / imprisoned-toroid.cpp
Created Jan 30, 2015
A simple raytrace program
View imprisoned-toroid.cpp
// 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 / BoostPipelineProp.md
Last active Aug 29, 2015
Boost.Pipeline GSoC 2014 Proposal
View BoostPipelineProp.md

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 / Get-RemoteEventId.ps1
Created May 13, 2013
IRF homework snippets.
View Get-RemoteEventId.ps1
# OVERVIEW:
# parse command line
# write output header
# create filter string
# read csv -> machines
# for machine in machines
# Get-WSManInstance wmicimv2/*
# -ComputerName ...
# -Enumerate
View Crossover.asm
;***************************************************************
;* 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 Jul 14, 2011
Why my constructor doesn't run?
View point.cc
#include <node.h>
#include <v8.h>
#include <iostream>
using namespace v8;
using namespace node;
class Point
:ObjectWrap