- RegEx 101 - Handles PCRE (PHP), JavaScript, and Python
- RegExr - Lets you test replacing using capture groups. Cannot handle lookbehinds b/c JavaScript only
- regex one - Has lessons
Metachar | Meaning |
---|---|
\n | newline |
{ | |
"bold_folder_labels": true, | |
"caret_extra_bottom": 2, | |
"caret_extra_top": 2, | |
"caret_extra_width": 2, | |
"color_scheme": "Packages/Theme - Flatland/Flatland Monokai.tmTheme", | |
"default_line_ending": "unix", | |
"flatland_sidebar_tree_medium": true, | |
"font_size": 16, | |
"highlight_line": true, |
{ | |
// "color_scheme": "Packages/MarkdownEditing/MarkdownEditor.tmTheme", | |
"color_scheme": "Packages/MarkdownEditing/MarkdownEditor-Dark.tmTheme", | |
// "color_scheme": "Packages/MarkdownEditing/MarkdownEditor-Yellow.tmTheme", | |
// Layout | |
"draw_centered": false, | |
"wrap_width": 70, | |
// Line |
[ | |
{ "keys": ["super+shift+v"], "command": "paste" }, | |
{ "keys": ["super+v"], "command": "paste_and_indent" }, | |
{ "keys": ["ctrl+shift+backquote"], "command": "show_panel", "args": {"panel": "console", "toggle": true} }, | |
{ "keys": ["alt+super+p"], "command": "autoprefixer" }, | |
{ "keys": ["super+alt+shift+w"], "command": "close_all" }, | |
{ "keys": ["super+shift+alt+f"], "command": "show_panel", "args": {"panel": "replace", "reverse": false} }, | |
// origami (multiple panes) | |
{ "keys": ["super+k", "super+up"], "command": "create_pane", "args": {"direction": "up", "give_focus": true} }, |
#!/bin/bash | |
echo "--- Installing applications and setting them up ---" | |
echo "--- Updating packages list ---" | |
sudo apt-get update > /dev/null 2>&1 | |
echo "--- MySQL options ---" | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root' | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root' |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
watch: { | |
options: { livereload: true }, | |
all: { files: ['./**/*.*'] } | |
} | |
}); |
{ | |
"always_show_minimap_viewport": true, | |
"bold_folder_labels": true, | |
"caret_extra_bottom": 2, | |
"caret_extra_top": 2, | |
"caret_extra_width": 2, | |
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme", | |
"default_line_ending": "unix", | |
"flatland_sidebar_tree_medium": true, | |
"font_face": "inconsolata", |
[ | |
{ "keys": ["ctrl+shift+v"], "command": "paste" }, | |
{ "keys": ["ctrl+v"], "command": "paste_and_indent" }, | |
{ "keys": ["alt+ctrl+p"], "command": "autoprefixer" }, | |
{ "keys": ["ctrl+alt+shift+w"], "command": "close_all" }, | |
{ "keys": ["ctrl+shift+alt+f"], "command": "show_panel", "args": {"panel": "replace", "reverse": false} }, | |
{ "keys": ["ctrl+alt+up"], "command": "swap_line_up" }, | |
{ "keys": ["ctrl+alt+down"], "command": "swap_line_down" }, | |
// origami (multiple panes) |
Shortcut | Description |
---|---|
Ctrl-B | More cursor one char left, good for multi-line commands |
Ctrl-C | Cancels the command and returns to the command prompt (EXEC mode) |
Ctrl-D | Deletes the character at the cursor |
Ctrl-F | Moves the cursor one character to the right |
Ctrl-G | Exits to the previous command mode without removing the command string |
Ctrl-K | Deletes all characters from the cursor to the end of the command line |
Ctrl-L | Redisplays the current command line |
Ctrl-N | Displays the next command in the command history |