- 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 | |
# from | |
# http://bergamini.org/computers/creating-favicon.ico-icon-files-with-imagemagick-convert.html | |
convert source-WxW.png -resize 256x256 -transparent white favicon-256.png | |
convert favicon-256.png -resize 16x16 favicon-16.png | |
convert favicon-256.png -resize 32x32 favicon-32.png | |
convert favicon-256.png -resize 64x64 favicon-64.png | |
convert favicon-256.png -resize 128x128 favicon-128.png |
#!/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>/ |