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
// http://stackoverflow.com/questions/3404421/password-masking-console-application | |
private string ReadLineWithMask() | |
{ | |
string pass = ""; | |
ConsoleKeyInfo key; | |
do | |
{ | |
key = Console.ReadKey(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
// Inspired by http://www.dib0.nl/code/458-a-spinner-for-console-in-net | |
public class ConsoleSpinner | |
{ | |
/// <summary> | |
/// Displays a text spinner and ellipses until a task completes. | |
/// </summary> | |
/// <param name="task">Task to watch for completion</param> | |
/// <param name="description">Description of the work - single word</param> | |
public static void UntilTaskComplete(Task task, string description = "work") | |
{ |
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 |
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; | |
using System.Collections.Specialized; | |
using System.Linq; | |
using Xamarin.Forms; | |
namespace WrapPanelDemo.Controls | |
{ | |
public class AwesomeWrappanel : Layout<View> | |
{ |