Skip to content

Instantly share code, notes, and snippets.

@Redth
Created June 2, 2014 18:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Redth/2d5f0ba07c23c7bc3590 to your computer and use it in GitHub Desktop.
Save Redth/2d5f0ba07c23c7bc3590 to your computer and use it in GitHub Desktop.
using System;
using System.Net.Http;
namespace IsItRdyYet
{
class MainClass
{
public static void Main (string[] args)
{
var http = new HttpClient ();
while (true) {
System.Threading.Thread.Sleep (10000);
Console.Write ("Is ready yet? ");
var data = http.GetStringAsync ("http://developer.apple.com/ios").Result;
if (data.Contains ("class=\"maintenance\"")) {
Console.WriteLine ("Nope.");
continue;
}
Console.WriteLine ("YES! OMG, is ready!!!!1");
for (int i = 0; i < 5; i++)
Console.Beep ();
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment