Skip to content

Instantly share code, notes, and snippets.

View ianchia's full-sized avatar

Ian Chia ianchia

View GitHub Profile
<?php
/*
Plugin Name: PMPro Customizations
Plugin URI: http://www.paidmembershipspro.com/wp/pmpro-customizations/
Description: Customizations for PMPro
Version: .1
Author: Stranger Studios
Author URI: http://www.strangerstudios.com
*/
/*
#import <Foundation/Foundation.h>
@interface NSString (URLEncoding)
- (NSString*)URLEncodedString;
- (NSString*)URLDecodedString;
@end
@ianchia
ianchia / manifest.plist
Created September 13, 2012 23:07 — forked from palaniraja/manifest.plist
App Manifest file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>assets</key>
<array>
<dict>
@ianchia
ianchia / build-index.html
Created September 13, 2012 23:07 — forked from palaniraja/build-index.html
Download build files
<!DOCTYPE html>
<html>
<head>
<title>My awesome app</title>
</head>
<body>
<h2>beta builds</h2>
<a href="itms-services://?action=download-manifest&amp;url=http://dl.dropbox.com/u/1001/manifest.plist">Awesome App v 0.0.16</a></body>
<h2>alpha builds</h2>
@ianchia
ianchia / gist:2723560
Created May 18, 2012 06:27
UIWebView view hierarchy (showing UIImageViews making up background gradients) - iOS5.1
(gdb) po [this.webView recursiveDescription]
<UIWebView: 0x5b9b70; frame = (10 10; 300 440); layer = <CALayer: 0x5b9be0>>
| <_UIWebViewScrollView: 0x19a5400; frame = (0 0; 300 440); clipsToBounds = YES; autoresize = H; layer = <CALayer: 0x19a4e20>; contentOffset: {0, 0}>
| | <UIImageView: 0x19a7bb0; frame = (0 0; 10 10); transform = [-1, 0, -0, -1, 0, 0]; alpha = 0; opaque = NO; userInteractionEnabled = NO; layer = <CALayer: 0x19a7bf0>>
| | <UIImageView: 0x19a7b40; frame = (0 0; 10 10); transform = [0, 1, -1, 0, 0, 0]; alpha = 0; opaque = NO; userInteractionEnabled = NO; layer = <CALayer: 0x19a7b80>>
| | <UIImageView: 0x19a7ad0; frame = (0 0; 10 10); transform = [0, -1, 1, 0, 0, 0]; alpha = 0; opaque = NO; userInteractionEnabled = NO; layer = <CALayer: 0x19a7b10>>
| | <UIImageView: 0x19a7940; frame = (0 0; 10 10); alpha = 0; opaque = NO; userInteractionEnabled = NO; layer = <CALayer: 0x19a7aa0>>
| | <UIImageView: 0x19a78d0; frame = (-4.5 4.5; 10 1); transform = [0, 1, -1, 0, 0
@ianchia
ianchia / httpd.conf
Created March 29, 2012 04:57
Lion default httpd.conf file
#
# Mac OS X / Mac OS X Server
# The <IfDefine> blocks segregate server-specific directives
# and also directives that only apply when Web Sharing or
# server Web Service (as opposed to other services that need Apache) is on.
# The launchd plist sets appropriate Define parameters.
# Generally, desktop has no vhosts and server does; server has added modules,
# custom virtual hosts are only activated when Web Service is on, and
# default document root and personal web sites at ~username are only
# activated when Web Sharing is on.