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
######################### | |
# .gitignore file for Xcode4 / OS X Source projects | |
# | |
# Version 2.0 | |
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
# | |
# 2013 updates: | |
# - fixed the broken "save personal Schemes" | |
# | |
# NB: if you are storing "built" products, this WILL NOT WORK, |
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 $post_cat | |
$post_cat = $_POST['post_format']; | |
// and turn it into the category ID | |
$post_cat = get_category_by_slug( $post_cat ); | |
$post_id = wp_insert_post( array( | |
'post_author' => $user_id, | |
'post_title' => $post_title, | |
'post_content' => $post_content, | |
'post_type' => 'post', |
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
<script type="text/javascript"> | |
// adding a back button | |
$(document).bind("mobileinit",function() {$.mobile.page.prototype.options.addBackBtn = true; }); | |
</script> |
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
<!-- after --> | |
<service name="MySql" monitor="true"> | |
<alarm level="red" threshold="50" type="percent"/> | |
<alarm level="yellow" threshold="40" type="percent"/> | |
</service> |
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
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex { | |
[self myMethod]; | |
if (buttonIndex ==0) { | |
NSLog(@"User pressed first button"); | |
} else if (buttonIndex == 1) { | |
NSLog(@"User pressed second button"); | |
} else { | |
NSLog(@"There were even more buttons?"); |
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
echo '<div id="menu"><ul><li><a href="'. get_settings('home') .'/" title="'. get_bloginfo('name') .'" rel="home" rel="nofollow">Home</a></li>'; |
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
#import <UIKit/UIKit.h> | |
@interface WebViewController : UIViewController <UIWebViewDelegate> | |
@property (strong, nonatomic) IBOutlet UIWebView *myWebView; | |
@property (strong, nonatomic) IBOutlet UIActivityIndicatorView *spinningWheel; | |
- (IBAction)dismissModalView:(id)sender; | |
- (IBAction)stopSpinning:(id)sender; |
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
NSURL *detailURL; | |
detailURL=[[NSURL alloc] initWithString:@"http://www.yourwebsite.com"]; | |
[self.myWebView loadRequest:[NSURLRequest requestWithURL:detailURL]]; |
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
# | |
# Example configuration to enable HTTP access for a directory | |
# containing Subversion repositories, "/var/www/svn". Each repository | |
# must be both: | |
# | |
# a) readable and writable by the 'apache' user, and | |
# | |
# b) labelled with the 'httpd_sys_content_t' context if using | |
# SELinux | |
# |