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 void ButtonBase_OnClick(object sender, RoutedEventArgs e) | |
{ | |
// setup the wrapper code template. | |
var generatedCode = | |
"using LiveCodeExecutionExampleDemo;" + Environment.NewLine + | |
"public class Plugin" + Environment.NewLine + | |
"{" + Environment.NewLine + | |
" public void RunCode(AppModel app)" + Environment.NewLine + | |
" {" + Environment.NewLine + | |
$"{this.CodeEditor.Text}" + |
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
class GitData | |
{ | |
[string]$Folder | |
[string]$Branch | |
[int]$Modifications | |
[int]$Additions | |
[int]$Deletions | |
[int]$Untracked | |
[int]$Renamed | |
} |
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 Options | |
{ | |
[Option('o', nameof(vs_OutDir), Required = false, HelpText = "Specifies project out directory.")] | |
public string vs_OutDir | |
{ | |
get; set; | |
} | |
[Option('c', nameof(vs_ConfigurationName), Required = false, HelpText = "Specifies the configuration name.")] | |
public string vs_ConfigurationName |
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
/* | |
Copyright 2013 Christoph Gattnar | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software |
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 UnityEditor; | |
using UnityEngine; | |
public class TextAreaTabSupport : EditorWindow | |
{ | |
private int lastKBFocus = -1; | |
private string textA = string.Empty; |
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 UnityEditor; | |
using UnityEngine; | |
public class TextAreaTabSupport : EditorWindow | |
{ | |
private Vector2 scroll; |
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.Threading; | |
using UnityEditor; | |
/// <summary> | |
/// Provides a simulated multithreading manager for invoking callbacks on the main unity thread. | |
/// </summary> | |
public static class ContinuationManager |
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
// <copyright> | |
// Copyright (c) 2012 Codefarts | |
// All rights reserved. | |
// [email protected] | |
// http://www.codefarts.com | |
// </copyright> | |
namespace Codefarts.IdManager | |
{ | |
using System; |
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
/* | |
Sample use case ... | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var paths = new[] | |
{ | |
"assets/folder", | |
"assets/folder/filea.txt", |
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; | |
namespace GeneticAlgorithm | |
{ | |
/// <summary> | |
/// Genetic Algorithm class | |
/// </summary> | |
public class GA | |
{ | |
private double _totalFitness; |