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
| <# | |
| .SYNOPSIS | |
| Append creation date to folders | |
| .DESCRIPTION | |
| This script appends the creation date to a folders name in the ISO8601 format (yyyy-MM-dd) if it's not already named like this | |
| .PARAMETER rootDir | |
| Root directory where the renaming should start | |
| #> | |
| [CmdletBinding()] |
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.Text; | |
| var helloWorld = new HelloWorld(); | |
| helloWorld.WriteLine(Console.Out); | |
| /* Output: Hello, World! */ | |
| public sealed class HelloWorld:CursedQueue<char> { | |
| public HelloWorld() { | |
| _ = 'H'; _ = 'e'; _ = 'l'; _ = 'l'; _ = 'o'; _ = ','; _ = ' '; | |
| _ = 'W'; _ = 'o'; _ = 'r'; _ = 'l'; _ = 'd'; _ = '!'; |
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 readonly struct @object { | |
| private readonly object value; | |
| private @object(object value) => this.value = value; | |
| public bool HasValue => value != null; | |
| public object _ => value; | |
| public static implicit operator bool (@object value) => value.HasValue; | |
| public static implicit operator @object (int value) => new @object(value); |