This file contains hidden or 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
"use strict"; | |
/************************************************************************************************ | |
* Navbar Icons | |
* | |
* To make this work, you will need navigation links that use classes that match what you send | |
* to the calls above. | |
* | |
* Example: | |
* |
This file contains hidden or 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 |
This file contains hidden or 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
// Dilemma, should I use this code: | |
// NOTE: existingJobDetail.Id is defined as a regular (non-nullable) int. | |
int? parentJobDetailId = existingJobDetail != null ? existingJobDetail.Id as int? : null; | |
// Or this code: | |
int? parentJobDetailId = existingJobDetail != null ? (int?)existingJobDetail.Id : null; | |
// Or (less likely): |
This file contains hidden or 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
<div id="mapContainer"></div> | |
<script type="text/javascript"> | |
// attach map to mapContainer | |
var map = $("#mapContainer").dxVectorMap({ | |
// config goes here... | |
}).dxVectorMap('instance'); | |
// remove the border around the map | |
$("#mapContainer").children("svg:first").children("rect:first").attr("stroke-width", "0"); | |
OlderNewer