Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Björn Zeutzheim olee

🏠
Working from home
View GitHub Profile
@olee
olee / HyperboleServer.ts
Last active Jun 7, 2021
Deno hyperbole server (workshop)
View HyperboleServer.ts
export interface HyperboleRequest {
url: URL;
body?: unknown;
method: string;
pathname: string;
}
async function hyperboleRequest(request: Request): Promise<HyperboleRequest> {
const decoder = new TextDecoder();
const url = new URL(request.url);
@olee
olee / WebGlVideoProcessor.ts
Created Apr 17, 2021
remotion advanced video renderer
View WebGlVideoProcessor.ts
import { continueRender, delayRender, RemotionVideoProps } from 'remotion';
import { GlslVarType, setUniform } from './glUtils';
export interface VideoShaderOptions {
variables?: {
type: GlslVarType;
name: string;
}[];
}
View main.js.map (with babel-loader)
{
"version": 3,
"file": "main.js",
"sources": [
"webpack://webpack-issue-12814/./node_modules/ansi-html/index.js",
"webpack://webpack-issue-12814/./node_modules/events/events.js",
"webpack://webpack-issue-12814/./node_modules/html-entities/lib/html4-entities.js",
"webpack://webpack-issue-12814/./node_modules/html-entities/lib/html5-entities.js",
"webpack://webpack-issue-12814/./node_modules/html-entities/lib/index.js",
"webpack://webpack-issue-12814/./node_modules/html-entities/lib/surrogate-pairs.js",
View css-layout-hack.js
// create a bookmark and use this code as the URL, you can now toggle the css on/off
// thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3
javascript: (function() {
var styleEl = document.getElementById('css-layout-hack');
if (styleEl) {
styleEl.remove();
return;
}
styleEl = document.createElement('style');
styleEl.id = 'css-layout-hack';
@olee
olee / index.d.ts
Created Dec 20, 2016
react-router@v4/index.d.ts
View index.d.ts
import * as React from "react";
interface Location {
pathname: string;
query?: any;
state?: any;
}
interface RenderProps {
pattern: string;
@olee
olee / tslint.json
Created Sep 18, 2016
tslint.json config for FE scripting
View tslint.json
{
"rules": {
"class-name": true,
"comment-format": [true, "check-space"],
"curly": false,
"eofline": true,
"forin": false,
"indent": [false, "tabs"],
"label-position": true,
"label-undefined": true,
View BdoLvS.md

BdoLvS

Vorlesung 1

  1. Einführung

  • 1.1 Begriffe
View gist:b7c96fab42fb0776d611
---- Minecraft Crash Report ----
// I feel sad now :(
Time: 01.07.15 18:58
Description: Exception while updating neighbours
java.lang.NullPointerException: Exception while updating neighbours
at net.minecraft.block.BlockPortal.func_149695_a(SourceFile:158)
at net.minecraft.world.World.func_147460_e(World.java:697)
at net.minecraft.world.World.func_147459_d(World.java:652)
View cookieclicker.user.js
// ==UserScript==
// @name cookieclicker
// @namespace de.olee.cookieclicker
// @include http://orteil.dashnet.org/cookieclicker/
// @version 1
// @grant none
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// ==/UserScript==
function update() {
@olee
olee / fml-client-latest.log
Created May 20, 2015
Crash when placing autarchic gate on LP - Client
View fml-client-latest.log
[23:30:30] [Client thread/ERROR] [FML/]: PacketInboundHandler exception
java.lang.RuntimeException: java.io.EOFException
at logisticspipes.network.packets.pipe.PipeTileStatePacket.processPacket(PipeTileStatePacket.java:56) ~[PipeTileStatePacket.class:0.9.0.91]
at logisticspipes.network.PacketInboundHandler.channelRead0(PacketInboundHandler.java:20) ~[PacketInboundHandler.class:0.9.0.91]
at logisticspipes.network.PacketInboundHandler.channelRead0(PacketInboundHandler.java:16) ~[PacketInboundHandler.class:0.9.0.91]
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) ~[SimpleChannelInboundHandler.class:?]
at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMes