qrcode-terminal is a tiny npm module that allows you to encode text as a QR code and render it to a UNIX-compatible terminal. // render QR code to the console qrcode.generate(‘http://michaelbrooks.ca’); // return QR code as a string qrcode.generate(‘http://michaelbrooks.ca’, function (qrcode) { console.log(qrcode); }); QR Code Terminal →
Author Archives: Bramus!
Sonic Creator
Métropolitain
Teton Gravity Research Aerial Reel – The Bay Area in 4K
Map Projection Transitions
Graphene
In 2012, a group of researchers at UCLA discovered they could make single-layer sheets of graphene by coating a DVD with graphite oxide and then “playing” the disc in a plain old DVD drive. And then in a happy accident, they found that graphene has ususually high supercapacitance properties, which could mean that graphene could …
Silex Code Fiddles/Examples
For the course Webscripting2 I’m lecturing at ikdoeict.be/KaHo Sint-Lieven, we’re working with Silex. Next to the slidedeck explaining Silex, all examples are freely available on GitHub (links at the bottom of this post) The collection of examples start with the very basics of Silex and introduce more routing options and services as they continue. Basic:The …
Événement — PHP Event Dispatcher
Événement is a very simple event dispatching library for PHP. It has the same design goals as Silex and Pimple, to empower the user while staying concise and simple. Concise indeed. At the core it’s a tad above 50 lines of codes. Listening for events: $emitter->on(‘user.created’, function (User $user) use ($logger) { $logger->log(sprintf(“User ‘%s’ was …