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
| $i = 1 | |
| Get-ChildItem *.sql | %{Rename-Item $_ -NewName ('SomeFileName_{0:D2}.sql' -f $i++)} |
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
| for($i=1; $i -le 5; $i++) { mkdir "TEMP$i" } |
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
| {"lastUpload":"2020-02-28T11:13:17.567Z","extensionVersion":"v3.4.3"} |
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
| //https://stackoverflow.com/a/290265/1397858 | |
| private static readonly DateTime Jan1st1970 = new DateTime | |
| (1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); | |
| public static long CurrentTimeMillis() | |
| { | |
| return (long) (DateTime.UtcNow - Jan1st1970).TotalMilliseconds; | |
| } |
// throws System.FormatException
var number = int.Parse(" 1,000 ");
// parses into 1000
var number = int.Parse(" 1,000 ", System.Globalization.NumberStyles.AllowThousands | System.Globalization.NumberStyles.AllowLeadingWhite | System.Globalization.NumberStyles.AllowTrailingWhite);source: https://codewithshadman.com/csharp-number-and-datetime-tips
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
| void Logit(int step, object ob, string location) | |
| { | |
| if (string.IsNullOrWhiteSpace(location)) | |
| location = $"Debug Session {DateTime.Now.Date.ToString("yyyyMMdd")}"; | |
| Log.Fatal($"{location}: {step}, {Newtonsoft.Json.JsonConvert.SerializeObject(ob)}"); | |
| } |
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
| <html> | |
| <head> | |
| <!-- <title></title> --> | |
| <!-- <script src=""></script> --> | |
| <!-- <style></style> --> | |
| <!-- <link rel="stylesheet" type="text/css" href=""> --> | |
| </head> | |
| <body> |
OlderNewer