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
defaults write com.apple.screencapture location ~/Desktop/Screenshots && killall SystemUIServer |
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
var cacheVersion = 'v1'; | |
// Store core files in a cache (including a page to display when offline) | |
function updateStaticCache() { | |
return caches.open(cacheVersion) | |
.then(function (cache) { | |
return cache.addAll([ | |
'/offline', | |
'https://mycdn.com/style.css', | |
'https://mycdn.com/script.js', |
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
/* | |
* crohrer_responsive_post_thumbnail | |
* | |
* @author: Christoph Rohrer | |
* | |
*/ | |
function crohrer_responsive_post_thumbnail( $post_id, $sizesAttribute = '100vw', $thumbnailSizes = array(), $alt = '', $class = '' ) | |
{ | |
$postThumbnailId = get_post_thumbnail_id( $post_id ); | |
if(empty($thumbnailSizes)){ |
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
/* inspired by https://codestag.com/fix-google-chrome-web-fonts-issue/ */ | |
* { | |
-webkit-animation-duration: 0.1s; | |
-webkit-animation-name: fontfix; | |
-webkit-animation-iteration-count: 30; | |
-webkit-animation-timing-function: linear; | |
-webkit-animation-delay: 0.1s; | |
} |
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
#!/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 | |
# |