Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
| // Include gulp | |
| var gulp = require('gulp'); | |
| // Include Our Plugins | |
| var jshint = require('gulp-jshint'); | |
| var sass = require('gulp-sass'); | |
| var concat = require('gulp-concat'); | |
| var uglify = require('gulp-uglify'); | |
| var rename = require('gulp-rename'); |
| <!DOCTYPE html> | |
| <html dir="ltr" lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <!--[if IE]> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <![endif]--> | |
| // Include gulp | |
| var gulp = require('gulp'); | |
| // Include Our Plugins | |
| var jshint = require('gulp-jshint'); | |
| var sass = require('gulp-sass'); | |
| var concat = require('gulp-concat'); | |
| var uglify = require('gulp-uglify'); | |
| var rename = require('gulp-rename'); |
| http://travismaynard.com/writing/getting-started-with-gulp | |
| If node and npm is installed: | |
| npm init | Create package json file for project with dependecies | |
| npm install --save-dev gulp | Install gulp in project with gulp dependencies save to package.json file | |
| npm install gulp-less --save-dev | Install less module and save to json file | |
| or | |
| npm install gulp-sass --save-dev | Install sass module and save to json file | |
| or all in one line | |
| npm install gulp-jshint gulp-sass gulp-concat gulp-uglify gulp-rename --save-dev |
| http://travismaynard.com/writing/getting-started-with-gulp | |
| If node and npm is installed: | |
| npm init | Create package json file for project Commands | |
| bower init | Initialize Bower json file to make install dependcies for project easier for others | |
| bower install #packageName | Install package | |
| bower install jquery#versionNUmber | Install jQuery with a specific version | |
| bower uninstall #packageName | Uninstall package | |
| bower list --paths | List paths to use in project for installed packages | |
| bowwer list | List installed package |
| https://interconnectit.com/products/search-and-replace-for-wordpress-databases/ | |
| Search and Replace WordPress script | |
| - Copy the "Search-Replace-DB-master" folder to WordPress root | |
| - Go to domainname.com/Search-Replace-DB-master/index.php | |
| - Replace "domainname.com" with "localhost/stagedomain" | |
| - Click "dry run" check the results, then "live run" | |
| - Login at wp-admin and update permalinks settings. Refresh the page and everything should work. | |
| - Remove the "Search-Replace-DB-master" folder |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
| <?php | |
| public function routeClass($separator = ' - ') | |
| { | |
| $routeArray = Str::parseCallback(Route::currentRouteAction(), null); | |
| if (last($routeArray) != null) { | |
| // Remove 'controller' from the controller name. | |
| $controller = str_replace('Controller', '', class_basename(head($routeArray))); |