The :focus selector is used to select the element that has focus. It is allowed on elements that accept keyboard events or other user inputs.
- HTMLInputElement
- HTMLSelectElement
- HTMLTextAreaElement
- HTMLAnchorElement
- HTMLButtonElement
- HTMLAreaElement
| - Open Automator | |
| - File -> New -> Service | |
| - Change "Service Receives" to "files or folders" in "Finder" | |
| - Add a "Run Shell Script" action | |
| - Change "Pass input" to "as arguments" | |
| - Paste the following in the shell script box: open -n -b "com.microsoft.VSCode" --args "$*" | |
| - Save it as something like "Open in Visual Studio Code" |
| const fetch = require('node-fetch') | |
| const Bacon = require('baconjs') | |
| function getInPortuguese(word) { | |
| // Google Translate API is a paid (but dirt cheap) service. This is my key | |
| // and will be disabled by the time the video is out. To generate your own, | |
| // go here: https://cloud.google.com/translate/v2/getting_started | |
| const apiKey = | |
| 'AIzaSyB4DyRHIsNhogQXmH16YKbZfR-lTXrQpq0' | |
| const url = |
Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.
Translations: (No guarantee that the translations are up-to-date)
| " Make IE Better Compatible " | |
| <!--[if IE]> | |
| <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> | |
| <![endif]--> | |
| ====================================================== | |
| IE6 Only | |
| ================== | |
| _selector {...} |
This is a small guide to marking up fully accessible tabs. Consider using PostHTML ARIA Tabs as a practical solution.
tablist role to the <ul> to indicate it contains tabs.presentation role to each <li> to bypass its list item state.tab role to each <a> to incidate it is an actual tab.href and aria-controls to each <a> to reference its tab panel.| var OFF = 0, WARN = 1, ERROR = 2; | |
| module.exports = exports = { | |
| "env": { | |
| "es6": true | |
| }, | |
| "ecmaFeatures": { | |
| // env=es6 doesn't include modules, which we are using | |
| "modules": true |
| // Add our dependencies | |
| var gulp = require('gulp'), // Main Gulp module | |
| concat = require('gulp-concat'), // Gulp File concatenation plugin | |
| open = require('gulp-open'), // Gulp browser opening plugin | |
| connect = require('gulp-connect'); // Gulp Web server runner plugin | |
| // Configuration | |
| var configuration = { | |
| paths: { |
| # Tell ls to be colourful | |
| export CLICOLOR=1 | |
| # Tell grep to highlight matches | |
| export GREP_OPTIONS='--color=auto' | |
| # Solarized colors | |
| if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then TERM=gnome-256color; fi | |
| if tput setaf 1 &> /dev/null; then | |
| tput sgr0 |
| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| /* CSS */ | |