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 TOP
public class BadNeighbors
{
  public int maxDonations(int[] donations){
    if(donations.length == 2)return Math.max(donations[0], donations[1]);
       int ret = 0;
   int [] dp = new int [donations.length];
   dp[0] = donations[0];
   dp[dp.length-1] = donations[dp.length-1];
   boolean [] one = new boolean [dp.length];
   one[0] = true;
by Mostafa   July 27, 2011 @ 10:18pm
Tags: #TopCoder
64 Views
no comments
 
Public Sub ExportToPDF(ByVal _PathFilePDF As String)
        Dim Report As New ReportDocument
        Report.Load(PathReport)
        Report.RecordSelectionFormula = RecordSelectionFormula
        Report.Refresh()
        Report.ExportToDisk(ExportFormatType.PortableDocFormat, _PathFilePDF)
    End Sub
by NelsonAmaya   April 30, 2011 @ 9:01am
118 Views
no comments
 
C#
using System;
using System.Collections.Generic;
using System.Net;
using System.IO;
using System.Text;
 
namespace LoginFormAppModule
{
    class Program
    {
by Sektor   March 28, 2011 @ 11:14pm
Tags: non-stop
222 Views
no comments
 
XML
<ResourceDictionary xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    >
 
    <DataTemplate x:Key="SmallLogoTemplate">
        <Image ... />
    </DataTemplate>
 
    <DataTemplate x:Key="LargeLogoTemplate">
        <Image ... />
by George Ionita   June 22, 2010 @ 8:01am
143 Views
no comments
 
C#
public class YourPlugin : IPlugin
{
 
private static ResourceDictionary _Resources;
 
 
public static DataTemplate SmallIconTemplate
{
   get
   {
by George Ionita   June 22, 2010 @ 7:57am
165 Views
no comments
 
C#
string res = string.Empty;
 
try
{
    IQuery query = session.CreateQuery("select ao.CostCenterAccount from " +
                                       "AssetObservation as ao where ao.Asset.ID=:KEY " +
                                       "and ao.Date<:DATETIME order by Date asc");
    query.SetInt64("KEY", asset.Id);
    query.SetDateTime("DATETIME", dateTime);
by afsharm   November 01, 2009 @ 2:24am
627 Views
1 comments
 
Public Class ProjectInstaller
 
    Private Const LOG_SOURCE As String = "Log"
    Private Const LOG_LOG As String = "Log"
    Private _mainEventLog As EventLog
 
    Public Sub New()
        MyBase.New()
 
        'This call is required by the Component Designer.
580 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