This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // To use, just do something like : | |
| // ViewBag.Stats = GetClicks(context); | |
| private static List<Stats> GetClicks(AppContext context) | |
| { | |
| var result = new List<Stats>(); | |
| results.Add(GetStats(context, Period.Week)) | |
| results.Add(GetStats(context, Period.Month)) | |
| results.Add(GetStats(context, Period.Today)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void Main() | |
| { | |
| var result = GetStatusMessage(40); | |
| } | |
| struct Pair<T, V> | |
| { | |
| public T Key; | |
| public V Value; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <#@ template language="C#" debug="true" hostspecific="true" #> | |
| <#@ output extension=".d.ts" #> | |
| <#@ assembly name="System.Core" #> | |
| <#@ assembly name="Microsoft.VisualStudio.Shell.Interop.8.0" #> | |
| <#@ assembly name="EnvDTE" #> | |
| <#@ assembly name="EnvDTE80" #> | |
| <#@ import namespace="System.Collections.Generic" #> | |
| <#@ import namespace="System.Linq" #> | |
| <#@ import namespace="System.Text" #> | |
| <#@ import namespace="EnvDTE" #> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Sub GetSublimeTextKeyBindings() | |
| Dim cmd As Command | |
| Dim ow As OutputWindow = DTE.Windows.Item(Constants.vsWindowKindOutput).Object | |
| Dim owp As OutputWindowPane | |
| Dim exists As Boolean | |
| Dim i As Integer | |
| Dim sArray() As String | |
| Dim dict As New System.Collections.Generic.Dictionary(Of String, String)() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace CSI.ESS.ServiceModel.Contracts | |
| { | |
| using System; | |
| using System.ComponentModel; | |
| using System.Runtime.InteropServices; | |
| using System.Security.Principal; | |
| /// <summary> | |
| /// This class manages the creation of an impersonation to the Application | |
| /// Pool's context for a defined scope. |
NewerOlder