Format:
Recent snippets for: Jon Erickson
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server\100\Tools\Shell\FontAndColors\{A27B4E24-A735-4D1D-B8E7-9716E1E3D8E0}]
"Colorable item format version"=dword:00000008
"Plain Text Foreground"=dword:00e0e0e0
"Plain Text Background"=dword:00303030
"Plain Text FontFlags"=dword:00000000
"Selected Text Foreground"=dword:00000000
"Selected Text Background"=dword:00c0c0c0
"Selected Text FontFlags"=dword:00000000
565 Views
no comments
<CustomPatterns> <Pattern Severity="SUGGESTION"> <Comment>Use method Any()</Comment> <ReplacePattern>$seq$.Any()</ReplacePattern> <SearchPattern><![CDATA[$seq$.Count() > 0]]></SearchPattern> <Params /> <Placeholders> <ExpressionPlaceholder Name="seq" ExpressionType="System.Collections.IEnumerable" ExactType="False" /> </Placeholders> </Pattern>
570 Views
no comments
public static class CollectionExtensions { public static SelectList ToSelectList<T>(this IEnumerable<T> list, Func<T, string> value, Func<T, string> text) { return new SelectList(list.Select(x => new { Value = value(x), Text = text(x) }), "Value", "Text"); } public static SelectList ToSelectList<T>(this IEnumerable<T> list,
244 Views
no comments
// ==UserScript== // @name StackOverflow - Auto Upvote // @namespace StackOverflow // @include http://stackoverflow.com/questions/* // @include http://meta.stackoverflow.com/questions/* // @include http://serverfault.com/questions/* // @include http://superuser.com/questions/* // ==/UserScript== (function() {
265 Views
1 comments
using System; using System.Web.Mvc; using Castle.Components.Validator; using EZTrac.DependencyResolution; using EZTrac.ViewModels; using xVal.ServerSide; namespace EZTrac.Controllers.Attributes { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
192 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
