- Make accessibility part of it
- Iterate, iterate, iterate!
- Refer to WCAG and the ARIA Authoring Practices
- Awareness
- Design and UX
| import { LRUCache } from './lru-cache.js'; | |
| const FirebaseQueryAction = { | |
| snapshotReceived: 'FIREBASE_QUERY_SNAPSHOT_RECEIVED', | |
| created: 'FIREBASE_QUERY_CREATED' | |
| }; | |
| const FirebaseQueryActionCreatorCache = (maxRealtimeQueries = 10) => { | |
| const cache = new LRUCache( | |
| maxRealtimeQueries, |
| Add-VpnConnection -Name "VPN Connexeon" -ServerAddress "vpn.connexeon.com" -TunnelType Pptp -EncryptionLevel Required -AuthenticationMethod MSChapv2 -AllUserConnection -RememberCredential -PassThru -UseWinlogonCredential | |
| Set-VpnConnection "VPN Connexeon" -AllUserConnection -SplitTunneling $True | |
| Add-VpnConnectionRoute -ConnectionName "VPN Connexeon" -DestinationPrefix 10.0.0.0/12 -PassThru | |
| Add-VpnConnectionRoute -ConnectionName "VPN Connexeon" -DestinationPrefix 10.111.0.0/16 -PassThru | |
| Add-VpnConnectionRoute -ConnectionName "VPN Connexeon" -DestinationPrefix 10.50.0.0/16 -PassThru |
| -- NOTE: This script is no longer necessary as of mpv 0.30.0! | |
| loaded = false | |
| function search_and_load_lrc() | |
| local lrc_path = ext2lrc(mp.get_property("path")) | |
| local file = io.open(lrc_path, "r") | |
| if file ~= nil then | |
| io.close(file) |
| function arrayToCSV (twoDiArray) { | |
| // Modified from: http://stackoverflow.com/questions/17836273/ | |
| // export-javascript-data-to-csv-file-without-server-interaction | |
| var csvRows = []; | |
| for (var i = 0; i < twoDiArray.length; ++i) { | |
| for (var j = 0; j < twoDiArray[i].length; ++j) { | |
| twoDiArray[i][j] = '\"' + twoDiArray[i][j] + '\"'; // Handle elements that contain commas | |
| } | |
| csvRows.push(twoDiArray[i].join(',')); | |
| } |
| import pickle | |
| import weakref | |
| from contextlib import contextmanager, suppress | |
| from datetime import datetime | |
| from itertools import islice | |
| from logging import getLogger | |
| from pathlib import Path | |
| from libqtile import bar, hook, layout, widget | |
| from libqtile.command import lazy |
| // Get all *text* nodes contained in a selection object. | |
| // Adapted from code by Tim Down. | |
| // http://stackoverflow.com/questions/4398526/how-can-i-find-all-text-nodes-between-to-element-nodes-with-javascript-jquery | |
| function getTextNodesBetween(selection) { | |
| var range = selection.getRangeAt(0), rootNode = range.commonAncestorContainer, | |
| startNode = range.startContainer, endNode = range.endContainer, | |
| startOffset = range.startOffset, endOffset = range.endOffset, | |
| pastStartNode = false, reachedEndNode = false, textNodes = []; | |
| function getTextNodes(node) { | |
| var val = node.nodeValue; |
| #!/bin/bash | |
| # | |
| # Version 1.4 | |
| # | |
| # twrp.sh -- a TWRP compatible backup script for your computer | |
| # Brought to you by inhies | |
| # | |
| # This script creates TWRP compatible backups over usb using adb and magikz | |
| # By default it makes a folder in the standard TWRP date--time format (I think) | |
| # To restore these backups, place the folder in /sdcard/TWRP/BACKUPS/<serialnumber>/ |
| Windows Registry Editor Version 5.00 | |
| ;Reveals the most used hidden power settings in Windows 10. The value Attributes=2 means reveal, where value of 1 or 0 means hide from Power Options. | |
| ;Good Tweaking! | |
| ;WLAN | |
| [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\19cbb8fa-5279-450e-9fac-8a3d5fedd0c1\12bbebe6-58d6-4636-95bb-3217ef867c1a] | |
| "Attributes"=dword:00000002 | |
| ;Power Scheme Personality | |
| [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\245d8541-3943-4422-b025-13a784f679b7] |