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
//Found this on pastebin at http://pastebin.com/zkS4Wszb | |
// See comments below | |
/// <summary> | |
/// Key/Value pairs where key is string and value is object | |
/// </summary> | |
public interface IStorageModel | |
{ | |
object AddOrUpdate(string key, object entity); | |
bool Remove(string key); |
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
Num threads: 10 | |
Start: 2015-08-20 01:42:10 | |
Reads: 133758452 | |
Writes: 66050 | |
Reads/s: 4458615,06666667 | |
Writes/s: 2201,66666666667 | |
Total: 133824502 | |
TPS: 4460816,73333333 | |
Stop time: 2015-08-20 01:42:50 |
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
$ perl text-lint.pl text-input.txt | |
line 1 violates rule \bhaz\b | |
my dog haz fleas | |
line 2 violates rule \bhaz\b | |
can I haz code, please? | |
line 3 violates rule \bibm\b | |
ibm is a big company |
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
[Flags] | |
public enum Isolation | |
{ | |
Unknown = 0, | |
Input = 1, | |
Output = 2, | |
InputOutput = 3 | |
} |
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
[Serializable] | |
public class FlightModel : Model | |
{ | |
[NonSerialized] | |
private AdjacencyGraph<string, Leg> _airports; | |
private readonly GeoSpatialIndex<string> _locations | |
= new GeoSpatialIndex<string>(); |
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 OrigoDB.Core.Models | |
{ | |
/// <summary> | |
/// Message broker supporting any number of queues (competing consumers) | |
/// or topics (multiple subscribers) |
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 OrigoDB.Core.Models | |
{ | |
/// <summary> | |
/// Entities must implement this interface |
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
internal static Boolean HasRefArg(MethodInfo methodInfo) | |
{ | |
const string pattern = " ByRef[,)]"; | |
return Regex.IsMatch(methodInfo.ToString(), pattern); | |
} |
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
create table Demo ( | |
Number int not null primary key | |
) | |
go | |
create proc wtf as | |
begin tran | |
insert demo values(1) | |
insert demo values(1) | |
commit tran |
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
C:\Users\rofr>@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex | |
((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/s | |
criptcs-contrib/svm/master/install/installer.ps1'))" && SET PATH=%HOME%\.svm\bin | |
\;%HOME%\.svm\shims\;%PATH% | |
scriptcs version manager - installer | |
Cannot find an overload for "Combine" and the argument count: "3". | |
At line:127 char:42 | |
+ $downloadPath = [System.IO.Path]::Combine <<<< ($env:TEMP, [Guid]::NewGuid(), |