Skip to content

Instantly share code, notes, and snippets.

View bebus77's full-sized avatar
🍝

David Pollak bebus77

🍝
View GitHub Profile
@bebus77
bebus77 / gist:030157d2eb1f104a15e4
Created December 4, 2014 21:19
Download weather forecast #AppSoc02122014
- (void)downloadWeatherForecast {
// constant representing the number of seconds in a day
const int kSecondsInDay = 60 * 60 * 24;
// the url of the weather api
NSString *const kWeatherForecastURL = @"http://api.openweathermap.org/data/2.5/forecast/daily?q=London&mode=json&units=metric&cnt=14";
// create a url request for the weather api url
NSURLRequest *request = [[NSURLRequest alloc] initWithURL:[NSURL URLWithString:kWeatherForecastURL]];
@bebus77
bebus77 / gist:4641776
Created January 26, 2013 11:12
json object sent on game creation
{
"timezone_offset":"+01:00",
"tournament":"Serie A",
"guest_team":"AC Milan",
"home_squad":[
{
"name":"M. Paolucci",
"status":"play",
"order":0,
"number":9,