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
. ./script-library.ps1 | |
[console]::OutputEncoding = New-Object System.Text.UTF8Encoding | |
$mailboxName = "<mailboxname>" | |
$outlook = new-object -com outlook.application; | |
Write-ColorText -Green "[✓] Connected to Outlook" | |
$ns = $outlook.GetNameSpace("MAPI"); |
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
package main | |
import ( | |
"fmt" | |
"os" | |
"go/ast" | |
"go/format" | |
"go/parser" | |
"go/token" |
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 BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Running; | |
namespace ConsoleApp | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
BenchmarkRunner.Run<Driver>(); |
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
# | |
# Split a C# source file containing many classes, interfaces, etc, into one file per item | |
# | |
param( | |
# Specify the source C# file that should be burst into separate components | |
[Parameter(Mandatory=$true)] | |
[string] | |
$sourceFile, | |
# Specify the output folder for all the separated pieces |
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 System.Threading.Tasks; | |
namespace Demo | |
{ | |
enum OriginShow | |
{ |
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
# Word wrap function, return word wrapped version of passed string | |
function wrap-string($str, $length) | |
{ | |
if ($str.length -lt $length) | |
{ | |
return $str | |
} | |
# Holds the final version of $str with newlines | |
$strWithNewLines = "" |
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 System.Threading.Tasks; | |
namespace Immutable | |
{ | |
public struct PartyName | |
{ |
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 Immutable | |
{ | |
enum Qux { Qux1, Qux2 } | |
class Baz | |
{ | |
private Qux _qux; |