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
@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");
}
@ReneHollander
ReneHollander / main.cpp
Created December 29, 2016 16:08
Skia on the Raspberry Pi
#include <iostream>
#include <assert.h>
#include <stdio.h>
#include <cstdio>
#include <bcm_host.h>
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
/*
* 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"
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../../
#include <libopencm3/stm32/gpio.h>
#include <libopencm3/stm32/dac.h>
#include <libopencm3/stm32/dma.h>
#include <libopencm3/stm32/rcc.h>
#include <libopencm3/stm32/timer.h>
#define SINE_TABLE_LEN 256
const uint16_t sine_table[SINE_TABLE_LEN] = { // now with actual sine
2047, 2097, 2147, 2198, 2248, 2298, 2347, 2397, 2446, 2496, 2544, 2593, 2641, 2689, 2737, 2784, 2830, 2877, 2922, 2967, 3012, 3056, 3099, 3142, 3184, 3226, 3266, 3306, 3346, 3384, 3422, 3458, 3494, 3530, 3564, 3597, 3629, 3661, 3691, 3721, 3749, 3776, 3803, 3828, 3852, 3875, 3897, 3918, 3938, 3957, 3974, 3991, 4006, 4020, 4033, 4044, 4055, 4064, 4072, 4079, 4084, 4088, 4092, 4093, 4094, 4093, 4092, 4088, 4084, 4079, 4072, 4064, 4055, 4044, 4033, 4020, 4006, 3991, 3974, 3957, 3938, 3918, 3897, 3875, 3852, 3828, 3803, 3776, 3749, 3721, 3691, 3661, 3629, 3597, 3564, 3530, 3494, 3458, 3422, 3384, 3346, 3306, 3266, 3226, 3184, 3142, 3099, 3056, 3012, 2967, 2922, 2877, 2830, 2784, 2737, 2689, 2641, 2593, 2544, 2496, 2446, 2397, 2347, 2298, 2248,
// 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(); }
@ReneHollander
ReneHollander / annoy.java
Created May 31, 2016 14:08
Annoy Presets
// 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(); }