Created
March 24, 2016 16:41
-
-
Save cerkit/e28314cee7a0aa2c0bda to your computer and use it in GitHub Desktop.
Markdown with code embedded in a <pre /> tag.
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
<pre class="line-numbers"><code class="language-csharp">static void Main(string[] args) | |
{ | |
for (int i = 0; i < 10; i++) | |
{ | |
// toggle between words and paragraphs | |
bool isEven = (i % 2) == 0; | |
bool isThird = (i % 3) == 0; | |
LipsumType lipsumType = isEven ? LipsumType.Paragraphs : LipsumType.Words; | |
// only start with Lorem Ipsum every third call | |
Debug.WriteLine(LoremIpsumUtil.GetNewLipsum(lipsumType, 7, isThird).feed.lipsum + Environment.NewLine); | |
// sleep for 1 second to give the server a rest | |
Thread.Sleep(1000); | |
} | |
}</code></pre> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This code will display improperly in Ghost. The first == will not be displayed, but the second one will.