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
$('div.live-import-log').each(function () { | |
var logPanel = $(this); | |
var logDataPre = logPanel.find('pre'); | |
var logSource = $(this).data('source'); | |
var spinner = undefined; | |
var newDataCallback = function (logData) { | |
logDataPre.text(logData); | |
var jobIsStillRunning = logData.indexOf('\u25AA') < 0; | |
if (jobIsStillRunning) { | |
setTimeout(updateCallback, 5000); |
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
#requires -version 2.0 | |
param ( | |
[parameter(Mandatory=$false)] [string]$AzureSdkRootPath | |
) | |
$ErrorActionPreference = "Stop" | |
function StopAzure{ | |
"Shutting down development fabric" |
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 static class TableStep | |
{ | |
public static IEnumerable<TResult> Table<TResult>( | |
this IGremlinQuery query) where TResult : new() | |
{ | |
var newQuery = query.AddBlock(".table(new Table()).cap"); | |
var response = new GremlinProjectionEnumerable<GremlinTableCapResponse>(newQuery); | |
return TransferResponseToResult<TResult>(response); | |
} |
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.ComponentModel; | |
using System.Reflection; | |
namespace Romiko | |
{ | |
public static class ConverterExtensions | |
{ | |
public static void ConvertAndSetValue<TResult>(this TResult result, string value, PropertyInfo prop) where TResult : new() |
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
gremlin$ ./gremlin.sh | |
\,,,/ | |
(o o) | |
-----oOOo-(_)-oOOo----- | |
gremlin> g = TinkerGraphFactory.createTinkerGraph(); | |
==>tinkergraph[vertices:6 edges:6] | |
gremlin> g.v(1)._.copySplit(_().outE('knows'), _().outE('created')).fairMerge.label | |
==>knows | |
==>created |
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 NUnit.Framework; | |
using Neo4jClient.Gremlin; | |
namespace Neo4jClient.Test.Gremlin | |
{ | |
[TestFixture] | |
public class GremlinDistinctStepTests | |
{ | |
[Test] | |
public void GremlinDistinctAppendStepToNodeQuery() |
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 NUnit.Framework; | |
using Neo4jClient.Gremlin; | |
namespace Neo4jClient.Test.Gremlin | |
{ | |
[TestFixture] | |
public class IfThenElseTests | |
{ | |
[Test] | |
public void IfThenElseVShouldAppendSteps() |
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.Runtime.Caching; | |
namespace MyStory.Logic.Services | |
{ | |
public class CacheService : ICacheService | |
{ | |
readonly ObjectCache cache; | |
readonly CacheItemPolicy defaultPolicy; | |
readonly IConfigOverrideProvider configOverrideProvider; |
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
[Test] | |
public void StartWithTwoNodesInSeperateColumnsShouldReturnIEnumerableOfObjects() | |
{ | |
//Arrange | |
const string cypherExpectedQuery = "start myNode=node({foo}) return myNode"; | |
var parameters = new Dictionary<string, object> | |
{ | |
{"foo", 123} | |
}; |
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.Generic; | |
using System.Linq; | |
using Newtonsoft.Json; | |
namespace Neo4jClient.ApiModels.Cypher | |
{ | |
public class DataRow<TCol1, TCol2, TCol3> | |
{ | |
[JsonProperty("column1")] | |
public TCol1 Column1 { get; set; } |