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 CC
C#
/// <summary>
/// Creates the mail message.
/// </summary>
/// <param name="emailBody">The email body.</param>
/// <param name="maTo">The ma to.</param>
/// <param name="maFrom">The ma from.</param>
/// <param name="maBcc">The ma BCC.</param>
/// <param name="attachment">The attachment.</param>
/// <returns></returns>
public static MailMessage CreateMailMessage(string emailBody, string maTo, string maFrom, string maBcc, Attachment attachment)
by Prithvi Ramana A   December 22, 2011 @ 2:51am
49 Views
1 comments
 
C#
Rectangle m_Rectangle;
TranslateTransform m_Transform;
Microsoft.Devices.Sensors.Accelerometer m_Accelerometer;
 
public MainPage()
{
    InitializeComponent();
    Loaded += MainPage_Loaded;
    Unloaded += (s, e) => { m_Accelerometer.Stop(); };
}
by Jerry Nixon   December 13, 2011 @ 11:03am
277 Views
no comments
 
[CENTER][img]http://i54.tinypic.com/s47x1i.png[/img][color=#b7886d]
[FONT=georgia][COLOR=#b7886d][SIZE=7][color=#cbb3a7]#02;[/color][/size]
[SIZE=6]b o [COLOR=#cbb3a7][SIZE="4"]♥[/SIZE][/COLOR] l a u r e n[/SIZE][/COLOR][/FONT][/color]
[FONT=georgia][COLOR=#AD9F82][SIZE=1]WELCOME TO THE DOCCUBUS APPRECIATION THREAD.[/COLOR][/SIZE]
 
[SIZE="7"][B][COLOR="#AD9F82"]● ● ●[/COLOR][/B][/SIZE][/center]
 
[indent][indent][indent][indent][font=georgia][size=1]They were two girls who came from very different worlds. [COLOR=#cbb3a7][SIZE="2"]Bo Dennis[/SIZE][/color] is a succubus, a Fae creature who feeds on sexual energy. [COLOR=#cbb3a7][SIZE="2"]Lauren Lewis[/SIZE][/color] is a human doctor, who is owned by the Ash, the leader of the Light Fae. Bo had run away from home at the age of seventeen, after accidentally killing her first lover, and she'd always been unaware of the Fae world and who she was. Lauren grew up as a regular human, in an upper middle class family, but she found herself drawn to the Fae. From the first moment they met, there was instant [color="#cbb3a7"][I][SIZE=2]chemistry[/I][/SIZE][/color] between them. Neither of them could have predicted just how [color="#b7886d"][I][SIZE=2]important[/SIZE][/I][/color] they would end up becoming to each other.
 
Bo and Lauren are [color="#cbb3a7"][SIZE=2][I]s t a r - c r o s s e d[/I][/SIZE][/color] lovers. Fae are not supposed to fall in love with humans, but Bo did anyway. Lauren was enchanted by Bo from the first moment they met and was willing to do anything to [color="#cbb3a7"][I][SIZE=2]protect[/SIZE][/I][/color] her. Theirs was a slow burn, but it was strong; everyone could see that they had feelings for each other. Despite whatever setbacks may come their way, Bo and Lauren are strong enough to face them together.[/indent][/indent][/indent][/indent][/font][/size]
by doccubus   September 01, 2011 @ 11:33am
58 Views
no comments
 
 
;-- Symbols -- ©®™¿¡±¢€£¥°°¹²³¶¼½¾…«»
:*:!(c)::©    ; alt+0169 Copyright
:*:!copy::©    ; alt+0169 Copyright
:*:!(r)::®    ; alt+0174 Registered
:*:!reg::®    ; alt+0174 Registered
:*:!tm::™    ; alt+0153 Tradmark
:*:!??::¿     ; alt+0191 Inverted ?
:*:!!!::¡    ; alt+0161 Inverted !
:*:!+-::±    ; alt+0177 Plus or Minus
by Al Gonzalez   July 27, 2011 @ 8:12am
125 Views
no comments
 
C#
var previousNumber = 1;
var twoNumberTotal = 1;
var currentNumber = 0;
for (int i = 0; i < 10; i++)
{
    twoNumberTotal = previousNumber + currentNumber;
    currentNumber = previousNumber;
    previousNumber = twoNumberTotal;
    Console.WriteLine(twoNumberTotal);
}
by Rajesh   July 20, 2011 @ 11:10am
87 Views
no comments
 
XML
<ifModule mod_gzip.c>
  mod_gzip_on Yes
  mod_gzip_dechunk Yes
  mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
  mod_gzip_item_include handler ^cgi-script$
  mod_gzip_item_include mime ^text/.*
  mod_gzip_item_include mime ^application/x-javascript.*
  mod_gzip_item_exclude mime ^image/.*
  mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>
by Aria Radmand   July 12, 2011 @ 5:12am
127 Views
no comments
 
<a href="http://drury.blog.sector.sk/blogclanok/8720/sector_awards_2010.htm"><img title="2. Najkrajšie obrázky/videá za rok 2010" src="http://i.imgur.com/I2xiH.png" alt="2. Najkrajšie obrázky/videá za rok 2010" border="0"></a>
by Drury   December 26, 2010 @ 5:42am
114 Views
no comments
 
C#
public static class MapExtensions
{
    public static IMappingExpression<IPagination<TSource>, IPagination<TDestination>> ConstructPagination<TSource, TDestination>(this IMappingExpression<IPagination<TSource>, IPagination<TDestination>> map)
        where TSource : class
        where TDestination : class
    {
        return map.ConstructUsing(src => 
                new CustomPagination<TDestination>(src.ToList().Select(p => AutoMapper.Mapper.Map<TSource, TDestination>(p)),
                    src.PageNumber,
                    src.PageSize,
by John Nelson   August 09, 2010 @ 6:52pm
582 Views
no comments
 
C#
using System;
using System.Collections.Specialized;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Mvc;
using Moq;
using MvcContrib.Web.Security;
using NUnit.Framework;
by Pure Krome   June 01, 2010 @ 10:45pm
266 Views
no comments
 
C#
// Map content before registering areas
protected void Application_Start()
{
    Content.Map<MyPortableArea>()
        .Master("~/Views/Shared/PA.master")
        .Title("PATitle")
        .Body("PAMain");
 
    AreaRegistration.RegisterAllAreas();
by John Nelson   May 19, 2010 @ 9:33pm
276 Views
no comments
 
C#
private static IEnumerable<Type> FindAllMessageHandlers()
{
    var iMessageHandler = typeof(IMessageHandler);
 
    var types = from type in AppDomain.CurrentDomain.GetAssemblies().SelectMany(t => t.GetTypes())
            let canInstantiate = !type.IsInterface && !type.IsAbstract && !type.IsNestedPrivate
            let isIMessageHandler = type.GetInterface(iMessageHandler.Name) != null
            where canInstantiate && isIMessageHandler
            select type;
by John Nelson   May 06, 2010 @ 7:03pm
295 Views
no comments
 
 
//Accordion
    $('.accordion> .accordionContent').hide();
    $('.accordion> .accordionHeader').click(function() {
        var $nextDiv = $(this).next();
        var $header = $(this);
        var $visibleSiblings = $nextDiv.siblings('div:visible');
 
        if ($visibleSiblings.length) {
            $visibleSiblings.prev().toggleClass("open");
by Arjan   April 03, 2010 @ 4:23am
214 Views
no comments
 
let fib2 n = 
    let rec next a1 a2 cnt = 
        if (cnt<1) then 1
        elif (cnt=1) then a1+a2
        else next a2 (a1+a2) (cnt-1)
    next 1 1 (n-2)
by Ihar Voitka   January 26, 2010 @ 5:04am
174 Views
no comments
 
C#
/// <summary>
 /// A replacement for the declarative catalog part meant for limiting the webparts on a page to a single instance by hiding the webparts that already exist on the page.
 /// </summary>
 [Designer ( "System.Web.UI.Design.WebControls.WebParts.DeclarativeCatalogPartDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ), AspNetHostingPermission ( SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal ), AspNetHostingPermission ( SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal )]
 public class CustomCatalog : CatalogPart
 {
  // Fields
  private WebPartDescriptionCollection _descriptions;
  private string _webPartsListUserControlPath;
  private ITemplate _webPartsTemplate;
by Athens Springer   October 29, 2009 @ 7:34am
389 Views
no 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