Here is a simple and robust way to check for the validity of an email address syntax directly in the browser. No need for crazy regular expressions.
e = document.createElement('input')
e.type = 'email'
// check some email addresses
e.value = 'hi@'Here is a simple and robust way to check for the validity of an email address syntax directly in the browser. No need for crazy regular expressions.
e = document.createElement('input')
e.type = 'email'
// check some email addresses
e.value = 'hi@'HTML forms let us only use GET and POST methods, but HTTP provides us with more:
HEAD It works like GET but will not return the body. Useful for checking if the resource is 404 or has been updated (via caching headers).
PUT A way for HTTP to tell "create or update if exist" the resource at this URL with my payload.
It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.
| Common misconceptions about Progressive Web Apps | |
| They have to be SPAs. | |
| They have to live at pwa.*.com | |
| They have to be mobile only. | |
| They're not allowed to be responsive. | |
| They have to use material design. | |
| They only work in chrome. | |
| They don't work in safari or on iOS. | |
| They have to look like your android app. |
Batteries-included, minimal-configuration JS bundler
A hypothetical JavaScript bundler. bundle-js aims to be your one-stop-shop for everything in the JS frontend. Goals:
The issue:
..mobile browsers will wait approximately 300ms from the time that you tap the button to fire the click event. The reason for this is that the browser is waiting to see if you are actually performing a double tap.
(from a new defunct https://developers.google.com/mobile/articles/fast_buttons article)
touch-action CSS property can be used to disable this behaviour.
touch-action: manipulationThe user agent may consider touches that begin on the element only for the purposes of scrolling and continuous zooming. Any additional behaviors supported by auto are out of scope for this specification.
| sudo yum -y install gcc gcc-c++ kernel-devel | |
| sudo yum -y install python-devel libxslt-devel libffi-devel openssl-devel | |
| pip install cryptography |
| var webpack = require('webpack'); | |
| var HtmlWebpackPlugin = require('html-webpack-plugin'); | |
| var path = require('path'); | |
| var folders = { | |
| APP: path.resolve(__dirname, '../app'), | |
| BUILD: path.resolve(__dirname, '../build'), | |
| BOWER: path.resolve(__dirname, '../bower_components'), | |
| NPM: path.resolve(__dirname, '../node_modules') | |
| }; |