CodePaste Logo
New Snippet New Recent Snippets Recent Snippets My Snippets My Snippets My Favorites Favorites Web Code Search Snippets Search
Sign inor Register
Format:
Recent Snippets
php
<?php if ($attention) { ?>
    <div class="simplecheckout-warning-block"><?php echo $attention; ?></div>
<?php } ?>    
<?php if ($error_warning) { ?>
    <div class="simplecheckout-warning-block"><?php echo $error_warning; ?></div>
<?php } ?>
    <table class="simplecheckout-cart">
        <colgroup>
            <col class="image">
            <col class="name">
Today @ 2:59pm
Tags:
11 Views
no comments
 
php
<?php if ($attention) { ?>
    <div class="simplecheckout-warning-block"><?php echo $attention; ?></div>
<?php } ?>    
<?php if ($error_warning) { ?>
    <div class="simplecheckout-warning-block"><?php echo $error_warning; ?></div>
<?php } ?>
<div id="cantaleft">
		<div class="odeme-asamalari-dikey">
				<span class="cizgi cizgi1"></span><span class="cizgi cizgi2"></span><span class="cizgi cizgi3"></span>
				<div id="asama-canta" class="asama">
Today @ 2:58pm
Tags:
11 Views
no comments
 
#include<iostream>
#include<iomanip>
#include<cstdio>
#include<cmath>
#include<cstring>
#include<cstdlib>
#include<string>
#include<cctype>
#include<vector>
#include<set>
Today @ 11:00am
Tags:
9 Views
no comments
 
import java.text.DecimalFormat;
import java.util.ArrayList;

/**
 * This class provides a framework for accessing a decision tree.
 * Put your code in constructor, printInfoGain(), buildTree and buildPrunedTree()
 * You can add your own help functions or variables in this class 
 */
public class DecisionTree {
	/**
Yesterday @ 10:29pm
Tags:
12 Views
no comments
 
def mayor (lista,dim,max,i):
   if i != dim:
      if lista[i] > max:
         max=lista[i]
      mayor(lista,dim,max,i+1)
   else:
      print max 
Yesterday @ 5:49pm
13 Views
no comments
 
// ConsoleApplication4.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "UIAutomationClient.h"
#include "UIAutomation.h"

CComPtr<IUIAutomationEventHandler> spEventHandler;
CComPtr<IUIAutomationCacheRequest> _spCacheRequest;

Yesterday @ 4:16pm
Tags:
17 Views
no comments
 
public static void main(String[] args) {

   Code code = new Code();
   int n = 0;
   
   code = {{1,1,1,1},{1,1,1,1},{0,1,0,1},{0,1,0,1}};
   code.toString();
   /*
    * To Do:
Yesterday @ 3:32pm
Tags:
14 Views
no comments
 
public boolean checkCode() {
   /*
    * To Do: 
    * Überprüfen, ob bits einen Fehlerfreien Code darstellt.
    */
   int helpRow = 0, helpColumn = 0;
   
   // check rows
   for(int i = 0; i <= bits.length; i++){
     for(int j = 0; j <= bits.lenght; j++){
Yesterday @ 2:36pm
Tags:
12 Views
no comments
 
@name test
@inputs Button Show
@outputs Screen:string
@persist 
interval(10)

if (Button==1) {Screen=("We Will Miss You!")}
if (Button==0) {Screen=("")}


Yesterday @ 12:56pm
Tags:
14 Views
no comments
 
@name test
@inputs Button
@outputs Screen    
interval(10)
If ,)(Button==1,)),))Screen We Will Miss You)
If (Button==0) (Screen=0)
by harr   Yesterday @ 12:27pm
Tags:
13 Views
no comments
 
<!DOCTYPE html>
<html>
<head>
    <title>Marc's Color-Game</title>
    <link rel="stylesheet" type="text/css" href="Style.css">
</head>
<body>
    <div id="gruenerKreis"></div>
    <div id="lilaKreis"></div>
    <div id="roterKreis"><div id='kleinerKreisWeiss'></div></div>
Yesterday @ 11:53am
Tags:
13 Views
no comments
 
def fact(x):
    if x==0:
        return 1
    return x*fact(x-1)



def howmany5(x):
	if x<5:
		return 0
Yesterday @ 9:51am
Tags:
16 Views
no comments
 
zufallgesamt = (Math.floor(Math.random() * 10)) * 1000;
    setTimeout(function() {
        turnon = false;
    }, zufallgesamt);

    if(turnon==true){
        startRandom();
    }
Yesterday @ 8:08am
Tags:
13 Views
no comments
 
public void DeleteAclForMembership(PageReference pageRef, string userOrRoleName, SecurityEntityType entityUserRole)
{
  new PageAclDB().DeleteAclForMembership(pageRef, userOrRoleName, entityUserRole);
  DataFactoryCache.RemoveSubTree(pageRef);
  DataFactoryCache.RemovePage(pageRef);
}
Yesterday @ 5:53am
Tags:
12 Views
no comments
 
#include <stdio.h>

int main()
{
    int N;
    printf("n i giriniz");
    scanf("%d",&N);
    int i,p=0,s,A[2][N],x;

    printf("x i giriniz:");
Yesterday @ 12:48am
Tags:
14 Views
no comments
 
sql
fire! fire! fire!
Thursday @ 9:13pm
Tags:
13 Views
no comments
 
void DeleteMessage(Mail &m, TCHAR *name)
{
	DWORD count;
	//DWORD dwPtr;
	unsigned int numberOfMessage;
	cout << "Input number of message: ";
	cin >> numberOfMessage;
	HANDLE h = CreateFile(name, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ, 0, OPEN_EXISTING, 0, 0);
	if (h == INVALID_HANDLE_VALUE)
	{
Thursday @ 4:03pm
Tags:
15 Views
no comments
 
void CreateMail(Mail &m, TCHAR *filePath)
{
	TCHAR path[] = _T("Mail");
	CreateDirectory(path, NULL);

	TCHAR fileName[255];
	cout << "Input mailbox name : " << endl;
	cin >> fileName;

	TCHAR dir[255] = _T("Mail//");
Thursday @ 3:07pm
Tags:
17 Views
no comments
 
void createMailBox(){

	HANDLE hFile = CreateFile(path,GENERIC_READ|GENERIC_WRITE,0,0,OPEN_ALWAYS,0,0);

	if (hFile == INVALID_HANDLE_VALUE){
		cout << "Error Create File" << endl;
		return;
	}

	DWORD count;
Thursday @ 2:01pm
Tags:
16 Views
no comments
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">



<html>
<head>
    <link rel="stylesheet" type="text\css" href="/static/style.css" />
    <title>Домашняя страница :: Example by CaufMAN</title>
</head>
Thursday @ 12:52pm
Tags:
21 Views
no comments
 
void Menu(Mail &m) {

	int i = -1;
	TCHAR name[255] = _T("");;
	bool check=false;

	while (true)
	{
		system("cls");
		Print();
Thursday @ 12:43pm
Tags:
17 Views
no comments
 
TCHAR* ReadMessage(Mail &m, TCHAR *filePath, unsigned int index)
{
	if (index > m.countMessage)
	{
		tcout << "Index > count messages " << endl;
		return NULL;
	}

	HANDLE hFile = CreateFile(filePath, GENERIC_READ, FILE_SHARE_READ, 0, OPEN_ALWAYS, 0, 0);

Thursday @ 12:37pm
Tags:
16 Views
no comments
 
void ReadMessageWithDelete(Mail &m, TCHAR *filePath, unsigned int index)
{
	if (index > m.countMessage)
	{
		tcout << "Index > count messages " << endl;
		return;
	}

	HANDLE hFile = CreateFile(filePath, GENERIC_READ, FILE_SHARE_READ, 0, OPEN_ALWAYS, 0, 0);

Thursday @ 12:36pm
Tags:
16 Views
no comments
 
case 3:
   system("cls");
   if (!check)
   {
      tcout << "You must join to mailbox" << endl;
      system("pause");
      break;
   }
   {
      tcout << " Enter index " << endl << "-->";
Thursday @ 12:35pm
Tags:
15 Views
no comments
 
[NaN, 0.01, 0.129, 0.009, 0.011, 0.018, 0.019, 0.017, 0.022, 0.011, 0.016, 0.016, 0.018, 0.02, 0.013, 0.016, 0.017, 0.018, 0.017, 0.016, 0.017, 0.015, 0.018, 0.016, 0.016, 0.019, 0.015, 0.017, 0.016, 0.017, 0.017, 0.017, 0.016, 0.024, 0.024, 0.005, 0.014, 0.036, 0.015, 0.015, 0.026, 0.008, 0.017, 0.032, 0.005, 0.012, 0.041, 0.01, 0.017, 0.036, 0.014, 0.015, 0.032, 0.005, 0.014, 0.042, 0.007, 0.018, 0.036, 0.005, 0.01, 0.015, 0.047, 0.005, 0.025, 0.039, 0.007, 0.013, 0.048, 0.008, 0.011, 0.048, 0.009, 0.011, 0.053, 0.011, 0.017, 0.041, 0.009, 0.016, 0.051, 0.007, 0.012, 0.015, 0.058, 0.008, 0.006, 0.014, 0.057, 0.024, 0.008, 0.048, 0.012, 0.017, 0.047, 0.016, 0.004, 0.054, 0.005, 0.005, 0.018, 0.062, 0.005, 0.005, 0.01, 0.076, 0.006, 0.017, 0.058, 0.012, 0.017, 0.067, 0.023, 0.078, 0.062, 0.012, 0.005, 0.065, 0.005, 0.004, 0.011, 0.081, 0.009, 0.143, 0.017, 0.024, 0.074, 0.008, 0.009, 0.016, 0.077, 0.005]
Thursday @ 12:13pm
Tags:
15 Views
no comments
 
brought to you by:
West Wind Techologies