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.dock ResetLaunchPad -bool true; killall Dock |
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
User-agent: * | |
Disallow: / |
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
define('WP_SITEURL', 'http://example.com'); | |
define('WP_HOME', 'http://example.com'); |
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
wget -r -l 1 -nd -T 1200 --delete-after <URL> |
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
FOOBAR=$(mysql -u [user] [database] -p[password] --skip-column-names -se "SELECT foo FROM bar;") |
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
$sleep = 1; | |
$attempts = 3; | |
for ($attempt = 0; $attempt < $attempts; $attempt++) | |
{ | |
try | |
{ | |
// ... | |
} | |
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
init() { | |
// Set self properties | |
// Call super.init() | |
// Set super properties | |
} |
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
@interface FOOGradientLayer : NSObject | |
+ (CAGradientLayer *)gradientLayer; | |
@end | |
@implementation FOOGradientLayer | |
+ (CAGradientLayer *)gradientLayer { | |
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
CATransition *transition = [CATransition animation]; | |
transition.duration = 0.35; | |
transition.type = kCATransitionPush; | |
transition.subtype = kCATransitionFromTop; | |
[self.view.window.layer addAnimation:transition forKey:kCATransition]; |
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
/* Phones, less than 768px */ | |
.default {} | |
/* Tablets, 768px and up */ | |
@media (min-width: 768px) {} | |
/* Desktops, 992px and up */ | |
@media (min-width: 992px) {} | |
/* Large desktops, 1200px and up */ |