Some content text with [snippet_shorctode]
Save snippet content to a variable
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
.disable-hover, | |
.disable-hover * { | |
pointer-events: none !important; | |
} |
$('html, body').animate({ scrollTop: $('SELECTOR').offset().top - INTEGER_OFFSET_IN_PX}, INTEGER_TIME_IN_MS); |
google.maps.Map.prototype.setCenterWithOffset= function(latlng, offsetX, offsetY) { | |
var map = this; | |
var ov = new google.maps.OverlayView(); | |
ov.onAdd = function() { | |
var proj = this.getProjection(); | |
var aPoint = proj.fromLatLngToContainerPixel(latlng); | |
aPoint.x = aPoint.x+offsetX; | |
aPoint.y = aPoint.y+offsetY; | |
map.setCenter(proj.fromContainerPixelToLatLng(aPoint)); | |
}; |
sudo chown -R `whoami` ~/.atom |