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)sayHello { | |
NSLog(@"hello"); | |
} |
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
<?php | |
$token = ''; | |
if ($_GET['code'] !== '') { | |
$token = file_get_contents('https://graph.facebook.com/oauth/access_token?client_id=xxxxxxxxxxxxxxxx&redirect_uri=http://youdomain.com/callbackurl/&client_secret=xxxxxxxxxxxxxx&code='.$_GET['code']); | |
} else { | |
print "no code"; | |
} | |
?> | |
<html> |
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)webViewDidFinishLoad:(UIWebView *)webView { | |
/** | |
* Since there are a lot redirects then UIWebview delegate methods are called ALOT. | |
* Therefore I just want to check and make sure that I am only getting the value when the url has my hostname in it | |
*/ | |
NSRange rangeRound = [[[webView.request URL] absoluteString] rangeOfString:@"corywiles"]; | |
if (rangeRound.length) { |
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)loadView { | |
UIView *mainView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)]; | |
self.view = mainView; | |
[mainView release]; | |
UITableView *tblView = [[UITableView alloc] initWithFrame:CGRectMake(0 55, 320, 300) style:UITableViewStylePlain]; | |
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
#header { | |
background: #FBFBF9; | |
background: -webkit-gradient(linear, left 45%, left 90%, from(rgba(253, 251, 252, 1.0)), to(rgba(207, 204, 199, 1.0))); | |
/* for FF 3.6 */ | |
background: -moz-linear-gradient(rgba(253, 251, 252, 1.0) 45%, rgba(207, 204, 199, 1.0) 90%); | |
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr=#FDFBFC, endColorstr=#CFCCC7); | |
-ms-filter: "progid:DXImageTransform.Microsoft.gradient (GradientType=0, startColorstr=#FDFBFC, endColorstr=#CFCCC7)"; | |
text-align: right; padding: 5px 0; } |
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
<?php | |
//Example Code | |
private function _notifyGroup() { | |
$data = array(); | |
$data = $this->getForm()->getValues(); | |
/** | |
* Setup view instance to pass to notifier | |
*/ |
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
<?php | |
/** | |
* @see Zend_Validate_Abstract | |
*/ | |
require_once 'Zend/Validate/Abstract.php'; | |
/** | |
* @see Zend_Http_Client | |
*/ | |
require_once 'Zend/Http/Client.php'; |
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
<?php | |
// En.php | |
return array( | |
'name' => 'First Name', | |
'address' => 'Address' | |
); | |
// Es.php |
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
<?php | |
<route>^(?!\bsearch|forms\b)(\w+-?[\w-?]*\/?)(.*)?</route> | |
?> |
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
// Parent UIViewControlller | |
- (void)viewWillAppear:(BOOL)animated { | |
[[NSNotificationCenter defaultCenter] addObserver:self | |
selector:@selector(refreshSearchBarControllerWithDepartmentCode:) | |
name:@"DepartmentCodeNotification" | |
object:nil]; | |
OlderNewer