Skip to content

Instantly share code, notes, and snippets.

🐢
Turtle

Niklas Korz niklaskorz

🐢
Turtle
View GitHub Profile
View shaka-player.compiled.d.ts
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 / Dockerfile
Created Nov 16, 2019
Dockerfile with Ubuntu 19.10, Clang 9, CMake 3.15 and vcpkg
View Dockerfile
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
@niklaskorz
niklaskorz / quotes.lua
Created Dec 1, 2018
Pandoc filter for replacing quotation marks
View quotes.lua
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
View keybase.md

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 / setlx.json
Last active Aug 27, 2018
SetlX Scoop Manifest
View setlx.json
{
"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": [
View shaka-player.compiled.d.ts
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.
View shaka.d.ts
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
View GameLoop.js
/***/ 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;
View keybase.md

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:

View proto-element.coffee
Polymer 'proto-element',
name: 'Me'
age: 20
color: '#0000ff'
publish:
valueless:
value: false
reflect: true
nameChanged: ->
if @name
You can’t perform that action at this time.