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; | |
namespace Sometimes | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
// Farting about with a .NET-esque toy version of sometimes.rb... | |
5.To(10).Times(() => Console.WriteLine("This'll get annoying")); |
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 CloudTableProxy | |
{ | |
CloudTable _table; | |
public CloudTableProxy(CloudTable table) | |
{ | |
_table = table; | |
} | |
public virtual string Name { get { return _table.Name; } } |
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
/// <summary> | |
/// A JsonConverter that respects the Name property of DataMember attributes | |
/// applied to enumeration members, falling back to the enumeration member | |
/// name where no DataMember attribute exists (or where a name has not | |
/// been supplied). Entirely experimental, use at your own risk. | |
/// | |
/// Paul O'Neill, [email protected], 31/07/13 | |
/// </summary> | |
public class DataMemberAwareEnumJsonConverter : JsonConverter | |
{ |
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
/// <summary> | |
/// A JsonConverter that respects the Name property of DataMember attributes | |
/// applied to enumeration members, falling back to the enumeration member | |
/// name where no DataMember attribute exists (or where a name has not | |
/// been supplied). Entirely experimental, use at your own risk. | |
/// | |
/// Paul O'Neill, [email protected], 31/07/13 | |
/// </summary> | |
public class DataMemberAwareEnumJsonConverter : JsonConverter | |
{ |
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
require_once('/var/www/resources/MiiCard/miiCard.Consumers/miiCard.Consumers.php'); | |
if (session_id() == "") | |
{ | |
session_start(); | |
} | |
$miiCardObj = new Consumers\MiiCard(MIICARD_CONSUMER_KEY, MIICARD_CONSUMER_SECRET, null, null, null, MIICARD_FORCE_CLAIMS, MIICARD_SIGNUP_MODE); | |
if ($miiCardObj->isAuthorisationCallback()) | |
{ |
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
psake version 4.2.0 | |
Copyright (c) 2010 James Kovacs | |
Executing Clean-Solution-NoVS | |
Microsoft (R) Build Engine version 4.6.1586.0 | |
[Microsoft .NET Framework, version 4.0.30319.42000] | |
Copyright (C) Microsoft Corporation. All rights reserved. | |
Executing Build-Solution-NoVS | |
Microsoft (R) Build Engine version 4.6.1586.0 |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 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
Item | |
Wooden Plank | |
Stick | |
Torch | |
Crafting Table | |
Furnace | |
Chest | |
Wood Pickaxe | |
Stone Pickaxe | |
Iron Pickaxe |
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
MERGE (n:Resource{name:"Wooden Plank"}); | |
MERGE (n:Resource{name:"Stick"}); | |
MERGE (n:Resource{name:"Torch"}); | |
MERGE (n:Resource{name:"Crafting Table"}); | |
MERGE (n:Resource{name:"Furnace"}); | |
MERGE (n:Resource{name:"Chest"}); | |
MERGE (n:Resource{name:"Wood Pickaxe"}); | |
MERGE (n:Resource{name:"Stone Pickaxe"}); | |
MERGE (n:Resource{name:"Iron Pickaxe"}); | |
MERGE (n:Resource{name:"Gold Pickaxe"}); |
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
MERGE (n:Resource{name:"Wooden Plank"}); | |
MERGE (n:Resource{name:"Stick"}); | |
MERGE (n:Resource{name:"Torch"}); | |
MERGE (n:Resource{name:"Crafting Table"}); | |
MERGE (n:Resource{name:"Furnace"}); | |
MERGE (n:Resource{name:"Chest"}); | |
MERGE (n:Resource{name:"Wood Pickaxe"}); | |
MERGE (n:Resource{name:"Stone Pickaxe"}); | |
MERGE (n:Resource{name:"Iron Pickaxe"}); | |
MERGE (n:Resource{name:"Gold Pickaxe"}); |
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
MATCH (movie: Movie { title: 'Top Gun' })<-[acted_in: ACTED_IN]-(actor: Person) | |
WITH collect(distinct actor) + movie as nodes, collect(distinct acted_in) as relationships | |
CALL apoc.export.csv.data(nodes, [], 'nodes.csv', {}) YIELD file as nodefile | |
UNWIND relationships as relationship | |
CALL apoc.create.vRelationship(startNode(relationship), type(relationship), { title: relationship.title }, endNode(relationship)) YIELD rel | |
WITH collect(rel) as relationshipsAmended, nodefile | |
CALL apoc.export.csv.data([], relationshipsAmended, 'edges.csv', {}) YIELD file as edgefile | |
RETURN edgefile, nodefile |
OlderNewer