As configured in my dotfiles.
start new:
tmux
start new with session name:
| obj | |
| Temp | |
| *.tmproj | |
| *.csproj | |
| *.unityproj | |
| *.sln | |
| *.suo | |
| *.user | |
| *.pidb | |
| *.userprefs |
| // Add percentage of white to a color | |
| @function tint($color, $percent) { | |
| @return mix(white, $color, $percent); | |
| } | |
| // Add percentage of black to a color | |
| @function shade($color, $percent) { | |
| @return mix(black, $color, $percent); | |
| } |
| " Vim color file | |
| " Name: baardbaard-256 | |
| " Author: Baardbaard | |
| set background=dark | |
| set t_Co=256 | |
| let g:colors_name="baardbaard-256" | |
| let python_highlight_all = 1 | |
| let c_gnu = 1 |
| */20 * * * * /usr/local/bin/php -q -d safe_mode=Off /home/baardbaard/webapps/infinitewp/cron.php >/dev/null 2>&1 |
| <?php | |
| require('config.php'); | |
| $db = new mysqli(MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE); | |
| $db->set_charset('utf8'); | |
| $result = $db->query('SELECT *, DATE(redirect.date) AS shortdate FROM redirect ORDER BY redirect.date DESC'); | |
| // If we have no results | |
| if ($result && $result->num_rows < 0) die('No results'); |
| # Smart movements | |
| * and # search for the word under the cursor forward/backward. | |
| w to the next word | |
| W to the next space-separated word | |
| b / e to the begin/end of the current word. (B / E for space separated only) | |
| gg / G jump to the begin/end of the file. | |
| % jump to the matching { .. } or ( .. ), etc.. | |
| { / } jump to next paragraph. | |
| '. jump back to last edited line. | |
| g; jump back to last edited position. |
| module.exports = function(grunt) { | |
| // Project configuration. | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), | |
| banner: | |
| '/*! <%= pkg.name %>.js v<%= pkg.version %>\n' + | |
| ' * http://<%= pkg.name %>.com/\n' + | |
| ' *\n' + | |
| ' * <%= pkg.description %>\n' + |
| /* | |
| * TODO: | |
| * Banner | |
| * Grunt icon | |
| */ | |
| var gulp = require('gulp'), | |
| rename = require('gulp-rename'), | |
| clean = require('gulp-clean'), | |
| sass = require('gulp-ruby-sass'), |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| var gulp = require("gulp"); | |
| var gulpLoadPlugins = require("gulp-load-plugins"); | |
| var plugins = gulpLoadPlugins(); | |
| var browserSync = require("browser-sync"); | |
| // Set paths for tasks | |
| var paths = { | |
| scss: ['_/scss/*.scss', '_/scss/**/*.scss'], | |
| js: ['_/js-src/*.js'], | |
| svg: ['_/img-src/icons/*'], |