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
public class ExecuteEndPoint : PersistentConnection { | |
/// <summary> | |
/// Handle messages sent by the client.</summary> | |
protected override Task OnReceivedAsync(string connectionId, string data) | |
{ | |
var command = new ExecuteCommand | |
{ | |
ClientId = connectionId, | |
Code = data |
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
fdsafsda |
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
declare @tempTable table | |
( | |
TableSchema nvarchar(256), | |
TableName nvarchar(256), | |
ColumnName sysname, | |
NotNullCnt bigint | |
); | |
declare @sql nvarchar(4000); | |
declare @tableSchema nvarchar(256); |
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
private static unsafe int ParseFast(string data) | |
{ | |
int count = 0, valid = 0, pos, stop, temp; | |
byte[] buffer = new byte[ushort.MaxValue]; | |
const byte Zero = (byte) '0'; | |
const byte Nine = (byte) '9'; | |
const byte Dot = (byte)'.'; | |
const byte Space = (byte)' '; | |
const byte Tab = (byte) '\t'; |
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
(function(){ | |
var totalPop = 0 | |
, roomPops = $('#userlist-lobby .room .count').text().match(/\d+/g); | |
for (var i = 0, l = roomPops.length; i < l; i++) { | |
totalPop += parseInt(roomPops[i]); | |
} | |
return totalPop; | |
})(); |
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
(function($) { | |
if (typeof Array.prototype.unique !== 'function'){ | |
Array.prototype.unique = function() { | |
var a = this.concat(); | |
for (var i = 0, l = a.length; i < l; ++i) { | |
for (var j = i + 1; j < l; ++j) { | |
if (a[i] === a[j]) { | |
a.splice(j, 1); |
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
Action x; | |
x = () => x(); | |
return x(); |
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
public interface IHaveState | |
{ | |
object State { get; } | |
} |
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; | |
[Serializable] | |
public struct Base36 : IEquatable<Base36>, IComparable<Base36> | |
{ | |
private const string Characters = "0123456789abcdefghijklmnopqrstuvwxyz"; | |
public static readonly Base36 MaxValue = new Base36(long.MaxValue); | |
public static readonly Base36 MinValue = new Base36(long.MinValue + 1); |
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
@@@ // dont' really want external subclasses | |
internal RedisConnectionBase(string host, int port = 6379, /* ... */) |
OlderNewer