Skip to content

Instantly share code, notes, and snippets.

View claus's full-sized avatar
🎅

Claus Wahlers claus

🎅
View GitHub Profile
import _ from 'lodash';
import React from 'react';
function proxyToParent(ctx, fn, eventName) {
if (_.isFunction(ctx.props[eventName])) {
let parentFn = ctx.props[eventName];
return _.wrap(fn, function (func, e) {
fn(e);
parentFn(e);
});
"use strict";
let listeners = [];
let scrollTop = 0;
let innerWidth = 0;
let innerHeight = 0;
let waitForRAF = false;
const supportsPassive = (function () {
let supportsPassiveOption = false;
PLAY LOUD I
Core-Side
Slayer with Ice-T - Disorder
Growing Movement - Crazy World
Sepultura - Manifest
Biohazard - Punishment
Agnostic Front - Crucified
Agnostic Front - Your Mistake
Sick Of It All - We Stand Alone
;
; Apple DOS 3.1 Disassembly - (Patched Release - RAWDOS)
;
; This disassembly is based on the original pre-release Apple DOS source
; code written in 1978 by Paul Laughton, then an employee of Shepardson
; Microsystems. The source document is identified on the title page with
; the following text:
;
; .TITLE SHEP,'APPLE DOS'
; 6.3 10-6-78

Keybase proof

I hereby claim:

  • I am claus on github.
  • I am claus (https://keybase.io/claus) on keybase.
  • I have a public key whose fingerprint is 9219 3833 59C9 BAE1 026C D0D6 A184 6359 CD56 33D4

To claim this, I am signing this object:

Acid House Kings - Play Pop! EP
A1 - She Fakes Apples
A2 - Hey What's Up
B1 - Hopefully
B2 - Anorak
American Analog Set
A1 - Diana Slowburner II
B1 - High Fidelity vs Guy Fidelity
Apartment 3G - Double Whoosher
A1 - Sub Rosa
@claus
claus / 1_flashplayer_telemetry_amf3_dump.txt
Last active December 19, 2015 12:38
Partial dump of AMF3 objects sent by the Flash Player over socket when ~/.telemetry.cfg is in place.
{"value":"3,2","__className":".value","name":".tlm.version"}
{"value":0,"__className":".value","name":".tlm.meta"}
{"value":1373361009100,"__className":".value","name":".tlm.date"}
{"value":"11,7,700,225","__className":".value","name":".player.version"}
{"value":"Plugin","__className":".value","name":".player.type"}
{"value":true,"__className":".value","name":".player.debugger"}
{"value":1373352885524,"__className":".value","name":".player.global.date"}
{"value":56,"__className":".value","name":".player.instance"}
{"value":20,"__className":".value","name":".player.scriptplayerversion"}
{"value":"&M=Adobe%20Macintosh&R=1440x900&COL=color&AR=1.0&OS=Mac%20OS%2010.8.4&ARCH=x86&L=en&PR32=t&PR64=t","__className":".value","name":".platform.capabilities"}
import flash.utils.Dictionary;
var key;
var dict = new Dictionary();
dict['0'] = true;
dict['1'] = true;
dict['2'] = true;
dict['3'] = true;
dict['4'] = true;
var count:int = 3;
@claus
claus / decode_js.html
Created June 4, 2012 13:35
Load jQuery with PNGDrive
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>PNGDrive.js</title>
</head>
<body>
<p><a href="https://github.com/MadeInHaus/PNGDrive">PNGDrive on GitHub</a></p>
@claus
claus / BitStream.js
Created May 29, 2012 17:37
A simple Uint8Array based bitstream JavaScript class
// Usage:
// var buf = new Uint8Array(128);
// var bitstream = new BitStream(buf);
// bitstream.writeBits(12, 0xffff);
// bitstream.seekTo(0);
// bitstream.readBits(6); // 111111
// bitstream.readBits(10); // 1111110000
window.BitStream = function(uint8Array) {