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
-(NSDictionary*)isVenueOpenDictionaryForHours:(NSArray*)hours{ | |
// defaults and inits | |
NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar]; | |
NSDictionary *lastSegmentYesterday = [[NSDictionary alloc] init]; | |
NSDate *dateNow = [NSDate date]; | |
NSString *venueOpenText = [[NSString alloc] init]; | |
NSString *venueOpen = @"no"; | |
// get components for today | |
NSDateComponents *compsNow = [gregorian components:NSWeekdayCalendarUnit|NSHourCalendarUnit|NSMinuteCalendarUnit|NSDayCalendarUnit|NSMonthCalendarUnit|NSYearCalendarUnit fromDate:dateNow]; |
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
// example to help out someone on stackoverflow | |
// http://stackoverflow.com/questions/12916539/simplest-php-example-for-retrieving-user-timeline-with-twitter-api-version-1-1/16169848?noredirect=1#comment34312649_16169848 | |
// get the array of tweets | |
$tweets = returnTweet(); | |
// loop all the tweets and display each of them | |
foreach($tweets as $tweet){ | |
echo "Tweet: " . $tweet["text"] . "<br>"; | |
} |
NewerOlder