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 C
Atificial Inteligen
http://www.wupload.com/file/48757914
http://www.wupload.com/file/48757244
http://www.wupload.com/file/48757461
http://www.wupload.com/file/48757243
http://www.wupload.com/file/48757242
http://www.wupload.com/file/48758435
http://www.wupload.com/file/48757376
http://www.wupload.com/file/48758161
http://www.wupload.com/file/48758916
by sukair   Thursday @ 6:29pm
Tags: drama, sci-fi
51 Views
no comments
 
function IsPageValid() 
{
    var validated = Page_ClientValidate('UserComments');
 
    if (validated) 
    {
        //Its valid
        return true;
    }
    else 
by Egli   Thursday @ 4:04pm
9 Views
no comments
 
XML
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="PublishWeb" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets" />
  <UsingTask TaskName="TransformXml" AssemblyFile="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.Tasks.dll"/>
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
      <ClassLibraryOutputDirectory>bin$(Configuration)</ClassLibraryOutputDirectory>
      <WebProjectFile>$(ProjectFolder)\$(ProjectFile)</WebProjectFile>
  </PropertyGroup>
by Prithvi Ramana A   Tuesday @ 10:18am
11 Views
no comments
 
emvase y embalaje de invesca
Monday @ 6:04pm
15 Views
no comments
 
C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Dynamic;
using System.Reflection;
using System.Collections;
 
namespace Westwind.Utilities.Dynamic
{
    /// <summary>
by Rick Strahl   January 31, 2012 @ 5:48pm
Tags: C#, Expando, MixIn
356 Views
2 comments
 
C#
@foreach(var pic in Model.stfuGalleryImage.Where( "Visible" ) ) {
              <figure>
                 <img src="@pic.galleryImage" alt="@pic.galleryImageTitle" data-tags="@pic.galleryImageTags" />
                @if ( @pic.galleryImageDescription != "" ) { 
                  <figcaption class="opaque">@pic.galleryImageDescription</figcaption>
                }
              </figure>
}
@foreach(var vid in Model.stfuGalleryVideo.Where( "Visible" ) ) {
              <figure title="@vid.galleryImageTitle" data-tags="@vid.galleryImageTags">
by Jon R. Humphrey   January 31, 2012 @ 5:17am
12 Views
2 comments
 
C#
using System;
using System.IO;
 
class Program
{
    static void Main()
    {
    //
    // It will free resources on its own.
    //
January 26, 2012 @ 7:26am
21 Views
no comments
 
http://filevelocity.com/sfp3zcy422x6/Dream Hause 2011 DVDRip.part1.rar.html
http://filevelocity.com/gehr1px6sw2k/Dream Hause 2011 DVDRip.part2.rar.html
http://filevelocity.com/wi5tmc1l12q9/Dream Hause 2011 DVDRip.part3.rar.html
http://filevelocity.com/b2e1c5h25e9y/Dream Hause 2011 DVDRip.part4.rar.html
http://filevelocity.com/mbscjvmr44vn/Dream Hause 2011 DVDRip.part5.rar.html
http://filevelocity.com/igeaqml05mlt/Dream Hause 2011 DVDRip.part6.rar.html
http://filevelocity.com/ngidojk8agwk/Dream Hause 2011 DVDRip.part7.rar.html
http://filevelocity.com/gfs54dqtrcqa/Dream Hause 2011 DVDRip.part8.rar.html
16 Views
no comments
 
C#
public static int Main(params string[] args)
{
           List<string> filesList = new List<string>();
            foreach (string arg in args)
            {
                if (arg.StartsWith("-"))
                {
                    if (arg.ToLower().Contains("nogui"))
                        ...;
                    else if (arg.ToLower().Contains("autostart"))
by none_100   January 26, 2012 @ 5:23am
15 Views
no comments
 
$(document).ready(function () {
    if (window.location.protocol == 'https:') {
        $("a[href^='http:\/\/" + window.location.hostname + "']").each(function() { 
               this.href = this.href.replace(/^http:/i, "https:");
           });
    };
});
by Javier Callico   January 24, 2012 @ 7:27am
18 Views
no comments
 
C#
///////////////////////////////////////////
//From the service.cs side//
///////////////////////////////////////////
 
//Make sure u include these namespaces
using System.Web.Script.Services;
using System.Web.Script.Serialization;
 
//Have the webservice class have this Attribute to allow ajax calls
[System.Web.Script.Services.ScriptService]
by Egli   January 23, 2012 @ 8:04pm
12 Views
no comments
 
C#
protected void Page_Load(object sender, EventArgs e)
{
    if (HttpContext.Current.Request.IsAuthenticated)
    {
        ResetFormsAuthenticationTicket();
    }
    else
    {
        Response.Redirect("~/logout.aspx");
    }
by Kent   January 22, 2012 @ 7:26pm
15 Views
no comments
 
@inherits umbraco.MacroEngines.DynamicNodeContext
<ul>
    @foreach (var item in @Model.Product.Where("Visible"))
    {
    <li><a href="@item.Url">@item.Name</a> 
      @if (item.Media("image", "umbracoFile") != null) {     
      <img src='@item.Media("image", "umbracoFile")' />
     
     }
     </li>
by bq1990   January 21, 2012 @ 3:04pm
18 Views
no comments
 
C#
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Web;
 
namespace System.Text {
    public static class StringTransformer {
        static readonly string linkFormat = "<a href=\"{0}\" title=\"{0}\" target=\"{2}\" class=\"{3}\">{1}</a>";
 
        /// <summary>
by SandRock   January 20, 2012 @ 11:21am
Tags: C#, url, html, link
35 Views
no comments
 
try { document.execCommand("BackgroundImageCache", false, true); } catch (e) { }
var popUpWin;
function PopUpCenterWindow(URLStr, width, height, newWin, scrollbars) {
    var popUpWin = 0;
    if (typeof (newWin) == "undefined") {
        newWin = false;
    }
    if (typeof (scrollbars) == "undefined") {
        scrollbars = 0;
    }
by medyunhavba   January 17, 2012 @ 12:56am
Tags: js, commen.js
20 Views
no comments
 
C#
public class AuthOperationHandler : HttpOperationHandler<HttpRequestMessage, HttpRequestMessage>
{
    public AuthOperationHandler() : base("response")
    {
    }
 
    protected override HttpRequestMessage OnHandle(HttpRequestMessage request)
    {
        var credentials = ExtractCredentials(request.Headers.Authorization);
        var authenticated = IsAuthenticated(credentials);
by Antony Scott   January 16, 2012 @ 1:07pm
25 Views
no comments
 
C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Web;
 
/// <summary>
/// Summary description for OrderByHelper
/// </summary>
by jaredmroberts   January 12, 2012 @ 4:49pm
21 Views
no comments
 
C#
public class MatchConverter : IValueConverter
{
    public object Convert(object value, Type targetType,
        object parameter, System.Globalization.CultureInfo c)
    {
        if (value == null && Match == null)
            return Then;
 
        // convert Match to the value's type
        if (Match != null && value != null)
by Jerry Nixon   January 10, 2012 @ 4:07pm
36 Views
no comments
 
ACCESSORY_IDs = {
    ACCESSORY_GOGGLES = 1,
    ACCESSORY_CATTYHAIRBAND = 2,
    ACCESSORY_GLASS = 3,
    ACCESSORY_FLOWER = 4,
    ACCESSORY_FLORALHAIRBAND = 5,
    ACCESSORY_HOOD = 6,
    ACCESSORY_ROUNDCAP = 7,
    ACCESSORY_FLUMASK = 8,
    ACCESSORY_HAIRBAND = 9,
by iXaDe   January 10, 2012 @ 12:12pm
Tags: bleachro
29 Views
no comments
 
C#
public static class TypeEx
{
    public static string GetFriendlyName(this Type t)
    {
        using (var provider = new CSharpCodeProvider())
        {
            var typeRef = new CodeTypeReference(t);
            return provider.GetTypeOutput(typeRef);
        }
    }
by bnaya   January 10, 2012 @ 3:21am
28 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