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 AD
sasx
by sdsd   May 09, 2012 @ 8:17am
Tags: sdsad
18 Views
no comments
 
<html>
<head>
    <link href="scripts/plupload/jquery.plupload.queue/css/jquery.plupload.queue.css" rel="stylesheet"
        type="text/css" />        
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
        
    <link href="Css/Reset.css" rel="stylesheet" type="text/css" />
    <link href="Css/Standard.css" rel="stylesheet" type="text/css" />    
    <link href="Css/Classifieds.less.css" rel="stylesheet" type="text/css" />
by Rick Strahl   May 02, 2012 @ 8:29pm
Tags: plUpload, Bug
35 Views
no comments
 
'must have a legitimate email setup with smtp relays set greater than 0 in your godaddy control panel (email accounts) 
Private Sub btnSendMessage_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles btnSendMessage.Click
      CreateTimeoutTestMessage("smtpout.secureserver.net") 'This is standard with most email relays at godaddy
  End Sub
  Public Shared Sub CreateTimeoutTestMessage(server As String)
      Dim [to] As String = "busted@fbi.gov"
      Dim from As String = "billyjoebob@hillbilly.com"
      Dim subject As String = "Catch Me If You Can."
      Dim body As String = "This is the body of the message. Yada Yada Yada"
      Dim message As New MailMessage(from, [to], subject, body)
by DaveCS   April 10, 2012 @ 6:53pm
38 Views
no comments
 
system:
  opsChangeSpawnTypeOnly: false
  SpawnersRespondToRedstone: false
  allowDroppedSpawners: false
  debugLogs: false
  SuperPerms: true
  ignorePermissions: false
  deactivedByRedstoneStatus: false
  mustHaveValidPermissionsToAlterSpawner: true
  maxNumberOfEntsNearSpawner: 6
by Digitalink2008   February 22, 2012 @ 1:23pm
35 Views
no comments
 
C++
/*    Renegade Scripts.dll
    Spectate
    Copyright 2012 Goldy58
 
    This file is part of the Renegade scripts.dll
    The Renegade scripts.dll 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 2, or (at your option) any later
    version. See the file COPYING for more details.
    In addition, an exemption is given to allow Run Time Dynamic Linking of this code with any closed source module that does not contain code covered by this licence.
31 Views
no comments
 
function twitter_mobypicture_page($query) { 
        if (user_type() == 'oauth') { 
 
                //Has the user submitted an image and message? 
                if ($_POST['message']) { 
                        $messages = stripslashes($_POST['message']); 
                        $serviceURL = 'https://api.mobypicture.com/2.0/upload.json'; 
 
                        //Set the initial headers 
                        $header = array( 
42 Views
no 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
40 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
44 Views
no comments
 
C#
var conn = new SqlConnection(CONN_STR);
var cmd = new SqlCommand("Select * from Employee", conn);
conn.Open();
cmd.BeginExecuteReader(ar =>
    {
        int affected = cmd.EndExecuteNonQuery(ar);
        cmd.Dispose();
        conn.Dispose();
    }, null);
by bnaya   January 14, 2012 @ 2:10pm
Tags: APM, DAL, ADO
37 Views
no comments
 
C++
template <typename T>
class BinarySearchTree
{
    private:
        struct N
        {
            T data;
            N * left;
            N * right;
            N( const T & value, N * l, N * r ):data( value ), left( l ), right( r ) { };
by 74cm   January 06, 2012 @ 9:21pm
Tags: Bad
44 Views
no comments
 
C#
namespace DataFieldMappingConsoleSample
{
    using System;
    using System.Collections.Generic;
    using System.Data;
    using System.Data.SqlClient;
    using System.Linq;
 
    class Program
    {
61 Views
no comments
 
C#
namespace DataFieldMappingConsoleSample
{
    using System;
    using System.Collections.Generic;
    using System.Data;
    using System.Diagnostics;
    using System.Linq;
    using System.Reflection;
 
    [AttributeUsage(AttributeTargets.Property)]
51 Views
no comments
 
new ThreadGuest() {
    
    @Override
    public Object run(Handler arg0, long arg1) {
        LogByApp.w("//### 0 ThreadGuest.run()");
        return null;
    }
}
.addChain(0, new ThreadGuest(ThreadGuest.PRIORITY_BELOW_NORMAL) {
    
by arngard   December 07, 2011 @ 4:59am
53 Views
1 comments
 
new AsyncNetTask(myContext, myHandler) {
 
    // 작업중에 필요한 변수가 있다면 finalize 하거나 이 객체의 생성자 인자로 넘길 수 있을 것입니다.
    // 유지해야 하는 변수라면 멤버 변수 등을 사용할 수도 있을 것입니다.
    Mydata mData;
 
    @Override
    protected TcpEnvelope onPreExecute() {
        return makeEnvelope();
    }
by arngard   November 17, 2011 @ 8:26pm
53 Views
no comments
 
new ThreadGuest() {
    
    @Override
    public Object run(Handler arg0, long arg1) {
        LogByApp.w("//### 0 ThreadGuest.run()");
        return null;
    }
}
.addChain(0, new ThreadSlave() {
    
by arngard   November 17, 2011 @ 8:18pm
41 Views
no comments
 
mencoder -oac copy -ovc xvid -xvidencopts bitrate=687 -sub <srt file> -subcp UTF-8 -subfont-text-scale 3 -sub-bg-alpha 70 -o <outputfile> <inputfile>
by alirezaimi   November 11, 2011 @ 9:42am
56 Views
no comments
 
C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.Composition;
using System.ComponentModel.Composition.Hosting;
 
namespace StaticMEF
{
    class Program
by bnaya   October 18, 2011 @ 8:50am
155 Views
no comments
 
C#
 [TestMethod]
 public void TestRenamedbContextMenu()
 {
     dbContext context = new dbContext();
 
     // Load the first menu
     Menu menu = context.Menus.FirstOrDefault();
 
     // force a change
     menu.ModifiedOn = DateTime.Now;
by Rick Strahl   September 27, 2011 @ 4:43am
276 Views
no comments
 
C#
public static IList<T> ToList<T>(this System.Data.SqlClient.SqlDataReader dr) where T : new()
       {
           Type type = typeof(T);
           if(System.Web.HttpContext.Current.Cache[type.Name + "_properties"] == null)
           {
               System.Web.HttpContext.Current.Cache.Insert(type.Name + "_properties", type.GetProperties().ToList());
           }
           IList<PropertyInfo> properties = (IList<PropertyInfo>)System.Web.HttpContext.Current.Cache[type.Name + "_properties"];
           IList<T> result = new List<T>();
           while(dr.Read())
by ofer   September 25, 2011 @ 3:18am
168 Views
no comments
 
C#
/// <summary>
/// Creates a list of a given type from all the rows in a DataReader.
/// 
/// Note this method uses Reflection so this isn't a high performance
/// operation, but it can be useful for generic data reader to entity
/// conversions on the fly and with anonymous types.
/// </summary>
/// <typeparam name="TType"></typeparam>
/// <param name="reader">An open DataReader that's in position to read</param>
/// <param name="fieldsToSkip">Optional - comma delimited list of fields that you don't want to update</param>
by Rick Strahl   September 23, 2011 @ 3:26pm
825 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