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
| This XML file does not appear to have any style information associated with it. The document tree is shown below. | |
| <menu> | |
| <day name="monday"> | |
| <meal name="BREAKFAST"> | |
| <counter name="Breakfast"> | |
| <dish> | |
| <name icon1="Vegan" icon2="Mindful Item"> | |
| Cream of Wheat (Farina) | |
| <nutrition_facts name="Cream of Wheat (Farina)"> | |
| <serving_size>6 oz Ladle (159g)</serving_size> |
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
| #import <Foundation/Foundation.h> | |
| typedef enum { | |
| Sunday, | |
| Monday, | |
| Tuesday, | |
| Wednesday, | |
| Thursday, | |
| Friday, | |
| Saturday |
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
| #import <UIKit/UIKit.h> | |
| typedef struct | |
| { | |
| NSInteger openTime; | |
| NSInteger closeTime; | |
| } ShopHours; |
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
| if ([self dateAndTime:date getStartDay:0 getStartHour:7 getStartMin:30 getEndDay:3 getEndHour:23 getEndMin:30] == YES) | |
| open3 = @"Open"; | |
| else if ([self dateAndTime:date getStartDay:0 getStartHour:23 getStartMin:30 getEndDay:3 getEndHour:24 getEndMin:0] == YES) | |
| open3 = [NSString stringWithFormat:@"Closes in %@ min", countdownNumber]; | |
| else if ([self dateAndTime:date getStartDay:4 getStartHour:7 getStartMin:30 getEndDay:4 getEndHour:21 getEndMin:30] == YES) | |
| open3 = @"Open"; | |
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
| //This is my custom list view and adapter | |
| mHeaderListView = (HeaderListView)findViewById(R.id.HeaderListView_MainActivity); | |
| mHeaderListView.setAdapter(new SectionAdapter() { | |
| @Override | |
| public int numberOfSections() { |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="com.spencer.ueat" > | |
| <uses-permission android:name="android.permission.INTERNET" /> | |
| <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
| <uses-permission android:name="android.permission.WAKE_LOCK" /> | |
| <uses-permission android:name="android.permission.VIBRATE" /> | |
| <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> | |
| <uses-permission android:name="android.permission.GET_ACCOUNTS" /> |
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
| # coding: utf-8 | |
| import pprint | |
| from lxml import etree | |
| import cgi | |
| from bs4 import BeautifulSoup | |
| import datetime | |
| import urllib2 | |
| import cookielib | |
| import re |
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
| Parse.Cloud.job("saveCurrentDayItems2", function(request, response) { | |
| var utcDate = new Date(); | |
| var utcHour = utcDate.getHours(); | |
| utcDate.setHours(utcHour-4); | |
| var currentDate = utcDate; | |
| var days = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday']; | |
| //var months = ['January','February','March','April','May','June','July','August','September','October','November','December']; | |
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
| -(UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { | |
| NSInteger buttonNumber = [self.mealdata mealsForDay:indexPath.row].count; | |
| // NSLog(@"%d", buttonNumber); | |
| switch (buttonNumber) { |