Skip to content

Instantly share code, notes, and snippets.

View j717273419's full-sized avatar

Jackdon Wang j717273419

View GitHub Profile
@j717273419
j717273419 / Chocolaty_Batch_Install_Apps_PowerShell_Script.ps1
Created May 9, 2023 08:13
windows 11 使用Chocolatey批量安装app powershell脚本
#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
@j717273419
j717273419 / WinGet_Batch_Install_Apps_PowerShell_Script.ps1
Last active May 9, 2023 11:18
WinGet_Batch_Install_Apps_PowerShell_Script
#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开源版
@j717273419
j717273419 / git-proxy-description
Created March 23, 2021 13:36
中国大陆无法使用git正常下载提交代码到github的解决方案--代理Proxy
中国大陆无法使用git正常下载提交代码到github的解决方案--代理Proxy
1。查看当前git设置的代理
git config --global --get-regexp http.*
如果无结果返回,说明没有设置。请参考3.
如果返回了结果,类似如下所示
http.proxy socks5://127.0.0.1:8087
using System;
namespace RsaKeyConverter.Converter
{
public static class BytesExtensions
{
public static string ToBase64(this byte[] bytes)
{
return Convert.ToBase64String(bytes);
}
@j717273419
j717273419 / Program.cs
Last active April 18, 2019 02:57
csharp_in_try_dot_net
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
public class Program
{
@j717273419
j717273419 / csharp_in_try_dot_net.cs
Created April 18, 2019 02:49
test c# code run in try.dot.net
using System;
using System.Linq;
namespace FibonacciTest
{
public class Program
{
public static void Main()
{
Console.WriteLine("Welcome to Try.dot.net");
using System.Collections.Generic;
namespace FibonacciTest
{
public static class FibonacciGenerator
{
public static IEnumerable<int> Fibonacci()
{
int current = 1, next = 1;
while (true)
@j717273419
j717273419 / Program.cs
Last active April 18, 2019 03:00
c# use named tuple
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public class Program
{
public static void Main()
@j717273419
j717273419 / EnumHelper.cs
Created August 28, 2018 03:56 — forked from jpoehls/EnumHelper.cs
Enum Helper
using System;
namespace Samples
{
public static class EnumHelper
{
public static string GetDescription(this Enum value)
{
if (value == null)
{
@j717273419
j717273419 / re.py
Created April 16, 2017 15:29 — forked from dervn/re.py
Python中过滤HTML标签的函数
#用正则简单过滤html的<>标签
import re
str = "<img /><a>srcd</a>hello</br><br/>"
str = re.sub(r'</?\w+[^>]*>','',str)
print str