Skip to content

Instantly share code, notes, and snippets.

View OpportunityLiu's full-sized avatar
🎯
Focusing

Opportunity OpportunityLiu

🎯
Focusing
View GitHub Profile
@OpportunityLiu
OpportunityLiu / Strings.tt
Last active September 21, 2016 07:29
A T4 templete to generate helper classes for fetching .resw string resources
<#@ template debug="false" hostspecific="true" language="C#" #>
<#@ assembly name="System.Core" #>
<#@ assembly name="System.Xml" #>
<#@ assembly name="System.Web" #>
<#@ assembly name="EnvDTE" #>
<#@ import namespace="System.Linq" #>
<#@ import namespace="System.Text" #>
<#@ import namespace="System.Collections.Generic" #>
<#@ import namespace="System.IO" #>
<#@ import namespace="System.Xml" #>
@OpportunityLiu
OpportunityLiu / HtmlHelper.cs
Last active February 19, 2018 16:31
Extension methods for HtmlAgilityPack
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HtmlAgilityPack
{
internal static class HtmlHelper
{
@OpportunityLiu
OpportunityLiu / example.tex
Created August 9, 2018 06:00
Gist Example
行内公式:$\sin{x}$
行间公式::arrow_left: ==注意行间公式需要**独行书写**==
$$ \sum_{i=1}^n a_i=0 $$
... :arrow_left: ==同理,行间公式结束后也需要换行==
@OpportunityLiu
OpportunityLiu / rm-disp-context.ps1
Created February 8, 2019 10:38
Remove intel and nvidia settings in desktop context menu
rm HKLM:\SOFTWARE\Classes\Directory\background\shellex\ContextMenuHandlers\igfxDTCM -ErrorAction Continue
rm HKLM:\SOFTWARE\Classes\Directory\background\shellex\ContextMenuHandlers\NvCplDesktopContext -ErrorAction Continue