Stunning new work by the folks over at InVision: Coming January 2018 InVision Studio →
Author Archives: Bramus!
Stealing your browser history with the W3C Ambient Light Sensor API
A few years ago window.getComputedStyle and the like where adjusted to return the default color of links, instead of the actual color on screen. Security and privacy were the driving factors behind that decision: by styling :visited links with a different color than their non-visited counterparts, a hacker could easily determine which sites a user …
Continue reading “Stealing your browser history with the W3C Ambient Light Sensor API”
Luna Display’s “Camera Button”
What do you do when Apple keeps on taking away buttons from their devices (and when swipe gestures from nearly all edges are already taken by something else)? Well, you invent a new button: So when we ran out of buttons to hide our software’s UI behind, it really forced us to use our imagination. …
Browsershot: Convert a webpage to an image or PDF using headless Chrome
The folks over at Spatie have just release Browsershot v3: Browsershot is a PHP package which can convert a webpage to an image or pdf. The conversion is done behind the scenes by Puppeteer which controls a headless version of Google Chrome. Conversion is easy-peasy, hence this example: use Spatie\Browsershot\Browsershot; // an image will be …
Continue reading “Browsershot: Convert a webpage to an image or PDF using headless Chrome”
Building a desktop application with Electron
BADASS
Behind the Magic of Rogue One: A Star Wars Story
Sticky Sidebar
Sticky Sidebar ⬆⬇ is a pure JavaScript plugin for making smart and high performance sticky sidebar, works with sidebar if it’s taller or shorter than the viewport, integrated with resize sensor to re-calculate the dimensions automatically when the size of sidebar or its container is changed, supports jQuery/Zepto and compatible with Firefox, Chrome, Safari, and …
Create and share beautiful images of your source code with Carbon
Easier imports with Webpack’s resolve.alias
One of the things I find annoying when using import in my JS code is the fact that you need to refer to other local files using (relative) paths. Like so: // Without resolve.alias 😭 import Modal from ‘../../../components/objects/modal/modal’; Having a background in PHP – where you have include paths and autoloaders – I essentially …
Continue reading “Easier imports with Webpack’s resolve.alias“