View blog.php
* @package WordPress
* @subpackage Modularity
<div class="span-<?php modularity_sidebar_class(); ?>">
<?php get_sidebar(); ?>
View gist:2950371
if (flickSwitch.isOn ) {
statusLabel.text = @"The Switch is ON";
} else {
statusLabel.text = @"The Switch is OFF";
View gist:2994892
[caption id="attachment_123" align="aligncenter" width="550"]
<img src="...">My Caption[/caption]
View gist:2994898
[caption id="attachment_123" align="aligncenter" width="550" caption="My Caption"]
<img src="...">[/caption]
View ajax.php
// 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',
View subversion.conf
# 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
View webview
NSURL *detailURL;
detailURL=[[NSURL alloc] initWithString:@""];
[self.myWebView loadRequest:[NSURLRequest requestWithURL:detailURL]];
View ViewController.h
#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;
View functions.php
echo '<div id="menu"><ul><li><a href="'. get_settings('home') .'/" title="'. get_bloginfo('name') .'" rel="home" rel="nofollow">Home</a></li>';
View buttons.m
UIImage *normal = [UIImage imageNamed:@"normalButton.png"];
UIImage *highlighted = [UIImage imageNamed:@"pressedButton.png"];
[self.theButton setBackgroundImage:normal forState:UIControlStateNormal];
[self.theButton setBackgroundImage:highlighted forState:UIControlStateHighlighted];