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 Spectre.Console; | |
using Spectre.Console.Rendering; | |
var renderable = new Markup("[yellow]H[/]ello [blue]W[/]orld"); | |
foreach (var segment in SplitSegments(renderable)) | |
{ | |
AnsiConsole.Write(new SegmentRenderable(segment)); | |
Thread.Sleep(Random.Shared.Next(100, 500)); | |
} |
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 Ooui; | |
namespace MinimalOoui | |
{ | |
class Program | |
{ | |
static Element CreateUI() | |
{ |
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
#requires -version 2 | |
<# | |
.SYNOPSIS | |
<Overview of script> | |
.DESCRIPTION | |
<Brief description of script> | |
.PARAMETER <Parameter_Name> | |
<Brief description of parameter input required. Repeat this attribute if required> |
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
// | |
// UIAlertController+Utilities.h | |
// | |
// Created by valvoline on 18/12/14. | |
// Copyright (c) 2014 sofapps. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
@interface UIAlertController (Utilities) |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |