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
{ | |
"editor.formatOnPaste": true, | |
"editor.formatOnType": false, | |
"editor.formatOnSave": true, | |
"prettier.eslintIntegration": true, | |
"eslint.autoFixOnSave": true, | |
"eslint.enable": true, | |
"eslint.validate": [ | |
{ | |
"language": "html", |
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
while (ReadLine != null) | |
{ | |
if (condition) | |
{ | |
//1#读取并在别的文件写入 | |
while (ReadLine != null) | |
{ | |
if (condition) | |
{ | |
//2#读取并在别的地方写入 |
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
public class OnlineInfo | |
{ | |
private static readonly string CurrentSessionId = HttpContext.Current.Session.SessionID; | |
public static string CurrentUserName { get; set; } | |
/// <summary> | |
/// Key:SessionID,Value:UserName | |
/// </summary> | |
public static Dictionary<string, string> List |
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
// Unix time, which is defined as the number of seconds since midnight (UTC) on 1st January 1970. | |
// The latest version of .Net (v4.6) just added built-in support for Unix time conversions. That includes both to and from Unix time represented by either seconds or milliseconds. | |
// Unix time in seconds to DateTimeOffset: | |
// DateTimeOffset dateTimeOffset = DateTimeOffset.FromUnixTimeSeconds(1000); | |
// DateTimeOffset to Unix time in seconds: | |
// long unixTimeStampInSeconds = dateTimeOffset.ToUnixTimeSeconds(); | |
// Unix time in milliseconds to DateTimeOffset: | |
// DateTimeOffset dateTimeOffset = DateTimeOffset.FromUnixTimeMilliseconds(1000000); | |
// DateTimeOffset to Unix time in milliseconds: | |
// long unixTimeStampInMilliseconds = dateTimeOffset.ToUnixTimeMilliseconds(); |
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
@echo off | |
echo ======================================== | |
echo From Local to Vultr DataCenters Ping Tester | |
echo ======================================== | |
pause | |
echo= | |
echo 01 Tokyo | |
ping hnd-jp-ping.vultr.com -n 10 | |
echo= | |
echo ============================= |