- Check for an existing
.gitignorefile in the project directory
ls -a| <!--- | |
| This is a advanced javascript checkout built with Commerce.js (http://commercejs.com). | |
| Tutorial: Checkout Tutorial (Advanced) - http://commerce.js.com/docs/overview/checkout-tutorial-advanced/ | |
| !--> | |
| <html> | |
| <head> | |
| <title>Checkout Tutorial (Advanced)</title> | |
| <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script> | |
| <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.serializeJSON/2.7.2/jquery.serializejson.js"></script> | |
| <script type="text/javascript" src="https://cdn.chec.io/v1/commerce.js"></script> |
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:
| # Michael Bianco <mike@suitesync.io> | |
| # Description: Find Stripe transfer (payout) associated with charge (payment) | |
| require 'stripe' | |
| Stripe.api_key = 'sk_test' | |
| # NOTE `auto_paging_each` requires a recent stripe ruby gem version | |
| def stripe_transfer_containing_charge(stripe_charge, limit: 100) |
having a web server turned on doesn't necessarily mean you are serving pages on the world wide web. its what allows you to load your own static files (.html, .js etc.) in a browser via http://.
if you're not sure whether or not you have a web server running, no problem! its easy to confirm.
| /* | |
| Convert svg files to virtual-dom's VTree | |
| To use the resulting tree | |
| import svg from 'virtual-dom/virtual-hyperscript/svg' | |
| if you use Cycle.js: | |
| import {svg} from '@cycle/dom'; | |
| */ | |
| import fs from 'fs'; |
##Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:alexpchin/.git
| //http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript | |
| Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15); |