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
#windows 11 使用Chocolatey批量安装app powershell脚本 | |
# Create Date: 2023-05-09 | |
# Update Date: 2023-05-09 | |
# Author: Charlie Wang | |
# EMail: WangDongjie0101@163.com | |
#chocolatey可以批量安装软件,使用空格隔开。 | |
#如果觉得显示不直观,可以用反单引号` | |
$start = Get-Date |
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
#windows 11 使用WinGet批量安装app powershell脚本 | |
# Create Date: 2023-05-01 | |
# Update Date: 2023-05-09 | |
# Author: Charlie Wang | |
# EMail: 717273419@qq.com | |
$start = Get-Date | |
#vscode开源版 |
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
中国大陆无法使用git正常下载提交代码到github的解决方案--代理Proxy | |
1。查看当前git设置的代理 | |
git config --global --get-regexp http.* | |
如果无结果返回,说明没有设置。请参考3. | |
如果返回了结果,类似如下所示 | |
http.proxy socks5://127.0.0.1:8087 |
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; | |
namespace RsaKeyConverter.Converter | |
{ | |
public static class BytesExtensions | |
{ | |
public static string ToBase64(this byte[] bytes) | |
{ | |
return Convert.ToBase64String(bytes); | |
} |
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.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
public class Program | |
{ |
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.Linq; | |
namespace FibonacciTest | |
{ | |
public class Program | |
{ | |
public static void Main() | |
{ | |
Console.WriteLine("Welcome to Try.dot.net"); |
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.Collections.Generic; | |
namespace FibonacciTest | |
{ | |
public static class FibonacciGenerator | |
{ | |
public static IEnumerable<int> Fibonacci() | |
{ | |
int current = 1, next = 1; | |
while (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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
public class Program | |
{ | |
public static void Main() |
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; | |
namespace Samples | |
{ | |
public static class EnumHelper | |
{ | |
public static string GetDescription(this Enum value) | |
{ | |
if (value == null) | |
{ |
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
#用正则简单过滤html的<>标签 | |
import re | |
str = "<img /><a>srcd</a>hello</br><br/>" | |
str = re.sub(r'</?\w+[^>]*>','',str) | |
print str |
NewerOlder