- Sublime Package Control for managing packages (like the ones below)
- Github theme for colors
- Soda theme for better chrome
- Sublime ERB keyboard shortcuts for ERB tags
My user settings:
{| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |
| #Model | |
| @user.should have(1).error_on(:username) # Checks whether there is an error in username | |
| @user.errors[:username].should include("can't be blank") # check for the error message | |
| #Rendering | |
| response.should render_template(:index) | |
| #Redirecting | |
| response.should redirect_to(movies_path) |
| 2139 ℹ INFORMATION SOURCE | |
| 23EB ⏫ BLACK UP-POINTING DOUBLE TRIANGLE | |
| 23EC ⏬ BLACK DOWN-POINTING DOUBLE TRIANGLE | |
| 23F0 ⏰ ALARM CLOCK | |
| 23F3 ⏳ HOURGLASS WITH FLOWING SAND | |
| 26C5 ⛅ SUN BEHIND CLOUD | |
| 26D4 ⛔ NO ENTRY | |
| 2705 ✅ WHITE HEAVY CHECK MARK | |
| 2753 ❓ BLACK QUESTION MARK ORNAMENT | |
| 2757 ❗ HEAVY EXCLAMATION MARK SYMBOL |
My user settings:
{| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
| #=Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| #=Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click_on('Button Value') |
| def get_job_message | |
| $job_message ? "\n " + $job_message : '' | |
| end | |
| def create_matcher_for(match_symbol, expected_str = nil, not_expected_str = nil, &block) | |
| RSpec::Matchers.define match_symbol do |expected| | |
| match do |actual| | |
| case match_symbol | |
| when :be_true | |
| !!actual |
| // How to use: | |
| // 1. Open "Script Editor" (requires OS X 10.10 Yosemite) | |
| // 2. Change the language from "AppleScript" to "JavaScript" | |
| // 3. Paste the code below and replace the safari example. | |
| // | |
| // More info: | |
| // https://developer.apple.com/library/mac/releasenotes/InterapplicationCommunication/RN-JavaScriptForAutomation/index.html | |
| var sys_events = Application("System Events"); |
Revised: 2019-11-28 16:16 GMT-6
This is a list of the key resources I have found useful. If you know of others, please post in a comment below, and I will add to this list.
I have tried to order this list in the order that, to me, is best for learning JXA from scratch. We all learn a bit diferently, so adjust to suit your style/needs. Please post if you have suggestions on learning JXA.
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: