Skip to content

Instantly share code, notes, and snippets.

# Setup
1. Install NodeJS v10.x: https://nodejs.org
2. Install Typescript
a. Run the command: `npm install -g typescript`
3. Create an account on http://exercism.io
a. Install and configure client
query {
repo1: repository(owner: "foo", name: "bar") {
...repositoryName
}
repo2: repository(owner: "foo", name: "bar") {
...repositoryName
}
}
fragment repositoryName on Repository {
forkCount
class TestModelObject
{
public string StringField1 { get; set; }
public string StringField2 { get; set; }
public int IntField1 { get; set; }
public int IntField2 { get; set; }
}
[IntegrationTest]
public void Query_Repository_Select_Object_Fragment_Twice()
public class StatusOutputPathComparer : IComparer<string>
{
public static StatusOutputPathComparer Instance => new StatusOutputPathComparer();
public int Compare(string x, string y)
{
Guard.ArgumentNotNull(x, nameof(x));
Guard.ArgumentNotNull(y, nameof(y));
var xIsMeta = x.EndsWith(".meta");
@StanleyGoldman
StanleyGoldman / gist:256608f80f9ae4d77a41d02084f52463
Last active August 22, 2017 15:32
Logout after load bug diagnosis

Login & Logout immediately

170822-11:02:16 TRACE [ 1] <Keychain>                          SetCredentials Host:https://github.com/
170822-11:02:34 TRACE [ 1] <Keychain>                          SetToken Host:https://github.com/
170822-11:02:34 TRACE [ 1] <Keychain>                          Save: https://github.com/
170822-11:02:34 TRACE [ 1] <Keychain>                          WriteCacheToDisk Count:1 Path:C:\Users\Spade\AppData\Local\GitHubUnityDebug\connections.json
170822-11:02:34 TRACE [ 1] <GitCredentialManager>              Delete: https://github.com/
170822-11:02:34 TRACE [ 1] <GitCredentialManager>              Loading Credential Helper
170822-11:02:35 TRACE [ 1] <GitCredentialManager>              RunCredentialHelper helper:"wincred" action:"erase"
{
search(query: "language:C#", first: 3, type: REPOSITORY) {
edges {
node {
... on Repository {
name
languages(first:3){
nodes{
name
}
@StanleyGoldman
StanleyGoldman / TestingOpenTerminalInBehavior.cs
Last active May 10, 2017 14:04
TestingOpenTerminalInBehavior
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using UnityEngine;
using System.Diagnostics;
using System.IO;
using System.Text;
public class NewBehaviourScript : MonoBehaviour
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace TestingOpenTerminal
{
internal class Program
{
public static void Main(string[] args)
{
@StanleyGoldman
StanleyGoldman / MainWindows.cs
Created March 31, 2017 18:28
Strange Unity bugfix
using UnityEngine;
using UnityEditor;
public class MyWindow : EditorWindow
{
string display1Field1 = "display1Field1";
string display1Field2 = "display1Field2";
string display2Field1 = "display2Field1";
string display2Field2 = "display2Field2";