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 static class DispatchUtility | |
| { | |
| private const int S_OK = 0; //From WinError.h | |
| private const int LOCALE_SYSTEM_DEFAULT = 2 << 10; //From WinNT.h == 2048 == 0x800 | |
| public static bool ImplementsIDispatch(object obj) | |
| { | |
| bool result = obj is IDispatchInfo; | |
| return result; | |
| } |
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
| filters.Add(new RollbarMvcExceptionFilter()); |
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.Threading.Tasks; | |
| using Microsoft.Owin.Hosting; | |
| using Nancy; | |
| using Owin; | |
| namespace ConsoleApplication1 | |
| { | |
| class Program | |
| { |
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 ValuesController : ApiController | |
| { | |
| // GET api/values | |
| public IEnumerable<string> Get() | |
| { | |
| return new string[] { "value1", "value2" }; | |
| } | |
| // GET api/values/5 | |
| public string Get(int id) |
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
| [user] | |
| name = Alberto Monteiro | |
| email = alberto.monteiro@live.com | |
| [core] | |
| preloadindex = true | |
| fscache = true | |
| autocrlf = true | |
| editor = code -n -w | |
| [alias] | |
| fetchall = fetch --all --prune |
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 CsvHelper; | |
| using CsvHelper.Configuration; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq.Expressions; | |
| using Xunit; | |
| namespace ClassLibrary1 | |
| { |
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.Data; | |
| using System.Data.SqlClient; | |
| using System.Diagnostics; | |
| using System.Linq; | |
| namespace Sergio | |
| { | |
| public class EnumerableAlberto |
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
| static class Ex | |
| { | |
| public static TimeSpan Sum(this IEnumerable<TimeSpan> lista) | |
| { | |
| return lista.Aggregate(TimeSpan.Zero, (current, item) => current.Add(item)); | |
| } | |
| public static TValue Aggregate<T, TValue>(this IEnumerable<T> lista, TValue initial, Func<T, int, TValue, TValue> aggregateFunc) | |
| { | |
| var i = 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
| Tags with inner tags => <(Content|None|Compile|EmbeddedResource).+?[^/]>(\n+\s+.+){1,6}?(\n\s+</\1>) |