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 ConvertToDatetime(dateValue) { | |
| var regex = /-?\d+/; | |
| var match = regex.exec(dateValue); | |
| return new Date(parseInt(match[0])); | |
| } |
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; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.ServiceProcess; | |
| using System.Text; | |
| using System.Reflection; | |
| using System.Configuration.Install; | |
| namespace test | |
| { |
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; | |
| namespace NodeBus | |
| { | |
| class Program | |
| { | |
| public static void Main(string[] args) | |
| { | |
| INode square = new TransformNode(new OutfileNode(null, "file2.txt"), (x) => | |
| { |
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; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Linq.Expressions; | |
| using System.Reflection; | |
| using System.Text; | |
| namespace ReaderExtensions.Extensions | |
| { | |
| public static class DataReaderExtensions |
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
| public class LumenICsvPaser : CsvHelper.ICsvParser | |
| { | |
| private LumenWorks.Framework.IO.Csv.CsvReader _reader = null; | |
| public LumenICsvPaser(System.IO.TextReader stream) : this(stream, new CsvConfiguration()) | |
| { | |
| } | |
| public LumenICsvPaser(System.IO.TextReader stream, CsvConfiguration config) | |
| { |
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
| public class RowComparer : IComparer<System.Data.DataRow> | |
| { | |
| public Dictionary<int, bool> SortColumns { get; set; } | |
| public int Compare(System.Data.DataRow x, System.Data.DataRow y) | |
| { | |
| foreach (int key in SortColumns.Keys) | |
| { | |
| int compareResult; |
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
| public class DisposableClass : IDisposable | |
| { | |
| bool _disposed; | |
| public void Dispose() | |
| { | |
| Dispose(true); | |
| GC.SuppressFinalize(this); | |
| } |
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
| @powershell -NoProfile -ExecutionPolicy unrestricted -Command "$a = new-object net.webclient; $a.proxy.credentials=[system.net.credentialcache]::defaultnetworkcredentials;$a.DownloadString('https://chocolatey.org/install.ps1') | iex" && SET PATH=%PATH%;%systemdrive%\chocolatey\bin |
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
| REPOS="$1" | |
| TXN="$2" | |
| # Make sure that the log message contains some text. | |
| SVNLOOK=/usr/bin/svnlook | |
| $SVNLOOK log -t "$TXN" "$REPOS" | grep "[a-zA-Z0-9]" > /dev/null | |
| GREP_STATUS=$? | |
| if [ $GREP_STATUS -ne 0 ] | |
| then |
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 Func<object, object> CreateInitFn(object obj) | |
| { | |
| var keyType = obj.GetType(); | |
| if (_initFn.ContainsKey(keyType)) | |
| { | |
| return _initFn[keyType]; | |
| } | |
| ParameterExpression xTmp = Expression.Variable(obj.GetType(), "tmp"); | |
OlderNewer