Creating test data (100000 records)... DONE
Elapsed....: 00:00:00.0340276
# per µs...: 2,94
µs per #...: 0,34
Creating subset (1000 records... DONE
Elapsed....: 00:00:00.0003953
This file contains 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
namespace Trine.CLI | |
{ | |
class Program | |
{ | |
static void Main() | |
{ | |
new Crash | |
{ | |
Inner = {Name = "what"} | |
}; |
This file contains 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; | |
namespace Example | |
{ | |
public static class ThreadPond | |
{ | |
public static void QueueUserWorkItem<T1>(Action<T1> callback, T1 arg1) | |
{ | |
if (callback == null) throw new ArgumentNullException(nameof(callback)); |
This file contains 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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using NUnit.Framework; | |
namespace TestPad | |
{ | |
public class Tests | |
{ | |
[Test] |
This file contains 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.IO; | |
using System.Runtime.Serialization; | |
using System.Runtime.Serialization.Json; | |
using System.Xml.Serialization; | |
using Newtonsoft.Json; | |
using NUnit.Framework; | |
namespace Lab | |
{ |
This file contains 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.IO; | |
namespace System.Reflection | |
{ | |
public static class AssemblyManifestResourceStreamExtensions | |
{ | |
public static Stream OpenManifestResourceStream(this Assembly assembly, string name) | |
{ | |
if (assembly == null) throw new ArgumentNullException("assembly"); | |
var result = assembly.GetManifestResourceStream(name); |
var container = new TinyIoCContainer();
container.Register<ICar, ChittyBangBang>();
container.Register<ICar, Herbie>("Beetle");
var actual = container
.ResolveBuilder()
.WithOverload<ICar>("car", "Beetle")
.Resolve();
This file contains 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; | |
namespace MicroIoC | |
{ | |
public interface IMicroIoContainer | |
{ | |
object Resolve(Type type); | |
T Resolve<T>(Type type) where T : class; |
This file contains 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
#!/bin/bash | |
alias which='type -a' | |
alias ..='cd ..' | |
alias dev='cd /c/dev/' | |
alias path='echo -e ${PATH//:/\\n}' | |
alias ls='ls -hF --color' # add colors for filetype recognition | |
alias la='ls -Al' # show hidden files | |
alias lx='ls -lXB' # sort by extension |
This file contains 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
# If you use MyGet.org at your company, this script can be modified and distributed to help your | |
# developers set up MyGet.org access. | |
$feedUrl = "https://www.myget.org/F/CHANGEME/" | |
$feedName = "ChangeMe" | |
$nuget = Read-Host "Enter path to NuGet.exe" | |
echo "" | |
echo "You need your API Key. It can be obtained from MyGet.org" |
NewerOlder