Skip to content

Instantly share code, notes, and snippets.

View jareha's full-sized avatar

Jonathan Horak jareha

  • Publicis Sapient
  • Chicago, IL
  • X @jareha
View GitHub Profile
@isaacs
isaacs / node-and-npm-in-30-seconds.sh
Last active July 21, 2024 01:20
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh
@patrickfox
patrickfox / $.access()
Last active August 29, 2015 14:02
Accessibility Tools: Focus on anything with access()
/*
$(selector).access(focus_only)
@param(bool): focus_only - true, false(default)
Problem:
Manually managing focus is cumbersome and pollutes the DOM with @tabindex.
Solution:
@patrickfox
patrickfox / Announce.js
Last active February 2, 2024 17:57
Accessibility Tools: Speak text using announce()
/*
$.announce(message, method)
@param(string): message - string of text to be spoken
@param(string): method - polite(default), assertive
Problem:
Using multiple @aria-live throughout your app adds complexity and makes it more difficult to control what is spoken when.