Skip to content

Instantly share code, notes, and snippets.

View ReneHollander's full-sized avatar
🏠
Working from home

Rene Hollander ReneHollander

🏠
Working from home
  • Google
  • Switzerland
View GitHub Profile
Adding items
Building index
Building took 41.641s
Searching took 11.772 ms
Searching took 12.135 ms
Searching took 11.267 ms
Searching took 11.491 ms
Searching took 11.188 ms
Searching took 11.23 ms
Searching took 11.243 ms
@ReneHollander
ReneHollander / Angular AVX optimized
Created January 16, 2018 23:34
Optimized get_norm, normalize and two_means
using AVX
Adding items
Building index
Building took 33.094s
Searching took 10.231 ms
Searching took 9.681 ms
Searching took 9.142 ms
Searching took 9.829 ms
Searching took 9.401 ms
Searching took 10.197 ms
@ReneHollander
ReneHollander / Angular
Created January 16, 2018 21:25
Vectorized euclidian and angular distance and verctorized dot product
Adding items
Building index
Building took 53.623s
Searching took 15.394 ms
Searching took 14.526 ms
Searching took 14.187 ms
Searching took 14.201 ms
Searching took 13.615 ms
Searching took 14.154 ms
Searching took 14.527 ms
@ReneHollander
ReneHollander / main.cpp
Last active January 13, 2018 21:34
Optimization results
#include <iostream>
#include <iomanip>
#include "../src/kissrandom.h"
#include "../src/annoylib.h"
#include <chrono>
#include <map>
int main(int argc, char **argv) {
int f = 96;
int n = 100000;
@ReneHollander
ReneHollander / 1080p_60fps.json
Created October 15, 2017 19:07
Handbrake 1080p 60FPS
{
"PresetList": [
{
"AudioCopyMask": [
"copy:aac",
"copy:ac3",
"copy:dtshd",
"copy:dts",
"copy:mp3",
"copy:truehd",
@ReneHollander
ReneHollander / exception.txt
Created June 23, 2017 16:00
OverTool v1.12.0.6 Hanamura export error
C:\Development\Overtool>OverTool.exe "C:\Program Files (x86)\Overwatch" M D:\OverDump Hanamura > log.txt
Unbehandelte Ausnahme: System.IndexOutOfRangeException: Der Index war außerhalb des Arraybereichs.
bei OWLib.Map..ctor(Stream input, Boolean open)
bei OverTool.ExtractMap.Parse(Dictionary`2 track, Dictionary`2 map, CASCHandler handler, Boolean quiet, OverToolFlags flags)
bei OverTool.Program.Main(String[] args)
package at.renehollander.euler;
import java.util.*;
public class Sort {
static int n = 10;
static List<Integer> list = new ArrayList<>();
static final int RED = 0;
<html>
<head>
<script language="javascript" type="text/javascript">
function setAmount(amount) {
document.getElementById("amount").setAttribute('value', amount)
}
function openDonation() {
window.open("https://www.paypal.me/dominicboeck/" + document.getElementById("amount").getAttribute('value'), "_blank");
}
vagrant@jessie:~/skia$ ninja -C out/pi skia
ninja: Entering directory `out/pi'
[47/1162] compile ../../src/ports/SkFontConfigInterface_direct_factory.cpp
FAILED: obj/src/ports/fontmgr_fontconfig.SkFontConfigInterface_direct_factory.o
c++ -MMD -MF obj/src/ports/fontmgr_fontconfig.SkFontConfigInterface_direct_factory.o.d -DSK_SAMPLES_FOR_X -DSK_GAMMA_APPLY_TO_A8 -DSK_INTERNAL -DSKIA_IMPLEMENTATION=1 -I../../include/android -I../../include/c -I../../include/codec -I../../include/config -I../../include/core -I../../include/effects -I../../include/gpu -I../../include/gpu/gl -I../../include/images -I../../include/pathops -I../../include/ports -I../../include/svg -I../../include/utils -I../../include/utils/mac -I../../include/xml -I../../include/private -I../../src/c -I../../src/codec -I../../src/core -I../../src/effects -I../../src/effects/gradients -I../../src/fonts -I../../src/gpu -I../../src/image -I../../src/images -I../../src/lazy -I../../src/opts -I../../src/pathops -I../../src/pdf -I../../src/ports -I../../
// Targeted by JavaCPP version 1.2: DO NOT EDIT THIS FILE
package org.bytedeco.javacpp;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
public class annoy extends org.bytedeco.javacpp.presets.annoy {
static { Loader.load(); }