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
{ | |
"content_carousels": [], | |
"grouping_name": null, | |
"id": 21667, | |
"is_community": false, | |
"live_update": true, | |
"metadata_type": "permanent", | |
"name": "arsenal_ts", | |
"native_next_game_widget": null, |
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
{ | |
"content_carousels": [], | |
"grouping_name": null, | |
"id": 21667, | |
"is_community": false, | |
"live_update": true, | |
"metadata_type": "permanent", | |
"name": "arsenal_ts", | |
"native_next_game_widget": null, | |
"published_at": "2016-04-22T05:22:15Z", |
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
{ | |
"data": [ | |
{ | |
"analytics": { | |
"onclick": { | |
"url": "https://giphy-analytics.giphy.com/simple_analytics?response_id=da047a78173ab60e38462d9d992ba8f371c9fc6a&event_type=GIF_TRENDING&gif_id=26xBKwkLLvr6NSMi4&action_type=CLICK" | |
}, | |
"onload": { | |
"url": "https://giphy-analytics.giphy.com/simple_analytics?response_id=da047a78173ab60e38462d9d992ba8f371c9fc6a&event_type=GIF_TRENDING&gif_id=26xBKwkLLvr6NSMi4&action_type=SEEN" | |
}, |
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
{ | |
"data": [ | |
{ | |
"analytics": { | |
"onclick": { | |
"url": "https://giphy-analytics.giphy.com/simple_analytics?response_id=fcc9ab2c58b0f8b6a60eedbf676c2ee6fbf018de&event_type=GIF_TRENDING&gif_id=l3q2Yy64xyWwmEYyQ&action_type=CLICK" | |
}, | |
"onload": { | |
"url": "https://giphy-analytics.giphy.com/simple_analytics?response_id=fcc9ab2c58b0f8b6a60eedbf676c2ee6fbf018de&event_type=GIF_TRENDING&gif_id=l3q2Yy64xyWwmEYyQ&action_type=SEEN" | |
}, |
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 | |
print "What is the URL of your Apple Downloads resource?\nURL:" | |
url = gets.strip | |
print "What is the ADCDownloadAuth cookie token:\nADCDownloadAuth: " | |
token = gets.strip | |
command = "aria2c --header \"Host: adcdownload.apple.com\" --header \"Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\" --header \"Upgrade-Insecure-Requests: 1\" --header \"Cookie: ADCDownloadAuth=#{token}\" --header \"User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_1 like Mac OS X) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0 Mobile/14B72 Safari/602.1\" --header \"Accept-Language: en-us\" -x 16 -s 16 #{url} -d ~/Downloads" |
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
{ | |
"1.2.5": [ | |
"Added top stories to the home screen", | |
"Improved navigation between your team stream and articles", | |
"Added ability to install or move the app to the SD card", | |
"Added haptic feedback to buttons" | |
] | |
} |
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 *)dictionaryFromJsonWebService:(NSString *)urlString { | |
if (!urlString) return [NSDictionary dictionary]; | |
NSDictionary *dict = nil; | |
NSError *err; | |
// Make the web service request | |
NSURL *url = [NSURL URLWithString:urlString]; | |
NSHTTPURLResponse* urlResponse = nil; | |
NSMutableURLRequest *req = [NSMutableURLRequest requestWithURL:url | |
cachePolicy:NSURLRequestReloadIgnoringLocalCacheData |
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
// | |
// LeadArticleViewControllerTest.m | |
// | |
#import <SenTestingKit/SenTestingKit.h> | |
#define HC_SHORTHAND | |
#import <OCHamcrestIOS/OCHamcrestIOS.h> | |
#import <OCMock/OCMock.h> | |
#import <CoreData/CoreData.h> | |
#import "AppController.h" |
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
/ Partial used on http://www.fanclasstic.com for mapping organizations | |
- organizations = organizations.delete_if{|o| o.latitude.nil? || o.longitude.nil?} | |
- if organizations.size > 0 | |
- center = Geocoder::Calculations.geographic_center(organizations.clone) | |
#google-map | |
%script{:src => "http://maps.google.com/maps/api/js?sensor=false"} | |
%script{:type => "text/javascript"} | |
//<![CDATA[ | |
function initialize() { | |
var myOptions = { |
NewerOlder