This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"snippets": { | |
"css": { | |
"abbreviations": { | |
"mq": "@include max-w($1) {\n\t|\n}", | |
"i": "@include ", | |
"m0a": "margin: 0 auto;", | |
} | |
} | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
google.maps.event.addDomListener(window, 'resize', function() { | |
var center = map.getCenter() | |
google.maps.event.trigger(map, "resize") | |
map.setCenter(center) | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm uninstall --save name-of-package | |
or | |
npm prune |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// WIDTH OF SCROLLBAR | |
var widthOfScrollbar; | |
function getScrollBarWidth () { | |
var $outer = $('<div>').css({visibility: 'hidden', width: 100, overflow: 'scroll'}).appendTo('body'), | |
widthWithScroll = $('<div>').css({width: '100%'}).appendTo($outer).outerWidth(); | |
$outer.remove(); | |
widthOfScrollbar = 100 - widthWithScroll; | |
return 100 - widthWithScroll; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// hover exclude | |
$(document).on( "mousemove", function(event) { | |
if (!$(event.target).closest('.target-block').length) { | |
console.log('test'); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autocomplete="off" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// RENAME AUTOR OF COMMITS | |
git filter-branch -f --env-filter " | |
GIT_AUTHOR_NAME='Your New Name' | |
GIT_AUTHOR_EMAIL='your-new-emailgmail.com' | |
GIT_COMMITTER_NAME='Your New Name' | |
GIT_COMMITTER_EMAIL='your-new-emailgmail.com' | |
" HEAD | |
// PUSH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gulp.task('pug', function() { | |
return gulp.src([ | |
'dev/pug/**/*.pug', | |
'!dev/pug/templates/**/*.pug' | |
]) | |
.pipe(pug({ | |
basedir: 'dev/pug', | |
pretty: true | |
})) |