using System.IO;
string userProfile = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
// output : C:\Users\robin
string myDocuments = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
// output : C:\Users\robin\Documents
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.IO; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.AspNetCore.Http.Internal; | |
using Microsoft.IO; | |
// https://exceptionnotfound.net/using-middleware-to-log-requests-and-responses-in-asp-net-core/ | |
// https://gist.github.com/elanderson/c50b2107de8ee2ed856353dfed9168a2 |
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; | |
public class Program | |
{ | |
private const string VCHAR = "0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z"; | |
private const string VNUM = "0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9"; | |
public static void Main() | |
{ | |
Console.WriteLine(RndNum(16)); |
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.Configuration; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Net.Http; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using System.Windows.Forms; | |
namespace SevenStarCollect.Update |
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
#SingleInstance force ; 重新启动该文件会加载修改过的.ahk文件 | |
; auther LC | |
; 重映射Thinkpad 4X30K12182 蓝牙键盘的功能键为F1 ~ F12 | |
; remap Thinkpad 4X30K12182 blue tooth keyborad Fn keys to F1 ~ F12 ; | |
; save this file as thinkpadRemap.ahk and install autohotkey to run it | |
; 不想重映射哪个按键就在那一行前面加一个分号 |
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
codesmith连接Mysql提示“找不到请求的 .Net Framework Data Provider。可能没有安装" |
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
#=========================== Filebeat inputs ============================= | |
filebeat.inputs: | |
- type: log | |
enabled: true | |
fields: | |
_recharge_api: true | |
paths: |
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
marquee | |
marquee是已经废弃、过时的标签,不推荐使用!在Chrome不同版本中有很多bug,如,Chrome45.0中动画执行完总是需要点一下页面才能继续, | |
最新版的Chrome52.0则没有这个问题。 | |
虽然已经过时,有时候还是不得已用到,这里简单对几个属性做一下介绍。 | |
behavior : 可用的值为scroll(滚动)、slide(滑动)、alternate(改变,类似于光学的反射路径),如果没有指定值,默认是scroll | |
direction : 设置方向,可用的值为left、right、up、down,如果没有指定值,默认是left | |
scrollamount : 控制速度 |
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.Text; | |
using System.IO; | |
namespace ConsoleApp | |
{ | |
// 将 UTF-8 Bom 转换为 UTF-8 的几种方法 | |
class Program | |
{ |
[Serializable]
public class PrizeDetail:ICloneable
{
public string Id { get; set; }
/// <summary>
/// 奖品名称
/// </summary>
public string PrizeName { get; set; }
/// <summary>
NewerOlder