In this tutorial, we will use the ever popular “counter” example. With a twist. Instead of using setTimeout, we’ll be using the more performant requestAnimationFrame method. This will seem challenging because requestAnimationFrame is itself a closure. So how do we deal with closures inside of closures? How can we update the parent state of our [ Read More… ]
Author: wLc
This tutorial will highlight why you would want to use closures instead of raw objects to manage the iternal state of your mithril component. We will start by building a basic traffic light component. Right now, the component is not doing much of anything, except that a lexical scope is created when the trafficLight component [ Read More… ]
An Introduction to Mithril Components
As with other popular frameworks, mithril allows developers to encapsulate functionality into reusable components. A mithril component is comprised of an object containing lifecycle methods and a “view” method to render HTML. vnode(s) are javascript objects that represent the virtual DOM elements. To create a vnode, an HTML element tag, id, class, or component is [ Read More… ]
Get Started with Mithril
This will be the first of many tutorials covering the lesser known but very powerful and performant javascript framework Mithril.js. Mithril is primarily used for SPA (Single Paged Applications) but also works well as a drop in for existing sites and in many cases a replacement for jQuery. Creating a basic HTML file Start by [ Read More… ]
I recently finished a WordPress project that needed a “podcast” custom post type. The post type required restricted use to one user role, however, I noticed that the custom post type was available to all user roles. I then changed the capability_type argument to “podcast”, and the custom post type disappeared completely. It dawned on me that [ Read More… ]
The folllowing tutorial is based off my recent experience setting up a LEMP stack on an Ubuntu installation hosted by Digital Ocean. Setting up a Multi-Site SSL isn’t difficult. The “gotchas” is in your server block’s .conf file. Before we get to that part, set up your Digital Ocean Droplet before installing WordPress with the following [ Read More… ]
Eric Bard
Eric Bard is a Los Angeles-based multimedia composer and multi-instrumentalist with expertise in film scoring, music production, and sound design. (http://ericbard.com)
Foundation 6 Menu Walker Class for WordPress
It’s about that time again. New menu walkers for the new and improved Foundation 6. Last year I posted a menu walker class for Foundation 5, but this year I’m dropping 2, one for the Top Bar and another for the Drill Menu. You’ll notice these Walker classes are streamlined, only using one method. Fall Back [ Read More… ]
Anchor Jack
Anchor Jack™ supplies you with up to the minute information and details about the artist Anchor Jack™ An application keeping you informed about new images, shows and songs with varying opportunities and ways to explore them. This shows itself in the form live broadcasting content and interactive music and performance options. All functions will be [ Read More… ]
Send Push Notifications with WordPress
Why send push notifications with WordPress you ask? The WP REST API will soon become part of the WordPress core, and you may want to someday integrate your WordPress site with an iOS app. To be clear, this tutorial will cover how to get selected WordPress data to the Parse.com service. We will not be covering [ Read More… ]