Skip to content

Instantly share code, notes, and snippets.

View anthonycvella's full-sized avatar

Anthony Vella anthonycvella

View GitHub Profile
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
}
// Configure the cell...
// Calls the loadGames method in CheckInViewController
UITabBarController *tabBarController = (UITabBarController *)self.presentingViewController;
UINavigationController *navController = [tabBarController.viewControllers objectAtIndex:0];
CheckInViewController *checkInViewController = [navController.viewControllers objectAtIndex:0];
SettingsTableViewController *settingsTableViewController = [navController.viewControllers objectAtIndex:0];
[checkInViewController loadGames];
[settingsTableViewController loadSettings];
- (IBAction)btnConvert:(id)sender {
NSString *urlString = urlField.text;
answerData = [NSData dataWithContentsOfURL:[NSURL URLWithString:urlString]];
html = [[NSString alloc] initWithData:answerData encoding:NSUTF8StringEncoding];
NSLog(@"Source: %@", html);
NSRegularExpression *regexp = [NSRegularExpression regularExpressionWithPattern:@"((?<=ansMap\\[\\d] = ')|(?<=ansMap\\[\\d\\d] = '))\\w+" options:NSRegularExpressionAnchorsMatchLines error:NULL];
NSArray *numberOfMatches = [regexp matchesInString:html options:0 range:NSMakeRange(0, [html length])];
function upload()
{
$signID = isset( $_POST['signID'] ) ? $_POST['signID'] : false ;
$uploaddir = '/uploads/';
$file = basename($_FILES['file']['name']);
$uploadfile = $uploaddir . $file;
if (move_uploaded_file($_FILES['file']['tmp_name'], $uploadfile)) {
sendResponse(200, 'Upload Successful');
2013-08-03 20:30:49.932 Runway Management System[2938:c07] response: [<br />
<b>Fatal error</b>: Call to undefined function sendResponse() in <b>/Applications/XAMPP/xamppfiles/htdocs/RMS/api.php</b> on line <b>70</b><br />
]
2013-08-03 20:55:09.985 Runway Management System[3084:c07] response: [Array
(
[oatmeal] => Array
(
[name] => oatmeal.jpeg
[type] => image/jpeg
[tmp_name] => /Applications/XAMPP/xamppfiles/temp/phpxwvK4W
[error] => 0
[size] => 17264
)
2013-08-03 21:01:58.016 Runway Management System[3113:c07] response: [Array
(
[oatmeal] => Array
(
[name] => oatmeal.jpeg
[type] => image/jpeg
[tmp_name] => /Applications/XAMPP/xamppfiles/temp/phpAUzBVC
[error] => 0
[size] => 17264
)
2013-08-03 21:49:25.636 Runway Management System[3482:c07] response: [Array
(
[file] => Array
(
[name] => nMjas8cmdRz8USe1js1Y.jpeg
[type] => image/jpeg
[tmp_name] => /Applications/XAMPP/xamppfiles/temp/phpQ2bf8A
[error] => 0
[size] => 20471
)
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Anthony
*/
public class BankAccountDriver {
2015-07-08 17:37:07, Error CDiagnosticsHelper::SetSQMDatapoint: Attempting to set a datapoint in an invalid SQM session
2015-07-08 17:37:11, Error CallPidGenX: PidGenX function failed on this product key. (hr = 0x8a010001)
2015-07-08 17:37:38, Error CDiagnosticsHelper::SetSQMDatapoint: Attempting to set a datapoint in an invalid SQM session
2015-07-08 17:37:38, Error CDiagnosticsHelper::SetSQMDatapoint: Attempting to set a datapoint in an invalid SQM session
2015-07-08 17:37:40, Error CDiagnosticsHelper::SetDeferredSQMDatapoint: Attempting to set a deferred SQM datapoint in an invalid SQM session[gle=0x000000b7]
2015-07-08 17:37:40, Error CDiagnosticsHelper::SetDeferredSQMDatapoint: Attempting to set a deferred SQM datapoint in an invalid SQM session[gle=0x000000b7]
2015-07-08 17:37:44, Error CDiagnosticsHelper::SetSQMDatapoint: Attempting to set a da