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
#include <stdio.h>
#include "altera_avalon_sgdma_descriptor.h"
#include "altera_avalon_sgdma_regs.h"
#include "altera_avalon_sgdma.h"
#include "system.h"
#include "alt_types.h"
//注意包含这几个头文件

alt_sgdma_dev    *sgdma_tx_dev;  //sgdma_tx设备文件
alt_sgdma_dev    *sgdma_rx_dev;  //sgdma_rx设备文件
Yesterday @ 6:41pm
Tags:
8 Views
no comments
 
package  {
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.display.MovieClip;
	
	public class Enemigo extends Sprite{

		private var contenido:MovieClip;
		private var barra:MovieClip;
		
Yesterday @ 5:40pm
Tags:
7 Views
no comments
 
package  {
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.display.MovieClip;
	
	public class Enemigo extends Sprite{

		private var contenido:MovieClip;
		private var barra:MovieClip;
		
Yesterday @ 5:27pm
Tags:
7 Views
no comments
 
C#.Net
-
for(Char i = 'a'; i<= 'e'; i++) {
     for(int j = 1; j<=2; i++) {
          cmbAraclar.Items.Add(i.ToString() + j.ToString());
     }
}


VB.Net
by Ertuğrul Seyhan   Yesterday @ 3:10pm
Tags:
9 Views
no comments
 
##############################
###### mS  Codu ####
#############################
alias sunucu return irc.mircscripting.net 6667
alias portpass return Dene
alias idents return 63
alias botnick return DeneBOT
alias nickpass return bosver
alias setname return Deniyoz iste.
alias operpass return Sallama.
Yesterday @ 2:45pm
Tags:
9 Views
no comments
 
function makaleEkle(){
  $veriler = Input::all();
  $islem =  Validator::make($veriler,array('baslik' => 'requider|min:3'));
       if ($islem->fails()){
          
       }else {

       }
}
Yesterday @ 1:46pm
Tags:
8 Views
no comments
 
org.hibernate.engine.jndi.JndiException: Error parsing JNDI name [SessionFactory]
	at org.hibernate.engine.jndi.internal.JndiServiceImpl.parseName(JndiServiceImpl.java:141)
	at org.hibernate.engine.jndi.internal.JndiServiceImpl.bind(JndiServiceImpl.java:157)
	at org.hibernate.internal.SessionFactoryRegistry.addSessionFactory(SessionFactoryRegistry.java:103)
	at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:497)
	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1857)
	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1928)
	at db.KullanicilarHome.<init>(KullanicilarHome.java:28)
	at MainClass.main(MainClass.java:17)
Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
Yesterday @ 1:29pm
Tags:
7 Views
no comments
 
InputStream is = getContentResolver().openInputStream(uri);
FileOutputStream fos = null;
        File fileToReturn;

        try {

            String time = String.valueOf(System.currentTimeMillis());
            String filename = time.substring(time.length() - 10);

            final File tempFile = File.createTempFile(filename, ".mp3");
Yesterday @ 1:07pm
Tags:
8 Views
no comments
 
[Constructor(DOMString url, optional (DOMString or DOMString[]) protocols)]
interface WebSocket : EventTarget {
  readonly attribute DOMString url;

  // ready state
  const unsigned short CONNECTING = 0;
  const unsigned short OPEN = 1;
  const unsigned short CLOSING = 2;
  const unsigned short CLOSED = 3;
  readonly attribute unsigned short readyState;
Yesterday @ 1:02pm
Tags:
7 Views
no comments
 
php
<?php 

echo "Deneme";

?>
Yesterday @ 12:25pm
Tags:
8 Views
no comments
 
url = http://08309.net.dcs.hull.ac.uk/api/admin/task

data = {"password":"12345","username":"test@amulet.com","tasks":[{"unitsconsumed":"0.0","timestamp":"24-04-2014 14:25:07","tasktype":"sequence","taskvalue":"900"}]}

public String postHTTPData(String url, String data)
	{
		String result = null;
		HttpClient client = new DefaultHttpClient();
		HttpPost httpPost = new HttpPost(url);

Yesterday @ 11:36am
Tags:
15 Views
no comments
 
/============================================================================
// Name        : sort_odd_rows.cpp
// Author      : BlackSpace
// Version     : 0.1
// Description : Задана матрица NxN. Отсортировать четные  строки по невозрастанию.
//				 Считаем что нулевая строка является первой и значит нечетной.
//				 C++, Ansi-style
//============================================================================

#include <iostream>
by Blackspace   Yesterday @ 11:21am
Tags: C++
9 Views
no comments
 
http://www.freelibros.org/administracion/administracion-una-perspectiva-global-11va-edicion-harold-koontz-heinz-weihrich.html
Yesterday @ 9:40am
Tags:
11 Views
no comments
 
BptItdValues iv = new BptItdValues();
                foreach (Cell c in rowEnumtr.Current.Elements<Cell>())
                {
                    if (!c.CellReference.HasValue)
                    {
                        throw new InvalidDataException();
                    }

                    switch (char.ToUpperInvariant(c.CellReference.Value.ElementAt<char>(0)))
                    {
Yesterday @ 9:39am
Tags:
10 Views
no comments
 
2014-04-24 16:39:02   Fel vid e-postutskick System.Net.Mail.SmtpException: Failure sending mail.

 at System.Net.Mail.SmtpClient.Send(MailMessage message)
 at Canea.Common.Mail.MailSender.SendCore(MailMessage mail, Boolean runningAsync, Action`1 resultHandlerFunc, Int32 attemptNumber) in d:\Builds_work\Framework\Release_Official\Common\Common\Mail\MailSender.cs:line 108


System.IO.IOException: Unable to read data from the transport connection: net_io_connectionclosed.

 at System.Net.Mail.SmtpReplyReaderFactory.ProcessRead(Byte[] buffer, Int32 offset, Int32 read, Boolean readLine)
 at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller, Boolean oneLine)
Yesterday @ 8:36am
Tags:
9 Views
no comments
 
for (int iX = -1; iX <= 1; iX++)
		{
			for (int iY = -1; iY <= 1; iY++)
			{
				//if not on open list -> add to open list
				if (grid[currentX + iX][currentY + iY] != 'C' && grid[currentX + iX][currentY + iY] != 'W')
				{
					Node<int> *currentNode = new Node<int>(currentX + iX, currentY + iY);
					AddToOpenList(openList, *currentNode, *goalNode);
					grid[currentX + iX][currentY + iY] = '-'; //change to a '-' so I know its on the Open list.
by Not Simon   Yesterday @ 8:27am
Tags:
10 Views
no comments
 
<!DOCTYPE html>

<head>
    <meta charset="utf-8">
   	<link rel="stylesheet" type="text/css" href="estilosCSS5.css" title="style" />
   	<style type="text/css">
   	body {
	background-color: #7AB800;
}
    </style>
Yesterday @ 8:12am
Tags:
8 Views
no comments
 
<!DOCTYPE html>

<head>
    <meta charset="utf-8">
   	<link rel="stylesheet" type="text/css" href="estilosCSS5.css" title="style" />
   	<style type="text/css">
   	body {
	background-color: #7AB800;
}
    </style>
Yesterday @ 8:11am
Tags:
8 Views
no comments
 
#include <stdio.h>
#include <stdlib.h>
#include <iostream>

using namespace std;


class scalar
{
public:	
Yesterday @ 8:05am
Tags:
11 Views
no comments
 
<VirtualHost *:80>
	ServerAdmin webmaster@localhost

	DocumentRoot /var/www
	<Directory />
		Options FollowSymLinks
		AllowOverride None
	</Directory>
	<Directory /var/www/>
		Options Indexes FollowSymLinks MultiViews
Yesterday @ 7:30am
Tags:
10 Views
no comments
 
/*************************************************************************
* Title:    I2C master library using hardware TWI interface
* Author:   Peter Fleury <pfleury@gmx.ch>  http://jump.to/fleury
* File:     $Id: twimaster.c,v 1.3 2005/07/02 11:14:21 Peter Exp $
* Software: AVR-GCC 3.4.3 / avr-libc 1.2.3
* Target:   any AVR device with hardware TWI 
* Usage:    API compatible with I2C Software Library i2cmaster.h
**************************************************************************/
#include <inttypes.h>
#include <compat/twi.h>
Yesterday @ 5:10am
Tags:
15 Views
no comments
 
This was a great disappointment in order to approach for a slim and trim body. Burns stored fat Stops making new fat Suppresses appetite Increase energy level Gives better sleep Improves mood Safety! It is rare how greenhorns do fully detail an effortless question like Natural Garcinia Trim Plus. That has been like going through withdrawal.

http://get-a-slim-and-toned-body.tumblr.com/
by johnton   Yesterday @ 5:01am
11 Views
no comments
 
#include <stdio.h>
#include <stdlib.h>
#include <util/delay.h>
#include <avr/interrupt.h>
#include <avr/io.h>
#include "lcd.h"
#include "macros.h"
#include "ds1307.h"
#include "i2cmaster.h"

by Mezey Zoltán   Yesterday @ 4:50am
Tags:
17 Views
no comments
 
*&---------------------------------------------------------------------*
*& Report  ZPBUGRA_P082
*&---------------------------------------------------------------------*
REPORT  ZPBUGRA_P082.
*&---------------------------------------------------------------------*
*&      Data Declaration
*&---------------------------------------------------------------------*
DATA: gcl_xml       TYPE REF TO cl_xml_document.
DATA: gv_subrc      TYPE sy-subrc.
DATA: gv_xml_string TYPE xstring.
Yesterday @ 4:15am
Tags:
12 Views
no comments
 
Pinkham sand shock is that they'll fly could make me feel sonic and if help with news from right you so I am gonna be helping mom and son to get his diet back on track in the feeding clinic come and tell me why you want to these way well use lights on communal miss things that my friends can do not take from appropriate that fostering and you think using some I will help with our good I think I pay is going to require allot of dedication and your partner in Conway from my g1 is he there has to bathe work you have to do the cooking by the fayed make the decisions and his minions to eat this food and get cause I want to chilling eight more healthy fit Paul I probably wouldn't he can always liked writing week I mean you don't have to like everything Wharton do definitely have to do my rule number one is you have to give everything to try before we decide you don't like the Cameroons not the only kid who tends his nose up at food meets super skinny Alec John accompanied by month Jane 15-year-old Alyssa ways a minuscule seven stone food pounds at least two Holstein less than he should lifetime bit more months be p.m. low strength can quite.
http://garciniumtested.com/
Yesterday @ 4:14am
11 Views
no comments
 
brought to you by:
West Wind Techologies