rafscroll – chain your scroll events to requestAnimationFrame

new rafscroll(function() { // Do your thing here. }); Your monitor refreshes at 60 frames per second (fps). Scroll events, on the other hand, do not. Chaining your scroll events to a requestAnimationFrame ensures that your transitions and animations will refresh each time the monitor refreshes, rather than each time a scroll event is fired. …

On being overwhelmed with our fast paced industry

JavaScript var is dead? We should use ES2015 let and const now? CSS is getting variables, nesting, scoping and custom selectors. Preprocessors like Sass and Stylus are dead, long live PostCSS. Just learned Grunt? Oh you should use Gulp – wait no, Webpack. Still laying out your sites using floats like a sucker? Flexbox is …

Cyclon.js – JavaScript Robotics

JavaScript Robotics, By Your Command. Next generation robotics framework with support for 36 different platforms Take the Leap Motion for example. Install Cyclon.js using npm, and then use this little tad of code to start interacting via the Leap Motion: var Cylon = require(‘cylon’); Cylon.robot({ connections: { leapmotion: { adaptor: ‘leapmotion’ } }, devices: { …

Electron – Build cross platform desktop apps with web technologies

var app = require(‘app’); // Module to control application life. var BrowserWindow = require(‘browser-window’); // Module to create native browser window. // Report crashes to our server. require(‘crash-reporter’).start(); // Keep a global reference of the window object, if you don’t, the window will // be closed automatically when the javascript object is GCed. var mainWindow …

WordPress 4.2 Stored XSS

Earlier this week WordPress 4.1.3. It fixed an XSS exploit discovered by a former student of mine. This week a new exploit – even in the new WordPress versions, including 4.2 – was uncovered. Current versions of WordPress are vulnerable to a stored XSS. An unauthenticated attacker can inject JavaScript in WordPress comments. If triggered …