CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of rat
SQL
 
 
 
 /*************************************************************************************
  *
  *        Copyright 2012 Davide Orazio Montersino http://www.davidemontersino.com
  *
  *        This program is free software: you can redistribute it and/or modify
  *        it under the terms of the GNU General Public License as published by
  *        the Free Software Foundation, either version 3 of the License, or
by Davide Orazio Montersino   January 10, 2012 @ 2:19am
27 Views
no comments
 
C#
[Flags]
 public enum ApprovalStatusType
 {
     [Display(Description = "In Progress")]
     InProgress = 1,
     [Display(Description = "Pending Review")]
     PendingReview = 2,
     [Display(Description = "Need Changes")]
     NeedChanges = 4,
     [Display(Description = "Finished")]
by Domantas   October 31, 2011 @ 3:31am
36 Views
no comments
 
C++
// Copyright Krzysztof Czainski 2011
// Distributed under the Boost Software License, Version 1.0.
//    (See accompanying file LICENSE_1_0.txt or copy at
//          http://www.boost.org/LICENSE_1_0.txt)
 
/**
 * @file cz/boost/utility/safe_bool.hpp
 * Introduction by Vladimir Batov:
 * An implicit conversion to bool (operator bool() const) is very much
 * idiomatic and is often deployed in constructs like "if (foo)" and "if (!foo)"
160 Views
no comments
 
C#
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Web.Mvc;
using Microsoft.Practices.EnterpriseLibrary.Validation;
 
namespace Thoughtology.Web.Mvc
{
    /// <summary>
    /// Maps a browser request to a data object and provides validation
by Enrico Campidoglio   May 23, 2011 @ 3:49am
241 Views
no comments
 
<a href="http://drury.blog.sector.sk/blogclanok/8720/sector_awards_2010.htm"><img title="3. Najlepší nováčik za rok 2010" src="http://i.imgur.com/88lnc.png" alt="3. Najlepší nováčik za rok 2010" border="0"></a>
by Drury   December 26, 2010 @ 4:05am
122 Views
no comments
 
<a href="http://drury.blog.sector.sk/blogclanok/8720/sector_awards_2010.htm"><img title="2. Najväčší troll za rok 2010" src="http://i.imgur.com/z3Zq0.png" alt="2. Najväčší troll za rok 2010" border="0"></a>
<a href="http://drury.blog.sector.sk/blogclanok/8720/sector_awards_2010.htm"><img title="1. Najväčší flame soldier za rok 2010" src="http://i.imgur.com/fpTRG.png" alt="1. Najväčší flame soldier za rok 2010" border="0"></a>
<a href="http://drury.blog.sector.sk/blogclanok/8720/sector_awards_2010.htm"><img title="3. Člen, ktorému by ste nekúpili ani kofolu za rok 2010" src="http://i.imgur.com/Mji8Q.png" alt="3. Člen, ktorému by ste nekúpili ani kofolu za rok 2010" border="0"></a>
<a href="http://drury.blog.sector.sk/blogclanok/8720/sector_awards_2010.htm"><img title="2. Najpravdepodobnejšie skončí za mrežami za rok 2010" src="http://i.imgur.com/y0xkJ.png" alt="2. Najpravdepodobnejšie skončí za mrežami za rok 2010" border="0"></a>
<a href="http://drury.blog.sector.sk/blogclanok/8720/sector_awards_2010.htm"><img title="3. Užívateľ, ktorému by ste kúpili žiletku za rok 2010" src="http://i.imgur.com/eCxDz.png" alt="3. Užívateľ, ktorému by ste kúpili žiletku za rok 2010" border="0"></a>
by Drury   December 19, 2010 @ 6:38am
93 Views
no comments
 
C++
// Standard reference 24.2.2
// The following code defines the concept "Iterator"
// The concept is uaary with a single type parameter called "X"
// The "using" argument here specifies that "Iterator" is a refinement of the
// previously defined concepts "CopyAssignable", "CopyConstructible",
// "Destructible", and "Swappable".
// The "for typedef" argument is a convenience argument that lets the programmer
// create a simple alias for a more complicated type name. This alias is only for
// use when calling the macro to simplify the specification of further
// requirements.
by Matt Calabrese   November 09, 2010 @ 2:18pm
258 Views
no comments
 
C#
using System.IO;
using System.Text;
using Ninject;
using NUnit.Framework;
using Should.Extensions.AssertExtensions;
 
namespace ninject.configurer.tests
{
    public class GreeterConfig
    {
by Andy Sherwood   October 28, 2010 @ 2:19pm
172 Views
no comments
 
C#
using System;
using System.Collections.Specialized;
using System.Configuration;
using Ninject.Modules;
 
namespace Cirrostrata.NinjectConfigurator
{
    public interface IConfigurableNinjectModule : INinjectModule
    {
        IConfigurationSyntax Configure<T>();
by Andy Sherwood   October 26, 2010 @ 11:16am
255 Views
no comments
 
#If DEBUG = False Then
<Obsolete("This class/method is a stub and should not be in production.", True)> _
Public Class StubAttribute
#Else
<Obsolete("This class/method is a stub and should not be in production.", False)> _
Public Class StubAttribute
#End If
    Inherits Attribute
 
    Private _value As String
by Aron Tsang   September 07, 2010 @ 1:54am
159 Views
no comments
 
#If DEBUG Then
    <Obsolete("This should not be in production", False)> _
    Public Sub BreakBuildIfIsNotDebug()
 
    End Sub
#Else
       <Obsolete("This should not be in production", True)> _
    Public Sub BreakBuildIfIsNotDebug()
 
    End Sub
by Aron Tsang   September 06, 2010 @ 10:00am
213 Views
1 comments
 
C#
public static PerpetualEnumerator<T> GetPerpetualEnumerator<T>(this IEnumerable<T> items)
{
    return new PerpetualEnumerator<T>(items);
}
277 Views
no comments
 
C#
using System.Collections;
using System.Collections.Generic;
 
namespace nl4net
{
    /// <summary>
    /// Wraps a standard IEnumerator&lt;T&gt; to provide
    /// iteration over a generic collection that automatically 
    /// resets to the beginning once it reaches the end.
    /// </summary>
by Al Gonzalez   June 17, 2010 @ 9:08pm
182 Views
no comments
 
C#
// Define a list by enclosing the item type in brackets [int]
// and initialize its value.
 
Scores : [int] = [ 92, 100, 85, 62, 81, 100 ];
 
// Option A
 
// require the stream type to be specified on a property
PassingScores : int*
{
by Dan Vanderboom   June 16, 2010 @ 1:07pm
234 Views
no comments
 
XML
<PropertyGroup>
    <SolutionRootDir>$(MSBuildProjectDirectory)\..</SolutionRootDir>
    <ApplicationName>MyApp</ApplicationName>
    <WebApplicationName>$(ApplicationName).Web</WebApplicationName>
    <MSBuildCommunityTasksPath>$(SolutionRootDir)\BuildScripts\MSBuildCommunityTasks</MSBuildCommunityTasksPath>
    <WebProject>$(SolutionRootDir)\$(WebApplicationName)\$(WebApplicationName).csproj</WebProject>
    <PackageDir>$(SolutionRootDir)\Package</PackageDir>
    <Configuration>Release</Configuration>
  </PropertyGroup>
by Petter Wigle   May 09, 2010 @ 3:25am
404 Views
no comments
 
XML
<PropertyGroup>
    <SolutionRootDir>$(MSBuildProjectDirectory)\..</SolutionRootDir>
    <ApplicationName>MyApp</ApplicationName>
   <Version>0.0.1.0</Version>
    <Company>Active Solution AB</Company>
    <Copyright>Copyright © Active Solution AB 2010</Copyright>
</PropertyGroup>
<PropertyGroup Condition="'$(BUILD_NUMBER)' != ''">
    <Version>$(BUILD_NUMBER)</Version>
</PropertyGroup>
by Petter Wigle   May 09, 2010 @ 3:13am
810 Views
1 comments
 
C#
namespace Nowcom.Quicksilver.Patterns
{
    using System;
 
    public class Strategy<T,V>
    {
        public Predicate<T> Condition { get; private set; }
        public Func<T, V> Result { get; private set; }
 
        public Strategy(Predicate<T> condition, Func<T, V> result)
by Robert Kozak   April 21, 2010 @ 12:33pm
876 Views
no comments
 
C#
<#@ template language="C#v3.5" hostspecific="True" debug="True" #> 
<#@ output extension="cs" #>
<#@ assembly name="Microsoft.SqlServer.ConnectionInfo" #>
<#@ assembly name="Microsoft.SqlServer.SqlEnum" #>
<#@ assembly name="Microsoft.SqlServer.Smo" #>
<#@ assembly name="System.Data" #>
<#@ assembly name="System.Core.dll" #>
<#@ import namespace="System.Linq" #>
<#@ import namespace="Microsoft.SqlServer.Management.Smo" #>
<#@ import namespace="Microsoft.SqlServer.Management.Common" #>
by Rob   March 19, 2010 @ 12:44pm
400 Views
no comments
 
C#
[System.ServiceModel.ServiceContractAttribute(ConfigurationName = "Organization.MockApp.Bus.IMockService")]
internal class MockService : IMockService, Organization.Enterprise.ServiceChannelAdapter<Organization.MockApp.Bus.Async.IMockService>, Organization.MockApp.Bus.Async.IMockService
{
        public MockService(Organization.Enterprise.IExceptionManager exceptionManager, Organization.Enterprise.IChannelResolver channelResolver, Organization.Enterprise.IChannelRegistrar channelRegistrar) : base(exceptionManager, channelResolver, channelRegistrar)
        {
            
        }
 
        new public protected internal private abstract sealed static virtual override extern readonly volatile ref out params assembly field event method param property return type module partial unsafe fixed object CreateEntity(object entity);
        new public protected internal private abstract sealed static virtual override extern readonly volatile ref out params assembly field event method param property return type module partial unsafe fixed System.IAsyncResult BeginCreateEntity(object entity, System.AsyncCallback callback, object asyncState);
by Michael Smith   February 24, 2010 @ 4:42pm
153 Views
no comments
 
C#
using System;
using System.Collections.Specialized;
using System.Web;
using System.IO;
 
namespace ConfigFileExample.Services
{
    public interface IConfigurationManager
    {
        NameValueCollection AppSettings { get; }
by Bob Cravens   February 03, 2010 @ 2:46pm
501 Views
2 comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate