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
<Query Kind="Program"> | |
<Namespace>LINQPad.Controls</Namespace> | |
<Namespace>System.Threading.Tasks</Namespace> | |
</Query> | |
#define YOLO_NO_CONFIRM | |
void Main() | |
{ | |
Util.AutoScrollResults = false; |
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 static class PointExtensions | |
{ | |
public static Point CenterOffset(this Point p, Size region) | |
{ | |
return new Point(p.X - region.Width / 2, p.Y - region.Height / 2); | |
} | |
} | |
public static class ImageExtensions | |
{ | |
public static Bitmap ScaleUp(this Bitmap image, int scale) |
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
<Query Kind="Program"> | |
<Reference><RuntimeDirectory>\System.IO.Compression.dll</Reference> | |
<Reference><RuntimeDirectory>\System.IO.Compression.FileSystem.dll</Reference> | |
<Reference><RuntimeDirectory>\WPF\PresentationFramework.dll</Reference> | |
<Reference><RuntimeDirectory>\System.Xaml.dll</Reference> | |
<Reference><RuntimeDirectory>\wpf\WindowsBase.dll</Reference> | |
<Reference><RuntimeDirectory>\wpf\PresentationCore.dll</Reference> | |
<Reference><RuntimeDirectory>\System.Configuration.dll</Reference> | |
<Reference><RuntimeDirectory>\wpf\UIAutomationProvider.dll</Reference> | |
<Reference><RuntimeDirectory>\wpf\UIAutomationTypes.dll</Reference> |
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
<Query Kind="Statements"> | |
<Reference><RuntimeDirectory>\System.Net.Http.dll</Reference> | |
<NuGetReference>Newtonsoft.Json</NuGetReference> | |
<Namespace>System.Drawing</Namespace> | |
<Namespace>System.Net.Http</Namespace> | |
</Query> | |
var source = "https://images.discordapp.net/.eJwNyFEOgyAMANC7cAA6LZbqbQgSJFFLaJd9LLv7fJ_v697jdJs7zLpuAHvTLGP3ajJSLb6K1LOk3tRnuSCZpXxc5TaFeY08IYeAExISU3iKMTIv9IpICz8Jn9Z9v6v7_QF_uiFA.o-3SRpCgiqN-u8fJNYzhi-0pRc4"; | |
var client = new HttpClient(); | |
var stream = await client.GetStreamAsync(source); |
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
<Query Kind="Program"> | |
<Reference><RuntimeDirectory>\Microsoft.VisualBasic.dll</Reference> | |
<Reference><RuntimeDirectory>\mscorlib.dll</Reference> | |
<Reference><RuntimeDirectory>\System.dll</Reference> | |
<GACReference>CustomMarshalers, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</GACReference> | |
<GACReference>System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</GACReference> | |
<NuGetReference>SAP.GUI.Scripting.net</NuGetReference> | |
<Namespace>Microsoft.VisualBasic</Namespace> | |
<Namespace>sapfewse</Namespace> | |
<Namespace>saprotwr.net</Namespace> |
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
#region namespace Xy.ExcelMigration | |
namespace Xy.ExcelMigration | |
{ | |
using System.ComponentModel.DataAnnotations.Schema; | |
using Xy.Office.ExcelExtensions; | |
using Excel = Microsoft.Office.Interop.Excel; | |
public interface IExistingColumnAction | |
{ |
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; | |
using System.Collections.Generic; | |
namespace Humanizer.Localisation.NumberToWords | |
{ | |
internal class FrenchNumberToWordsConverter : GenderedNumberToWordsConverter | |
{ | |
private static readonly string[] UnitsMap = { "zéro", "un", "deux", "trois", "quatre", "cinq", "six", "sept", "huit", "neuf", "dix", "onze", "douze", "treize", "quatorze", "quinze", "seize", "dix-sept", "dix-huit", "dix-neuf" }; | |
private static readonly string[] TensMap = { "zéro", "dix", "vingt", "trente", "quarante", "cinquante", "soixante", "soixante-dix", "quatre-vingt", "quatre-vingt-dix"}; |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>Define a RxIU Property</Title> | |
<Shortcut>rxprop</Shortcut> | |
<Description>RxIU Property</Description> | |
<Author>Xiaoy312</Author> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>param (XML Documentation Tag : param)</Title> | |
<Shortcut>param</Shortcut> | |
<Description>param tag</Description> | |
<Author>Xiaoy312</Author> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>Define a DependencyProperty</Title> | |
<Shortcut>dpprop</Shortcut> | |
<Description>Dependency Property</Description> | |
<Author>Xiaoy312</Author> | |
</Header> | |
<Snippet> |