matthewphillips.info

A while ago I tweeted a thread about how a small JavaScript snippet, one that can fit in a single...

caniemail.com

The french Tilt Studio built a caniuse clone for email clients. Note that while checking styling support helps using (or...

There are a few ways to access view helpers from the Rails console. The easiest way is the helper shortcut...

You can use constraints in your routes.rb to avoid getting ActionView::MissingTemplate errors when wrong routes are called. Instead, the...

web.archive.org

Use the compile function to change the original DOM (template element) before AngularJS creates an instance of it and before...

When a user shares your content, a snippet with title, image, link and description appears in her timeline. By default...

superuser.com

Inspecting the source of an email does not always reveal the plain HTML source, but some encoded byte mess. In...

The goal is to get Jasmine specs running in a Rails project using Webpacker, with the browser based test runner...

Until Capybara 2, node finders that accept a text option were able to find nodes based on rendered text, even...

Over the years we have tried several solution to have vector icons in our applications. There are many ways to...

Download buttons can be difficult to test, especially with Selenium. Depending on browser, user settings and response headers, one of...

In Rails, we usually have a mailer setup like this: class MyMailer < ActionMailer::Base def newsletter mail to: 'receiver@host.tld',

Many mail clients do not support external style sheets. Some even require all styling inline, which means you'll have...

When we want to use our own (or bought) fonts in an application with Webpack(er), we have two options...

From at least Rails 4, the ActionView tag helper turns Array values of HTML options into a single space-separated...

makandra dev

This is a presentation from 2019-01-21. Summary We want to move away from jQuery in future projects

When building an application that sends e-mails to users, you want to avoid those e-mails from being classified...

The Ace editor is a great enhancement when you want users to supply some kind of code (HTML, JavaScript, Ruby...

makandra dev
github.com

Deployment ready for Opscomplete Copying view and controller templates over to target application during basics configuration or via...

api.jquery.com

jQuery's removeClass removes the given class string from an element collection. If you want to remove multiple/unknown classes matching...

TL;DR: All modern browsers default to using the element as the main document viewport. In CSS, prefer to set...

developer.mozilla.org

...HTML's accepts a single file. You can allow multiple files via . But sometimes, selecting multiple files is not enough...

pivotaltracker.com

When writing a story description in Pivotal Tracker, there is now a tiny button at the bottom of the description...

plnkr.co

Flexbox is awesome. Most of it even works in IE11, but flex: 1 won't work reliably in Internet Explorer...