Use these rapid keyboard shortcuts to control the GitHub Atom text editor on macOS.
- ⌘ : Command key
- ⌃ : Control key
- ⌫ : Delete key
- ← : Left arrow key
- → : Right arrow key
- ↑ : Up arrow key
| const md5File = require('md5-file'); | |
| const path = require('path'); | |
| // CSS styles will be imported on load and that complicates matters... ignore those bad boys! | |
| const ignoreStyles = require('ignore-styles'); | |
| const register = ignoreStyles.default; | |
| // We also want to ignore all image requests | |
| // When running locally these will load from a standard import | |
| // When running on the server, we want to load via their hashed version in the build folder |
| const webpack = require('webpack') | |
| const { environment } = require('@rails/webpacker') | |
| // Don't use commons chunk for server_side_render chunk | |
| const entries = environment.toWebpackConfig().entry | |
| const commonsChunkEligible = Object.keys(entries).filter(name => name !== 'server_side_render') | |
| environment.plugins.set('CommonsChunkVendor', new webpack.optimize.CommonsChunkPlugin({ | |
| name: 'vendor', | |
| minChunks: (module, count) => { |
Use these rapid keyboard shortcuts to control the GitHub Atom text editor on macOS.
| // Demo: http://jsfiddle.net/xuyp8qb5/ | |
| // Note: You need Google Map API Key to run demo; bit.ly/2pBgToW | |
| var latlng; | |
| latlng = new google.maps.LatLng(40.730885, -73.997383); // New York, US | |
| //latlng = new google.maps.LatLng(37.990849233935194, 23.738339349999933); // Athens, GR | |
| //latlng = new google.maps.LatLng(48.8567, 2.3508); // Paris, FR | |
| //latlng = new google.maps.LatLng(47.98247572667902, -102.49018710000001); // New Town, US | |
| //latlng = new google.maps.LatLng(35.44448406385493, 50.99001635390618); // Parand, Tehran, IR | |
| //latlng = new google.maps.LatLng(34.66431108560504, 50.89113940078118); // Saveh, Markazi, IR |
| # WAIT! Do consider that `wait` may not be needed. This article describes | |
| # that reasoning. Please read it and make informed decisions. | |
| # https://www.varvet.com/blog/why-wait_until-was-removed-from-capybara/ | |
| # Have you ever had to sleep() in Capybara-WebKit to wait for AJAX and/or CSS animations? | |
| describe 'Modal' do | |
| should 'display login errors' do | |
| visit root_path |