Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Rene Hollander ReneHollander

🏠
Working from home
View GitHub Profile
@ReneHollander
ReneHollander / Angular
Created Jan 16, 2018
Vectorized euclidian and angular distance and verctorized dot product
View Angular
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 Jan 13, 2018
Optimization results
View main.cpp
#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;
View 1080p_60fps.json
{
"PresetList": [
{
"AudioCopyMask": [
"copy:aac",
"copy:ac3",
"copy:dtshd",
"copy:dts",
"copy:mp3",
"copy:truehd",
@ReneHollander
ReneHollander / exception.txt
Created Jun 23, 2017
OverTool v1.12.0.6 Hanamura export error
View exception.txt
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)
View Sort.java
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;
View donate.html
<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");
}
View GlGLCreateNativeInterface_egl.cpp
/*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkTypes.h"
#include "gl/GrGLInterface.h"
#include "gl/GrGLAssembleInterface.h"
View skia_build_failure
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../../
View annoy.java
// 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(); }
View annoy.java
// 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(); }