Automatically transpile modern packages in node_modules.
Available in 3 fun flavours: plugin, loader and loader factory.
Add the plugin to your webpack config, and it should handle everything for you.
export x = 42
| Process for setting up github pages with namecheap domain. | |
| 1. Go to namecheap.com, select and buy domain name. | |
| 2. Login to namecheap, go to username drop down and select dashboard. | |
| 3. Go to DomainList | |
| 4. Click manage button | |
| 5. Click Advanced DNS tab | |
| 6. Click add record and add three records: | |
| Type: A Record | Host: @ | Value: 192.30.252.153 | TTL: Automatic |
| var $input = $('.my-input-field'), | |
| errorMessege = 'This field is required'; | |
| if ($input.willValidate()) { | |
| $input.checkValidity(); // true | |
| $input.validationMessage(); // '' | |
| /* Set input field as invalid */ | |
| $input.setCustomValidity(errorMessage); | |
| $input.checkValidity(); // false |
Picking the right architecture = Picking the right battles + Managing trade-offs
| /** | |
| * Granite UI Multifield adapter | |
| * | |
| * Has improved setDisabled method which disables all form input fields, the | |
| * delete buttons, the reorder buttons and the add button within the Multifield. | |
| * The adapter also contains a new method to enable and disable just the add | |
| * button which can be used to limit the size of the multifield. | |
| * | |
| * Usage: | |
| * var field = $('.coral-Multifield').adaptTo('nateyolles-field'); |
| (function($) { | |
| "use strict"; | |
| // Create the defaults once | |
| var pluginName = "defaultPluginName"; | |
| var defaults = { | |
| propertyName: "value" | |
| }; |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent| const gblFrom = { | |
| year : 2020 , | |
| month : 3, | |
| day : 29, | |
| hour : 0 | |
| }; | |
| const gblTo = { | |
| year : 2020 , | |
| month : 8, | |
| day : 1, |