Some content text with [snippet_shorctode]
Save snippet content to a variable
| sudo chown -R `whoami` ~/.atom |
| 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)); | |
| }; |
| $('html, body').animate({ scrollTop: $('SELECTOR').offset().top - INTEGER_OFFSET_IN_PX}, INTEGER_TIME_IN_MS); |
| .disable-hover, | |
| .disable-hover * { | |
| pointer-events: none !important; | |
| } |
| #!/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 | |
| # |