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
| - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { | |
| if (indexPath.row == 1) { | |
| static JotoTutorialTagsTableViewCell *sizingCell; | |
| if (!sizingCell) { | |
| sizingCell = [tableView dequeueReusableCellWithIdentifier:@"tutorialTagsCell"]; | |
| } | |
| CGRect frame = sizingCell.frame; | |
| frame.size.width = self.tableView.frame.size.width; | |
| sizingCell.frame = frame; | |
| NSString *category = [self.interestArray objectAtIndex:indexPath.section]; |
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
| { | |
| "date_joined": "2013-07-05T06:55:12+00:00", | |
| "events": [{ | |
| "attended": null, | |
| "category": "eventsdeals", | |
| "description": "Join Mayor Buckhorn as food trucks line up for this monthly lunchtime event in downtown Tampa.", | |
| "friends": [], | |
| "id": 7289, | |
| "image": "", | |
| "interests": [{ |
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
| GET /api/v1/user/ HTTP/1.1 | |
| Host: joto.me | |
| Accept: application/json | |
| Connection: keep-alive | |
| Cookie: sessionid=axzudm1y7bkc52wmeclnrqa5nycs85hk | |
| User-Agent: Joto/1.0 (iPhone Simulator; iOS 7.0.3; Scale/2.00) | |
| Accept-Language: en;q=1, fr;q=0.9, de;q=0.8, zh-Hans;q=0.7, zh-Hant;q=0.6, ja;q=0.5 | |
| Authorization: Basic ZGZyZWVAdW1pY2guZWR1Omlsb3ZlZmFydHM= | |
| Accept-Encoding: gzip, deflate |
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
| PUT /api/v1/interest/109/ HTTP/1.1 | |
| Host: joto.me | |
| Accept: application/json | |
| Content-Type: application/json; charset=utf-8 | |
| Content-Length: 22 | |
| Connection: keep-alive | |
| Cookie: sessionid=axzudm1y7bkc52wmeclnrqa5nycs85hk | |
| User-Agent: Joto/1.0 (iPhone Simulator; iOS 7.0.3; Scale/2.00) | |
| Accept-Language: en;q=1, fr;q=0.9, de;q=0.8, zh-Hans;q=0.7, zh-Hant;q=0.6, ja;q=0.5 | |
| Accept-Encoding: gzip, deflate |
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
| { | |
| "log": { | |
| "version": "1.2", | |
| "creator": { | |
| "name": "Charles Proxy", | |
| "version": "3.8.3" | |
| }, | |
| "entries": [ | |
| { | |
| "startedDateTime": "2014-02-05T12:53:44.273-08:00", |
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
| {"log":{"version":"1.2","creator":{"name":"Charles Proxy","version":"3.8.3"},"entries":[{"startedDateTime":"2014-02-05T12:53:44.273-08:00","time":160,"request":{"method":"PUT","url":"http://joto.me/api/v1/interest/69/","httpVersion":"HTTP/1.1","cookies":[{"name":"sessionid","value":"axzudm1y7bkc52wmeclnrqa5nycs85hk","path":null,"domain":null}],"headers":[{"name":"Host","value":"joto.me"},{"name":"Accept","value":"application/json"},{"name":"Content-Type","value":"application/json; charset=utf-8"},{"name":"Connection","value":"keep-alive"},{"name":"Cookie","value":"sessionid=axzudm1y7bkc52wmeclnrqa5nycs85hk"},{"name":"User-Agent","value":"Joto/1.0 (iPhone Simulator; iOS 7.0.3; Scale/2.00)"},{"name":"Accept-Language","value":"en;q=1, fr;q=0.9, de;q=0.8, zh-Hans;q=0.7, zh-Hant;q=0.6, ja;q=0.5"},{"name":"Accept-Encoding","value":"gzip, deflate"},{"name":"Content-Length","value":"21"}],"queryString":[],"postData":{"mimeType":"application/json; charset=utf-8","text":"{\"subscribed\":\"true\"}"},"headersSize":402,"b |
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
| from django.shortcuts import HttpResponse, HttpResponseRedirect, render_to_response, get_object_or_404 | |
| from django.contrib.auth import authenticate, login, logout | |
| from django.contrib.auth.decorators import login_required | |
| import urllib | |
| import operator | |
| from datetime import datetime | |
| from django.utils import simplejson |
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 "BTHomeInternalViewController.h" | |
| #import "TrapsAppDelegate.h" | |
| #import "BTNetwork.h" | |
| #import "FBConnect/FBConnect.h" | |
| #import "BTUserProfile.h" | |
| #import "BTConstants.h" | |
| //From: from http://iphonedevelopertips.com/cocoa/json-framework-for-iphone-part-2.html |
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
| FAIL | |
| test_CARL_v7_ah_91_unknown (TestDataMapTests.test_CARL_v7_ah_91_unknown) ... | |
| 'key' 'Unit Test Value' 'Current Value' | |
| u'AirSegment' "[{'_sequence': '0', 'arri" "[{u'arrival_date': u'2008" | |
| u'departure_date' '2008-04-05' '05APR' |
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
| def increment(self, i): | |
| if i == ~1/2: | |
| return 0 | |
| if i % 2 == 0: | |
| return i | 1 | |
| else: | |
| return self.increment(i>>1)<<1 |