Skip to content

Instantly share code, notes, and snippets.

@myericho
myericho / TempGetStateItem3.sql
Created January 4, 2018 04:03 — forked from darrenkopp/TempGetStateItem3.sql
Scripts to optimize the ASPState database.
ALTER PROCEDURE [dbo].[TempGetStateItem3]
@id tSessionId,
@itemShort tSessionItemShort OUTPUT,
@locked bit OUTPUT,
@lockAge int OUTPUT,
@lockCookie int OUTPUT,
@actionFlags int OUTPUT
AS
DECLARE @textptr AS tTextPtr, @length AS int, @extendExpiration bit, @now AS datetime = GETUTCDATE();
@myericho
myericho / ExtendMemberType.ts
Created September 8, 2017 20:45 — forked from Ticore/ExtendMemberType.ts
TypeScript - extend member type via generic and type intersection
// 利用 TypeScript Generic & Type Intersection 擴充成員資料定義
/**
* Base Class 宣告 obs 成員,且用泛型擴充 obs 型別定義
*/
class Base<T extends {}> {
obs: {} & T = <T>{};
}
@myericho
myericho / SassMeister-input-HTML.html
Created November 25, 2015 07:12
Generated by SassMeister.com.
<a>testetest</a>
<div>test</div>
<ul>
<li class='top'>gggg</li>
<li>第2個</li>
</ul>