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.Linq; | |
using System.Text; | |
using GenerationAssembly; | |
using Microsoft.CodeAnalysis; | |
using Microsoft.CodeAnalysis.CSharp.Syntax; | |
using Microsoft.CodeAnalysis.Text; | |
namespace CDD.Unit.Tests.SourceGenerators |
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 namespace System.Management.Automation | |
using namespace System.Management.Automation.Language | |
if ($host.Name -eq 'ConsoleHost') | |
{ | |
Import-Module PSReadLine | |
} | |
#Import-Module PSColors | |
#Import-Module posh-git | |
Import-Module -Name Terminal-Icons |
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
" Base Settings | |
set scrolloff=5 | |
set relativenumber | |
set showmode | |
set showcmd | |
set smartcase | |
set incsearch | |
set hlsearch |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Current TS File", | |
"type": "node", | |
"request": "launch", | |
"args": ["${relativeFile}"], | |
"runtimeArgs": ["--nolazy", "-r", "ts-node/register"], | |
"sourceMaps": true, |
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 String toggleStringCase(String str) { | |
var s = new StringBuilder(); | |
for (int i = 0; i < str.length(); i++) { | |
var c = toggleCase(str.charAt(i)); | |
s.append(c); | |
} | |
return s.toString(); | |
} |
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
{ | |
"Getter and setter for Java class fields": { | |
"prefix": "getset", | |
"body": [ | |
"public void set${1:field}(${2:type} value) {", | |
" this.${1/(.*)/${1:/downcase}/} = value;", | |
"}", | |
"public ${2} get${1}() {", | |
" return this.${1/(.*)/${1:/downcase}/};", | |
"}" |
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; | |
namespace Sandbox | |
{ | |
public interface IActivity | |
{ | |
void Execute(); | |
} |
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 Sandbox | |
{ | |
public class DbCommand | |
{ | |
private DbConnection _connection; | |
public string Command { get; set; } | |
public DbCommand(DbConnection connection, string command) |
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 Sandbox | |
{ | |
public abstract class DbConnection | |
{ | |
public string ConnectionString { get; set; } | |
public TimeSpan Timeout { get; set; } | |
public DbConnection(string connectionString) |
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; | |
namespace Sandbox | |
{ | |
public class Stack<T> | |
{ | |
private readonly List<T> _list = new List<T>(); | |
public void Push(T obj) |
NewerOlder