- $
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
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); |
[ | |
{ | |
"metadata": { | |
"id": "d34ed0fc-97a2-40d5-bd7d-f97b3658c92f", | |
"publisherId": "4434843a-4ebf-4f44-84f5-4176380c492d", | |
"publisherDisplayName": "johnpapa" | |
}, | |
"name": "Angular1", | |
"publisher": "johnpapa", | |
"version": "0.1.16" |
<!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> |
[ | |
{ "keys": ["ctrl+shift+r"], "command": "reindent" , "args": { "single_line": false } } | |
] |
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' |
// 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 |
// onScroll animation | |
$(function() { | |
var $window = $(window), | |
isTouch = Modernizr.touch; | |
if (isTouch) { $('.add-animation').addClass('animated'); } | |
$window.on('scroll', revealAnimation); |
// 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 |
// #1 using the spread operator get all our images with the class 'lazyload' | |
const imgElements = [...document.querySelectorAll('.adg-lazy-image')] | |
// IE browser support :( | |
var isIE; | |
(function() { | |
var ua = window.navigator.userAgent, | |
msie = ua.indexOf('MSIE '), | |
trident = ua.indexOf('Trident/') |