This file contains hidden or 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
[self setRefreshTimer: [[CPTimer alloc] initWithFireDate: [CPDate dateWithTimeIntervalSinceNow:5] | |
interval:1 | |
target: self | |
selector: @selector(refreshData:) | |
userInfo: nil | |
repeats: NO]]; |
This file contains hidden or 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
[siteLoadingTitleSpinner bind:@"hidden" toObject:self withKeyPath:@"site.isLoading" options: | |
[CPDictionary dictionaryWithObject:[CPValueTransformer valueTransformerForName:CPNegateBooleanTransformerName] | |
forKey:@"CPValueTransformerBindingOption"]]; |
This file contains hidden or 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
(in /Users/joe/Dropbox/Work/Cappuccino/AppKit/Themes/Aristo) | |
Building Aristo theme | |
Recording themed properties for CPButton. | |
Recording themed properties for CPButton. | |
Recording themed properties for CPButton. | |
Recording themed properties for CPPopUpButton. | |
Recording themed properties for CPPopUpButton. | |
Recording themed properties for CPScrollView. | |
Recording themed properties for CPScroller. | |
Recording themed properties for CPScroller. |
This file contains hidden or 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 _gaq = nil; | |
var sharedGoogleAnalyticsAccount = nil; | |
@implementation GoogleAnalytics : CPObject | |
{ | |
CPString account @accessors; | |
int sentEvents; | |
} | |
- (id)init |
This file contains hidden or 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
@implementation WPRRoundedRectangleDrawer : CPObject | |
{ | |
CPArray backgroundColors @accessors; | |
CPArray corners @accessors; | |
int innerMargin @accessors; | |
id shadowSize @accessors; | |
int shadowBlur @accessors; | |
} | |
- (id)init |
This file contains hidden or 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
for (var i = 0; i < [data count]; i++) | |
{ | |
var someNeedRefreshing = NO; | |
if( !data[i].is_refreshing ) | |
{ | |
console.log(i); // returns 4 (on 4th time) | |
var aSite = [self getSiteForSiteID:data[i].ID]; | |
console.log( "updating site: " + data[i].nicename ); | |
console.log(i); //returns 3 |
This file contains hidden or 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
Framework (affects all themes) | |
Features | |
======== | |
- Yelp Bar & Foursquare Widgets Added | |
- Accepted Payments Widget Added | |
- Opening Times Widget Added | |
- Google Maps Widget Added | |
- Single Event Pages Added |
This file contains hidden or 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
<?php | |
/** | |
* This is a take on making the Post object in WordPress a little more object-y. As well as wrapping | |
* some basic function like get_the_title(), it aims to treat references such as "post_parent" | |
* as full objects rather than IDs, making it possible to do $post->get_parent()->get_content(). | |
* | |
* No caching has been added, but this would be trivial. Half written in pseudo-code and untested | |
* | |
*/ |
This file contains hidden or 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
<?php | |
/* | |
* Author: Joe Hoyle | |
* URL: joehoyle.co.uk | |
* Contact: [email protected] | |
*/ | |
// Add the command to the wp-cli, only if the plugin is loaded | |
if ( function_exists( 'wp_unit_add_pages' ) ) { |
This file contains hidden or 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
backend default { | |
.host = "127.0.0.1"; | |
.port = "8080"; | |
} | |
sub vcl_recv { | |
# set standard proxied ip header for getting original remote address | |
set req.http.X-Forwarded-For = client.ip; | |
if (req.request == "PURGE") { |