Skip to content

Instantly share code, notes, and snippets.

@fekberg
Created December 12, 2013 02:16
Show Gist options
  • Select an option

  • Save fekberg/7922227 to your computer and use it in GitHub Desktop.

Select an option

Save fekberg/7922227 to your computer and use it in GitHub Desktop.
Here's how you do SOS Morse Code in C#.
var sequence = Enumerable.Range(0, 3).ToList();
while(true) {
sequence.ForEach(e => Console.Beep(650, 100));
Thread.Sleep(200);
sequence.ForEach(e => Console.Beep(650, 400));
Thread.Sleep(200);
sequence.ForEach(e => Console.Beep(650, 100));
Thread.Sleep(500);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment