Skip to content

Instantly share code, notes, and snippets.

View Chudesnov's full-sized avatar

Sasha Chudesnov Chudesnov

View GitHub Profile
@marcysutton
marcysutton / chrome-a11y-experiment-instructions.md
Last active February 10, 2025 06:23
Enable Chrome Accessibility Experiment

NOTE: This is no longer an experiment! You can use the accessibility inspector in Chrome Devtools now, including a fantastic color contrast inspection tool. Read more: https://developers.google.com/web/updates/2018/01/devtools#a11y


Just like any good element inspector helps you debug styles, accessibility inspection in the browser can help you debug HTML and ARIA exposed for assistive technologies such as screen readers. There's a similar tool in Safari (and reportedly one in Edge) but I like the Chrome one best.

As an internal Chrome experiment, this tool differs from the Accessibility Developer Tools extension in that it has privileged Accessibility API access and reports more information as a result. You can still use the audit feature in the Chrome Accessibility Developer Tools, or you could use the aXe Chrome extension. :)

To enable the accessibility inspector in Chrome stable:

@davidhund
davidhund / visually-hidden.css
Last active August 30, 2024 17:03
Hide visually, show for AT
/**
* = Visually Hide text
*
* Text remains accessible to AT such as Screen Readers
* Updated version:
* Taken from http://hugogiraudel.com/2016/10/13/css-hide-and-seek/
*
* ------------------------------------------------------------------------- */
.visually-hidden {
border: 0 !important;
@dfrencham
dfrencham / nifty-list-item-view.html
Created July 17, 2015 03:52
Knockout 3.3 Nested Components
<div style="border:1px solid blue; margin: 5px; padding: 5px;">
<label data-bind="text: labelText"></label>
<input type="text" />
</div>
@mistakster
mistakster / webpack.config.js
Created July 9, 2015 16:23
Webpack configuration file
/**
* Build for production:
* $ NODE_ENV=production webpack
*
* Build for staging or development mode
* $ webpack
*
* Run app server in dev mode and use Hot Module Replacement
* $ NODE_ENV=webpack nodemon --watch ./app index.js
*
@nolandc
nolandc / gsb.sh
Last active June 7, 2017 09:35
Git select-branch
list=$(git branch --list | grep -v \*)
declare -a branches=($list)
echo "Branches: "
for i in "${!branches[@]}"; do
printf "%s\t%s\n" "[$i]" "${branches[$i]}";
done
printf "Enter the number of the branch you'd like to switch to: "
@jpawlowski
jpawlowski / brew-sync.sh
Last active January 6, 2026 22:36
Sync Homebrew installations between Macs via Dropbox
#!/bin/bash
# Sync Homebrew installations between Macs via Dropbox
#
BREW="/usr/local/bin/brew"
# first get local settings
echo "Reading local settings ..."
rm -f /tmp/brew-sync.*