Skip to content

Instantly share code, notes, and snippets.

🐢
Turtle

Niklas Korz niklaskorz

🐢
Turtle
Block or report user

Report or block niklaskorz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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
View gol.py
from time import sleep
w, h = world.getSizeX(), world.getSizeY()
grid = {}
def set_grid(x, y, val):
if x not in grid:
grid[x] = {}
grid[x][y] = val
View excuses.py
from pyquery import PyQuery as pq
import urllib
import sys
excuses = set()
try:
while True:
d = pq(url='http://programmerexcuses.com/')
a = d('a').text()
You can’t perform that action at this time.