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
@implementation NSURLConnection (Timeout) | |
+ (dispatch_queue_t)timeoutLockQueue { | |
static dispatch_queue_t queue; | |
static dispatch_once_t onceToken; | |
dispatch_once(&onceToken, ^{ | |
queue = dispatch_queue_create("timeout lock queue", DISPATCH_QUEUE_SERIAL); | |
}); | |
return queue; | |
} |
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
{ | |
"result": { | |
"_links": [ | |
{ | |
"href": "http://mend-api-v3-staging.us-west-2.elasticbeanstalk.com/v3/exercises/305", | |
"rel": "self" | |
} | |
], | |
"enabled": true, | |
"id": 305, |
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
{ | |
"box_score_url": "http://www.espn.com/mlb/gamecast?gameId=380807121", | |
"country": 0, | |
"full_pbp": { | |
"by_period": { | |
"description": "By Inning", | |
"groupings": [ | |
{ | |
"collapsed": false, | |
"description": "1st Inning", |
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
{ | |
"user": { | |
"first_name": "Todd", | |
"id": "5e4c6d93-8884-4c57-870b-603be19d2b87", | |
"last_name": "Twobit", | |
"mentions": [ | |
{ | |
"comment_id": 148334, | |
"commenter": { | |
"first_name": "David", |
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
{"result":[{"id":34,"name":"subscription_options","kind":"prompt","content":"We have 3 Mend plans: \n\nMonthly ($9.99/mo)\n\n3-Months ($7.99/mo, $23.99 charged every 3 months)\n\nYearly ($4.99/mo, $59.99 charged every 12 months)"},{"id":35,"name":"choose_subscription_option_eos","kind":"question","content":"So you can Mend for the cost of a latte a month! All plans renew automatically, but can be canceled at any time. Which plan is right for you?","answers":[{"id":-1,"rank":1,"content":"Monthly","name":"com.letsmend.monthly.1.dev"},{"id":-2,"rank":2,"content":"3-Months","name":"com.letsmend.monthly.3.dev"},{"id":-3,"rank":3,"content":"Yearly","name":"com.letsmend.monthly.12.dev"},{"id":42,"name":"skip_subscription","rank":3,"content":"Skip for now"}]}]} |
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
{ | |
"result": [ | |
{ | |
"content": "We have 3 Mend plans: \n\nMonthly ($9.99/mo)\n\n3-Months ($7.99/mo, $23.99 charged every 3 months)\n\nYearly ($4.99/mo, $59.99 charged every 12 months)", | |
"id": 34, | |
"kind": "prompt", | |
"name": "subscription_options" | |
}, | |
{ | |
"answers": [ |
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
#!/usr/bin/env ruby | |
path = "/tmp/images" | |
files = Dir["#{path}/*.png"] | |
base_files = [] | |
for file in files do | |
if !file.include? "x.png" | |
base_files << file | |
end | |
end |
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
{"result":{"id":204,"email":"sdfsdsdfs@sfdsfdsf.com","display_name":"Sdfsd","birthdate":"2019-02-06","gender":"female","milestones":"breakup","push_notifications":true,"email_notifications":true,"activities_count":0,"completed_trainings_count":0,"mixpanel_id":"v3-204","breakup_reasons":[{"id":1,"label":"Commitment"},{"id":2,"label":"Incompatible"},{"id":3,"label":"Infidelity"},{"id":4,"label":"No love"},{"id":5,"label":"Distance"},{"id":6,"label":"Not sure"}],"created_at":"2019-02-06T17:27:27.646-08:00","updated_at":"2019-02-06T17:32:07.992-08:00","subscriber":false,"serve_ads":false,"relationships":[{"id":205,"breakup_date":"2019-02-06","last_ex_contact":"2019-02-06","breakup_reason_id":6}]}} |
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
{ | |
"result": { | |
"activities_count": 0, | |
"birthdate": "2019-02-06", | |
"breakup_reasons": [ | |
{ | |
"id": 1, | |
"label": "Commitment" | |
}, | |
{ |
This file has been truncated, but you can view the full file.
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
{ | |
"id": 31528, | |
"live_update": true, | |
"metadata_type": "permanent", | |
"name": "trending_ts", | |
"published_at": "2016-04-22T05:22:41Z", | |
"tags": { | |
"color1": "ef3f23", | |
"color2": "ef3f23", | |
"display_name": "Trending", |