Or: “Everybody likes being given a glass of water.”
By Merlin Mann.
It's only advice for you because it had to be advice for me.
- login to 'AWS Management Console' (https://aws.amazon.com/console/)
- from 'Services'(in navbar) choose 'EC2'
- from 'Create Instance' section, click on 'Launch Instance'
- then select 'AMI' (Amazon Machine Image), we will be using 'Ubuntu Server 16.04 LTS (HVM)' as example
- select 'Instance Type' as per your requirement
- then click 'Next:Configure Instance Details' to continue
change 'Configure Instance Details' or used as default settings
You are writing a spec with type: :request
, i.e. an integration spec instead
of a controller spec. Integration specs are wrappers around Rails'
ActionDispatch::IntegrationTest
class. I usually write controller tests using
this instead of type: :controller
, mainly because it exercises more of the
request and response handling stack. So instead of writing something like
get :index
to start the request, you would write get books_path
or similar.
One of the issues with using type: :request
is that you lose the ability to
// JS code | |
function toEnglishNumber(strNum) { | |
var ar = '٠١٢٣٤٥٦٧٨٩'.split(''); | |
var en = '0123456789'.split(''); | |
strNum = strNum.replace(/[٠١٢٣٤٥٦٧٨٩]/g, x => en[ar.indexOf(x)]); | |
strNum = strNum.replace(/[^\d]/g, ''); | |
return strNum; | |
} | |
$(document).on('keyup', '.arabicNumbers', function(e) { |
a11yTOConf 2018 — Notes and Links
The following are my notes and links for my #a11yTOConf 2018 live-coding demo on "Creating accessible React apps". 🙂
I recently had to upgrade my blog, which involved changes such as:
The upgrading process was not trivial, and some parts (e.g. RSS, sitemap, or twitter cards tags) are not immediately visible, so I decided to add unit tests on the generated content.
# csv_to_prolog.py | |
# | |
# Takes a CSV from stdin in the following format: | |
# <Any>, Time1, Time2, Time3, Time4... | |
# counts, 2, 3, 4, 5... (number of spots for each time) | |
# Person1, Yes, Maybe, Yes, No... (Yes, Maybe, or No for availability) | |
# Person2, Yes, Maybe, Yes, No... | |
# | |
# and outputs Prolog to do assignments. | |
# |
# | |
# ATEM Legato Stream Deck controler | |
# | |
# By Ian Morrish | |
# https://ianmorrish.wordpress.com | |
# | |
# Disable display and sleep mode timeouts | |
function DisableSleepTimeout { | |
Write-Host "Disabling display and sleep mode timeouts..." |
Here's a run-down of steps I've used to capture and report accessibility bugs in software.
If you're using MacOS, I recommend setting up VMWare Fusion, even if you have separate Windows hardware. It's much easier to switch between environments for quick screen reader debugging with a local VM.
tap "caskroom/cask" | |
cask "google-chrome" | |
cask "firefox" | |
brew "chromedriver" | |
brew "geckodriver" |