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
| void Main() | |
| { | |
| string firstEffectName = "Shot"; | |
| string secondEffectName = "Boom"; | |
| var sw = System.Diagnostics.Stopwatch.StartNew(); | |
| for(int i = 0; i< 1000000; i++) | |
| { | |
| var a = string.Compare(firstEffectName, secondEffectName, StringComparison.InvariantCultureIgnoreCase) == 0; | |
| } | |
| sw.Stop(); |
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
| Param | |
| ( | |
| $configFilePath, | |
| $configKey, | |
| $configValue | |
| ) | |
| if(Test-Path -Path $configFilePath -PathType Leaf) | |
| { | |
| [System.Xml.XmlDocument]$document = New-Object System.Xml.XmlDocument |
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
| using System.Collections.Generic; | |
| using System.Linq; | |
| using LinqToQuerystring; | |
| namespace LinqToQuerystring.Nancy | |
| { | |
| public static class NancyExtensions | |
| { | |
| public static dynamic LinqToQuerystring<T>(this IQueryable<T> query, IDictionary<string, object> queryDictionary, bool forceDynamicProperties = false, int maxPageSize = -1) | |
| { |
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
| (function (ko, handlers, unwrap, extend) { | |
| "use strict"; | |
| extend(handlers, { | |
| href: { | |
| update: function (element, valueAccessor) { | |
| handlers.attr.update(element, function () { | |
| return { href: valueAccessor() }; | |
| }); | |
| } | |
| }, |
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
| private void NormalizeFte(List<Estimation> estimations, List<BudgetLine> budgetLines) | |
| { | |
| double remainingSum = 0; | |
| foreach (BudgetLine line in budgetLines) | |
| { | |
| NormalizeLineSmallRemainder(line, ref remainingSum); | |
| } | |
| } | |
| private void NormalizeLineSmallRemainder(BudgetLine line, ref double remainingSum) |