British Pathé recently released 90,000 videos on to YouTube (though I could only find 82058 of them) – I wanted to make some kind of mashup art with it, but was not creative enough to think of anything interesting. So, instead I present: Random video player! Randomly (and pretty-much-endlessly) play through the collection, marveling at […]
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 […]
Alien vs Joy Division
Above is from “Alien” released in May 1979. Below is from Joy Division’s “Unknown Pleasures”, April 1979.
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.
“let” is the new “with”. But good.
The ES2015’s let and const keywords give us better (actually useful!) control over variable scope. We can use this to write code in a more terse, cleaner manner.