Make an alias to sublime bin subl
.
Edit file
~/.bash_profile
add
alias sublime="'/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl'"
restart bash if needed
//this directive uses jquery... | |
angular.module('client').directive('readMore', function() { | |
return { | |
restrict: 'A', | |
transclude: true, | |
replace: true, | |
template: '<p></p>', | |
scope: { | |
moreText: '@', | |
lessText: '@', |
'use strict'; | |
//http://jsfiddle.net/maztch/efccbja5/7/ | |
angular.module('app') | |
.directive('full', function($window) { | |
return({ | |
restrict: 'A', | |
link: function ( $scope, element, attributes ) { |
SELECT CONCAT( 'DROP TABLE ', GROUP_CONCAT(table_name) , ';' ) | |
AS statement FROM information_schema.tables | |
WHERE table_name LIKE 'prefix_%'; |
Options +FollowSymLinks | |
<ifModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_URI} !index | |
RewriteRule (.*) index.html [L] | |
</ifModule> |
//just some emmet lines to test it | |
//ul sample | |
ul>li{Item $}*4 | |
//page header sample | |
#page>div.logo+ul#navigation>li*5>a{Item $} | |
//navbar sample | |
.navbar>ul>li*4>a[href=#]{link $} |
#!/bin/bash | |
# Delete all containers | |
docker rm $(docker ps -a -q) | |
# Delete all images | |
docker rmi $(docker images -q) |
$ for f in *\ *; do mv "$f" "${f// /_}"; done |
Make an alias to sublime bin subl
.
Edit file
~/.bash_profile
add
alias sublime="'/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl'"
restart bash if needed
# Git branch in prompt. | |
# from http://mfitzp.io/article/add-git-branch-name-to-terminal-prompt-mac/ | |
# add to ~/.bash_profile | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ " |
// ## Globals | |
var argv = require('minimist')(process.argv.slice(2)); | |
var autoprefixer = require('gulp-autoprefixer'); | |
var browserSync = require('browser-sync').create(); | |
var changed = require('gulp-changed'); | |
var concat = require('gulp-concat'); | |
var flatten = require('gulp-flatten'); | |
var gulp = require('gulp'); | |
var gulpif = require('gulp-if'); | |
var imagemin = require('gulp-imagemin'); |