- $
mkdir ~/Dropbox/sublime-text-3
- $
cd ~/Library/Application\ Support/Sublime\ Text\ 3
- $
mv Packages/ ~/Dropbox/sublime-text-3
- $
mv Installed\ Packages/ ~/Dropbox/sublime-text-3
alias work='cd ~/work-in-progress/' | |
alias home='cd ~' | |
## get rid of command not found ## | |
alias cd..='cd ..' | |
## a quick way to get out of current directory ## | |
alias ..='cd ..' | |
alias editprofile= 'subl ~/.bash_profile && subl ~/.profile' |
mkdir ~/Dropbox/sublime-text-3
cd ~/Library/Application\ Support/Sublime\ Text\ 3
mv Packages/ ~/Dropbox/sublime-text-3
mv Installed\ Packages/ ~/Dropbox/sublime-text-3
[ | |
{ "keys": ["ctrl+shift+r"], "command": "reindent" , "args": { "single_line": false } } | |
] |
[ | |
{ | |
"metadata": { | |
"id": "d34ed0fc-97a2-40d5-bd7d-f97b3658c92f", | |
"publisherId": "4434843a-4ebf-4f44-84f5-4176380c492d", | |
"publisherDisplayName": "johnpapa" | |
}, | |
"name": "Angular1", | |
"publisher": "johnpapa", | |
"version": "0.1.16" |
function eqHeight(className) { | |
var elements = $(className); | |
// loop through each element with said className | |
elements.each(function(i){ | |
var targetHeight = 0; | |
$el = $(this); | |
// loop through immediate children | |
$el.children().each(function(i){ | |
$child = $(this); | |
console.log($child); |
<?php | |
$json = '[ | |
{ | |
"categories": "10,11", | |
"title": "Promos", | |
"columns": "col-md-3" | |
}, | |
{ | |
"categories": "10,12", |
// source: http://mardell.me/blog/how-to-use-a-single-wordpress-config-for-local-and-remote-environments/ | |
///// | |
if ($_SERVER['SERVER_NAME'] === "blog.dev") { | |
// test site | |
define( 'WP_SITEURL', 'http://blog.dev' ); | |
define( 'WP_HOME', 'http://blog.dev' ); | |
} else { | |
// live site | |
}; |
<style> | |
// scroll to top | |
#back-to-top{ | |
position: fixed; | |
bottom: -66px; | |
right: 20px; | |
color: white; | |
z-index: 3; | |
width: 40px; | |
height: 40px; |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Bootstrap 3 Template</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<!-- styles --> | |
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> | |
<style> body {padding-top: 40px; } </style> |