Skip to content

Instantly share code, notes, and snippets.

View kkbruce's full-sized avatar
🆚
Coding for fun

Bruce Chen kkbruce

🆚
Coding for fun
View GitHub Profile
@dinowang
dinowang / Order.cs
Last active November 13, 2019 03:08
ASP.NET MVC QueryOption<T> implementation. depend on PagedList, PagedList.Mvc.
public enum Order
{
Ascending,
Descending
}
@yorkxin
yorkxin / rfc6749.md
Last active April 6, 2022 11:54
RFC 6749 in Markdown - Edited from http://tools.ietf.org/rfc/rfc6749.txt
Internet Engineering Task Force (IETF)                     D. Hardt, Ed.
Request for Comments: 6749                                     Microsoft
Obsoletes: 5849                                             October 2012
Category: Standards Track
ISSN: 2070-1721

The OAuth 2.0 Authorization Framework

Abstract

@yorkxin
yorkxin / rfc6750.md
Created September 17, 2013 07:54
RFC 6750 in Markdown - Edited from http://tools.ietf.org/rfc/rfc6750.txt
Internet Engineering Task Force (IETF)                          M. Jones
Request for Comments: 6750                                     Microsoft
Category: Standards Track                                       D. Hardt
ISSN: 2070-1721                                              Independent
                                                            October 2012

The OAuth 2.0 Authorization Framework: Bearer Token Usage

Abstract

@edokeh
edokeh / index.js
Last active October 26, 2024 12:35
佛祖保佑,永无 BUG
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \
@dinowang
dinowang / MultipleXmlDocumentationProvider.cs
Last active July 30, 2019 09:59
ASP.NET Web API Help Pages 目前還不支援處理主要專案 (通常是 web 專案) 以外的 XML 註解檔 , 所以若專案中有獨立 DTO 專案的設計 , Help Pages 無法順利呈現出內容於說明文件上 , 這裡參考了 StackOverflow 討論串 ( http://goo.gl/Jb1Un3 ) 的替代方案以解決燃眉之急 ; 另外 , Web API Team 也已經接受了開發者的建議 , 準備提供多個 XML Documentation 的解決方案 , 參考:http://aspnetwebstack.codeplex.com/workitem/1720
public class MultipleXmlDocumentationProvider : IDocumentationProvider, IModelDocumentationProvider
{
// 多個 XPathNavigator
private IList<XPathNavigator> _documentNavigators = new List<XPathNavigator>();
private const string TypeExpression = "/doc/members/member[@name='T:{0}']";
private const string MethodExpression = "/doc/members/member[@name='M:{0}']";
private const string PropertyExpression = "/doc/members/member[@name='P:{0}']";
private const string FieldExpression = "/doc/members/member[@name='F:{0}']";
private const string ParameterExpression = "param[@name='{0}']";
@dinowang
dinowang / AdBanner.html
Last active November 28, 2015 14:58
ScriptalizedOutputAttribute
<ul>
<li></li>
<li></li>
</ul>
@doggy8088
doggy8088 / 01 體驗容器生命週期.bat
Last active May 14, 2019 02:25
迎接嶄新的Windows容器叢集架構:Kubernetes - 演講過程示範的命令 ( #Study4Love ) - http://bit.ly/study4love-k8s-windows
REM 建立容器
docker run --name myc -it microsoft/windowsservercore cmd
REM 列出容器 (執行中的容器)
docker ps
REM 列出容器 (所有的的容器)
@davidfowl
davidfowl / MinimalAPIs.md
Last active October 24, 2024 13:39
Minimal APIs at a glance