I hereby claim:
- I am tocsoft on github.
- I am tocsoft (https://keybase.io/tocsoft) on keybase.
- I have a public key whose fingerprint is 54AE 557F 361C AF97 BF20 A75B BF04 E060 7DB9 74C7
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
public class Threads : IThreads | |
{ | |
public bool DisableThreadSwitching { get; set; } = false; | |
/// <summary> | |
/// await this and continuing code will run on a background thread | |
/// </summary> | |
/// <returns></returns> | |
public IThreadSwitcher SwitchToBackgroundThread() | |
{ |
// <copyright file="GeneralFormatTests.cs" company="James Jackson-South"> | |
// Copyright (c) James Jackson-South and contributors. | |
// Licensed under the Apache License, Version 2.0. | |
// </copyright> | |
namespace ImageSharp.Tests | |
{ | |
using System; | |
using System.IO; | |
using System.Numerics; |
using System; | |
using System.Collections.Generic; | |
using System.Numerics; | |
using ImageSharp; | |
using SixLabors.Shapes; | |
namespace ConsoleApplication | |
{ | |
public class Program | |
{ |
// when window width > 600px then #menu will be hidden | |
@media screen and (min-width: 600px) { | |
#menu{ | |
visibility: hidden; | |
display: none; | |
} | |
} | |
namespace ImageSharp.Tests | |
{ | |
using System; | |
using ImageSharp; | |
using Xunit; | |
/// <summary> | |
/// Class to perform simple image comparisons. | |
/// </summary> | |
public static class ImageComparer |
private void DrawText(Graphics graphics) | |
{ | |
using(Font font = new Font("Arial", 20, FontStyle.Regular, GraphicsUnit.Pixel)) | |
{ | |
// draw string as text without transformation | |
using(Brush brush = new SolidBrush(Color.Blue)) | |
graphics.DrawString("Draw as text without transformation", font, brush, new PointF(10,10)); | |
// draw string as text with transformation | |
GraphicsContainer container = graphics.BeginContainer(); |
using Microsoft.CSharp.RuntimeBinder; | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Dynamic; | |
using System.Linq; | |
using System.Runtime.CompilerServices; | |
using System.Text; | |
using System.Threading.Tasks; |
$install = $true | |
if (Test-Path -Path $PROFILE) { | |
$title = 'Profile already exists, we are about to over write it with the one github' | |
$question = 'Are you sure you want to proceed?' | |
$choices = '&Yes', '&No' | |
$decision = $Host.UI.PromptForChoice($title, $question, $choices, 1) | |
if ($decision -ne 0) { | |
$install = $false | |
} |