Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Markdown with code embedded in a <pre /> tag.
<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>
@cerkit
Copy link
Author

cerkit commented Mar 24, 2016

This code will display improperly in Ghost. The first == will not be displayed, but the second one will.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment