Mr Speaker

Author Archives: Mr Speaker

Functions as RxJS Subjects

Here’s a nifty trick if you’re using RxJS, and want to subscribe to plain ol’ function invocation. This is especially useful if you want to use React, and don’t want to bind with Rx.Observable.fromEvent with standard DOM event listeners. import Rx from ‘rx’; const RxFuncSubject = () => { const subject = Object.assign( (…args) => […]

Five short years

On Friday, October 22, 2010 I conducted a scientific experiment: if one URL shortener can make a URL shorter, then fifteen URL shorteners can make it reaaaally short. The results were quite as you’d expect: the resulting link was longer than source, and browsers would go into convolutions trying to resolve the chain of shortened […]

Explostyx: explody 3D french fries

Some more crazy 3D action in the form of Explostyx: explody 3D french fries thing. It’s what happens when you make one simple thing and then just repeat it a whole stack of times. Like all good pop art. It’s using Three.js, and 100-odd lines of ES2015 – so it’s a pretty simple example if […]

Wanna do new JavaScript + React?

Here’s the “easiest” way to get started with the latest version of JavaScript (so much new stuff in es2105!) and the most popular kid (for this week, at least) in the JS framework playground: React. This approach uses the wonderful new JSPM package manager… so if you’re not willing to place your bet on this […]

Announcing JS.scala v0.1

I’m pleased to announce the initial releas of JS.scala. JS.scala compiles JavaScript source code to Scala source code, allowing you to write your web application entirely in JavaScript! Finally, the expressive power of JavaScript available on the JVM via Scala (some call it “the bytecode of the JVM bytecode”). How does it work? Well, given […]

Oculus Rift Reddit Internet Explorer

Recently both Firefox and Chrome released VR-enabled version of their browsers. Just as Lawnmower Man predicted. I decided to test them out with the Rift, by hacking together “Mr Speaker’s Internet Explorer” (or the repo): It loads any ImgUr images in a sub, and finds related subs mentioned in the “about” info.

Mac service: open iTerm at selection path

Opening the current folder or file path in iTerm is something I want to do a lot. The second time I ever wanted to do this I decided I should automate it. The 10,000th time I wanted to do this, I actually did automate it. Here is an applescripted automator service to open the current […]