Skip to content

Instantly share code, notes, and snippets.

View niklaskorz's full-sized avatar
🐢
Turtle

Niklas Korz niklaskorz

🐢
Turtle
View GitHub Profile

Keybase proof

I hereby claim:

  • I am niklaskorz on github.
  • I am nyk (https://keybase.io/nyk) on keybase.
  • I have a public key ASCreUwP-As8m_gjkuDYvmarjGCmTCaMkSywnoA4oK6aqgo

To claim this, I am signing this object:

/***/ 121:
/***/ function(module, exports, __webpack_require__) {
"use strict";
var GameLoop = (function () {
function GameLoop() {
this.simulationStep = 1000 / 60;
this.frameDelta = 0;
this.lastFrameTimeMs = 0;
this.fps = 60;
namespace shaka {
namespace media {
class InitSegmentReference {
/**
* Creates an InitSegmentReference, which provides the location to an
initialization segment.
* @param uris A function that creates the URIs of the resource containing the segment.
* @param startByte The offset from the start of the resource to the
start of the segment.
* @param endByte The offset from the start of the resource to the
declare namespace shaka {
namespace media {
/**
* Creates an InitSegmentReference, which provides the location to an initialization segment.
*/
class InitSegmentReference {
/**
* Creates an InitSegmentReference, which provides the location to an initialization segment.
* @param uris A function that creates the URIs of the resource containing the segment.
* @param startByte The offset from the start of the resource to the start of the segment.
@niklaskorz
niklaskorz / setlx.json
Last active August 27, 2018 15:24
SetlX Scoop Manifest
{
"homepage": "https://randoom.org/Software/SetlX",
"description": "setlX is an interpreter for the high level programming-language SetlX (set language extended)",
"version": "2.7.0",
"license": "BSD-3-Clause",
"url": "http://download.randoom.org/setlX/pc/setlX_v2-7-0.binary_only.zip",
"hash": "876c8aad46fc8c08e71d55fc0e6b9a46d753f16ea9655d1beae76d170b1f2de3",
"bin": "setlX.cmd",
"suggest": {
"JDK": [

Keybase proof

I hereby claim:

  • I am niklaskorz on github.
  • I am nyk (https://keybase.io/nyk) on keybase.
  • I have a public key ASCWKuHBBOR2o2K_b8dMZfOpnChVBeA7qOzRanYsmAFXfgo

To claim this, I am signing this object:

@niklaskorz
niklaskorz / quotes.lua
Created December 1, 2018 11:17
Pandoc filter for replacing quotation marks
local double_quotes = {"»", "«"}
local single_quotes = {"›", "‹"}
function get_preferences(m)
if m.double_quotes and m.double_quotes[1] and m.double_quotes[2] then
double_quotes = { m.double_quotes[1][1].c, m.double_quotes[2][1].c }
end
if m.single_quotes and m.single_quotes[1] and m.single_quotes[2] then
single_quotes = { m.single_quotes[1][1].c, m.single_quotes[2][1].c }
end
@niklaskorz
niklaskorz / Dockerfile
Created November 16, 2019 10:45
Dockerfile with Ubuntu 19.10, Clang 9, CMake 3.15 and vcpkg
FROM ubuntu:19.10
RUN apt-get update
RUN apt-get install -y ninja-build clang
RUN apt-get install -y curl unzip tar wget git
RUN apt-get autoremove -y
RUN wget -O cmake.sh https://github.com/Kitware/CMake/releases/download/v3.15.5/cmake-3.15.5-Linux-x86_64.sh && sh ./cmake.sh --prefix=/usr/local --skip-license
ENV CC clang
declare namespace shaka {
namespace util {
/**
* A timer allows a single function to be executed at a later time or at regular intervals.
*/
class Timer {
/**
* Create a new timer. A timer is committed to a single callback function. While there is no technical reason to do this, it is far easier to understand and use timers when they are connected to one functional idea.
*/
constructor(onTick: (() => void));
@niklaskorz
niklaskorz / Deutsche_Hauptstadt.txt
Created December 15, 2020 20:08
Example paraphrase datasets
<Len_1.000><Dst_1><Lex_1.000><Syn_1.000>Religionsgesellschaft zugehörig“ zugeordnet.
Religionsgesellschaft zugehörig" zugeordnet.
<Len_1.056><Dst_12><Lex_1.343><Syn_1.000>2016 wurde Bremen der Ehrentitel „Reformationsstadt Europas“ durch die Gemeinschaft Evangelischer Kirchen in Europa verliehen.
2016. 2016 wurde Detmold der Ehrentitel „Reformationsstadt Europas“ durch die Gemeinschaft Evangelischer Kirchen in Europa verliehen.
<Len_0.980><Dst_2><Lex_1.000><Syn_1.000>Am 25. Mai 2009 erhielt die Stadt den von der Bundesregierung verliehenen Titel „Ort der Vielfalt“.
Am 25. Mai 2009 erhielt die Stadt den von der Bundesregierung verliehenen Titel Ort der Vielfalt.
<Len_1.000><Dst_2><Lex_1.045><Syn_1.000>1905 hatte die Stadt 250.000 Einwohner, bis 1933 verdoppelte sich diese Zahl auf 500.000.
1905 hatte die Stadt 250.000 Einwohner, bis 1950 verdoppelte sich diese Zahl auf 500.000.
<Len_1.000><Dst_4><Lex_0.781><Syn_1.000>Während der Zeit der Nationalsozialisten wurde der Oberbürgermeister von der NSDAP eingesetzt.