- $
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
// Future versions of Hyper may add additional config options,, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 18, | |
// font family with optional fallbacks |
// onScroll animation | |
$(function() { | |
var $window = $(window), | |
isTouch = Modernizr.touch; | |
if (isTouch) { $('.add-animation').addClass('animated'); } | |
$window.on('scroll', revealAnimation); |
// test page: https://www.toysrus.com/search?q=dyl01sep17%20creator | |
// just copy this code in the console on a page | |
// that has all items with a price drop | |
var items = document.getElementsByClassName('product-item') | |
//var prices = items.getElementsByClassName('product-price') | |
var collection = [] | |
for (var i=0; i<items.length; i++) { | |
// get link of item | |
var productLink = items[i].href | |
var productName = items[i].getElementsByClassName('product-item__product-title')[0].textContent |
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 } } | |
] |
<!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> |
[ | |
{ | |
"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); |
// 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 | |
}; |