code string | repo_name string | path string | language string | license string | size int64 |
|---|---|---|---|---|---|
triangle1
0.0 0.0 0.0 0.0 1.0 0.0 1.0 1.0
0.0 0.0 20.0 0.0 1.0 0.0 1.0 0.0
20.0 0.0 20.0 0.0 1.0 0.0 0.0 0.0
triangle2
0.0 0.0 0.0 0.0 1.0 0.0 1.0 1.0
20.0 0.0 0.0 0.0 1.0 0.0 0.0 1.0
... | zzfall2012csci580 | trunk/cuda/CS580HW5/ppot.asc | AGS Script | gpl3 | 207,922 |
// MainFrm.cpp : implementation of the CMainFrame class
//
#include "stdafx.h"
#include "CS580HW.h"
#include "MainFrm.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMa... | zzfall2012csci580 | trunk/cuda/CS580HW5/MainFrm.cpp | C++ | gpl3 | 2,510 |
#ifndef COMMON_H
#define COMMON_H
#include "Gz.h"
#include "math.h"
#define SMALL_NUM 0.00000001
class Ray
{
public:
GzCoord origin;
GzCoord direction;
Ray(){};
Ray(GzCoord aOrigin, GzCoord aDirection);
};
class Triangle
{
public:
GzCoord vertexList[3];
GzCoord normalList[3];
GzTexture... | zzfall2012csci580 | trunk/cuda/CS580HW5/common.h | C++ | gpl3 | 2,034 |
// Application4.h: interface for the Application4 class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_APPLICATION5_H__43A7FA9C_6CD6_4A79_9567_2354BFEFAFFB__INCLUDED_)
#define AFX_APPLICATION5_H__43A7FA9C_6CD6_4A79_9567_2354BFEFAFFB__INCLUDED_
#if _MSC_VER > 1000
#... | zzfall2012csci580 | trunk/cuda/CS580HW5/Application5.h | C++ | gpl3 | 648 |
/* CS580 Homework 3 */
#include "stdafx.h"
#include "stdio.h"
#include "math.h"
#include "Gz.h"
#include "rend.h"
#include "book.h"
#include "cuda.h"
#include <limits.h>
__host__ __device__ short ctoi(float color);
__host__ __device__ bool vectorZero(GzCoord vector);
__host__ __device__ void vectorConst... | zzfall2012csci580 | trunk/cuda/CS580HW5/rend.cu | Cuda | gpl3 | 73,112 |
/*
* Copyright 1993-2010 NVIDIA Corporation. All rights reserved.
*
* NVIDIA Corporation and its licensors retain all intellectual property and
* proprietary rights in and to this software and related documentation.
* Any use, reproduction, disclosure, or distribution of this software
* and related documen... | zzfall2012csci580 | trunk/cuda/CS580HW5/book.h | C++ | gpl3 | 5,887 |
/* CS580 HW */
#include "stdafx.h"
#include "Gz.h"
#include "disp.h"
int GzNewFrameBuffer(char** framebuffer, int width, int height)
{
/* create a framebuffer:
-- allocate memory for framebuffer : (sizeof)GzPixel x width x height
-- pass back pointer
*/
//check the bound of width
if(width >... | zzfall2012csci580 | trunk/cuda/CS580HW5/disp.cpp | C++ | gpl3 | 6,157 |
// TranslateDlg.cpp : implementation file
//
#include "stdafx.h"
#include "CS580HW.h"
#include "TranslateDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CTranslateDlg ... | zzfall2012csci580 | trunk/cuda/CS580HW5/TranslateDlg.cpp | C++ | gpl3 | 1,203 |
#include "common.h"
Ray::Ray(GzCoord aOrigin, GzCoord aDirection){
for(int i = 0; i < 3; i++){
origin[i] = aOrigin[i];
direction[i] = aDirection[i];
}
}
Triangle::Triangle(GzCoord aVertexList[], GzCoord aNormalList[], GzTextureIndex aUVList[]){
for(int i = 0; i < 3; i++){
for(int j = 0; j < 3; j++... | zzfall2012csci580 | trunk/cuda/CS580HW5/common.cpp | C++ | gpl3 | 6,351 |
#if !defined(AFX_TRANSLATEDLG_H__6A9F2403_0CB5_43AD_8F54_0DEB8C3A1A5A__INCLUDED_)
#define AFX_TRANSLATEDLG_H__6A9F2403_0CB5_43AD_8F54_0DEB8C3A1A5A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TranslateDlg.h : header file
//
/////////////////////////////////////////////////////////... | zzfall2012csci580 | trunk/cuda/CS580HW5/TranslateDlg.h | C++ | gpl3 | 1,322 |
// CS580HWView.h : interface of the CCS580HWView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_CS580HWVIEW_H__F4D29CBB_F832_426E_9878_3B454FBDB8F6__INCLUDED_)
#define AFX_CS580HWVIEW_H__F4D29CBB_F832_426E_9878_3B454FBDB8F6__INCLUDED_
#if _MSC_VER > 1000... | zzfall2012csci580 | trunk/cuda/CS580HW5/CS580HWView.h | C++ | gpl3 | 1,831 |
#include "disp.h" /* include your own disp.h file (e.g. hw1)*/
#include "common.h"
#include <vector>
using namespace std;
/* Camera defaults */
#define DEFAULT_FOV 35.0
#define DEFAULT_IM_Z (-10.0) /* world coords for image plane origin */
#define DEFAULT_IM_Y (5.0) /* default look-at point = 0,0,0 */
... | zzfall2012csci580 | trunk/cuda/CS580HW5/rend.h | C++ | gpl3 | 3,453 |
// CS580HWView.cpp : implementation of the CCS580HWView class
//
#include "stdafx.h"
#include "CS580HW.h"
#include "CS580HWDoc.h"
#include "CS580HWView.h"
#include "RotateDlg.h"
#include "TranslateDlg.h"
#include "ScaleDlg.h"
#include "disp.h"
#include "Application5.h"
#ifdef _DEBUG
#define new DEBU... | zzfall2012csci580 | trunk/cuda/CS580HW5/CS580HWView.cpp | C++ | gpl3 | 7,671 |
#include "common.h"
Ray::Ray(GzCoord aOrigin, GzCoord aDirection){
for(int i = 0; i < 3; i++){
origin[i] = aOrigin[i];
direction[i] = aDirection[i];
}
}
Triangle::Triangle(GzCoord aVertexList[], GzCoord aNormalList[], GzTextureIndex aUVList[]){
for(int i = 0; i < 3; i++){
for(int j = 0; j < 3; j++... | zzfall2012csci580 | trunk/cuda/CS580HW5/common.cu | Cuda | gpl3 | 3,067 |
// Application.h: interface for the Application class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_APPLICATION_H__3387B79A_B69F_491D_B782_81D9CAFAAB0F__INCLUDED_)
#define AFX_APPLICATION_H__3387B79A_B69F_491D_B782_81D9CAFAAB0F__INCLUDED_
#if _MSC_VER > 1000
#prag... | zzfall2012csci580 | trunk/cuda/CS580HW5/Application.h | C++ | gpl3 | 907 |
#if !defined(AFX_ROTATEDLG_H__5FF9F00A_12D3_4CE2_858C_3CAF9D561CFA__INCLUDED_)
#define AFX_ROTATEDLG_H__5FF9F00A_12D3_4CE2_858C_3CAF9D561CFA__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// RotateDlg.h : header file
//
//////////////////////////////////////////////////////////////////... | zzfall2012csci580 | trunk/cuda/CS580HW5/RotateDlg.h | C++ | gpl3 | 1,399 |
// ScaleDlg.cpp : implementation file
//
#include "stdafx.h"
#include "CS580HW.h"
#include "ScaleDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CScaleDlg dialog
... | zzfall2012csci580 | trunk/cuda/CS580HW5/ScaleDlg.cpp | C++ | gpl3 | 1,151 |
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#if !defined(AFX_STDAFX_H__1AA02F44_F81E_4466_97E7_81D0C86A84D4__INCLUDED_)
#define AFX_STDAFX_H__1AA02F44_F81E_4466_97E7_81D0C86A84D4__INCLUDED_
... | zzfall2012csci580 | trunk/cuda/CS580HW5/StdAfx.h | C | gpl3 | 1,054 |
// CS580HWDoc.h : interface of the CCS580HWDoc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_CS580HWDOC_H__C28F4603_B299_4DB1_9E4D_835F8AA79918__INCLUDED_)
#define AFX_CS580HWDOC_H__C28F4603_B299_4DB1_9E4D_835F8AA79918__INCLUDED_
#if _MSC_VER > 1000
#p... | zzfall2012csci580 | trunk/zhouzhao/CS580HWDoc.h | C++ | gpl3 | 1,486 |
// CS580HW.cpp : Defines the class behaviors for the application.
//
#include "stdafx.h"
#include "CS580HW.h"
#include "MainFrm.h"
#include "CS580HWDoc.h"
#include "CS580HWView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
////////////////////////... | zzfall2012csci580 | trunk/zhouzhao/CS580HW.cpp | C++ | gpl3 | 4,132 |
// stdafx.cpp : source file that includes just the standard includes
// CS580HW.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
| zzfall2012csci580 | trunk/zhouzhao/StdAfx.cpp | C++ | gpl3 | 209 |
/* Texture functions for cs580 GzLib */
#include "stdafx.h"
#include "stdio.h"
#include "Gz.h"
#include "math.h"
GzColor *image;
int xs, ys;
int reset = 1;
//for procedural texturing
int xSize = 100;
int ySize = 100;
int boardSize = 10;
/* Image texture function */
int tex_fun(float u, float v, G... | zzfall2012csci580 | trunk/zhouzhao/tex_fun.cpp | C++ | gpl3 | 2,609 |
/*
* disp.h -- include file for Display
* USC csci 580
*/
/* define general display pixel-type */
#ifndef GZ_PIXEL
typedef struct {
GzIntensity red;
GzIntensity green;
GzIntensity blue;
GzIntensity alpha;
GzDepth z;
} GzPixel;
#define GZ_PIXEL
#endif;
/* define a displa... | zzfall2012csci580 | trunk/zhouzhao/disp.h | C | gpl3 | 1,464 |
// CS580HW.h : main header file for the CS580HW application
//
#if !defined(AFX_CS580HW_H__D4F247BC_D609_4BAC_8C3E_871F891962B3__INCLUDED_)
#define AFX_CS580HW_H__D4F247BC_D609_4BAC_8C3E_871F891962B3__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef __AFXWIN_H__
#error include... | zzfall2012csci580 | trunk/zhouzhao/CS580HW.h | C++ | gpl3 | 1,367 |
// Application.cpp: implementation of the Application class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "CS580HW.h"
#include "Application.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
////////... | zzfall2012csci580 | trunk/zhouzhao/Application.cpp | C++ | gpl3 | 737 |
/*
* Gz.h - include file for the cs580 rendering library
*/
/*
* universal constants
*/
#define GZ_SUCCESS 0
#define GZ_FAILURE 1
/*
* display classes
*/
#define GZ_RGBAZ_DISPLAY 1
/*
* rendering classes
*/
#define GZ_Z_BUFFER_RENDER 1
/*
* name list tokens
*/... | zzfall2012csci580 | trunk/zhouzhao/Gz.h | C | gpl3 | 3,599 |
// CS580HWDoc.cpp : implementation of the CCS580HWDoc class
//
#include "stdafx.h"
#include "CS580HW.h"
#include "CS580HWDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
... | zzfall2012csci580 | trunk/zhouzhao/CS580HWDoc.cpp | C++ | gpl3 | 1,762 |
// Application5.cpp: implementation of the Application5 class.
//
//////////////////////////////////////////////////////////////////////
/*
* application test code for homework assignment #5
*/
#include "stdafx.h"
#include "CS580HW.h"
#include "Application5.h"
#include "Gz.h"
#include "disp.h"
#include ... | zzfall2012csci580 | trunk/zhouzhao/Application5.cpp | C++ | gpl3 | 8,761 |
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by CS580HW.rc
//
#define IDD_ABOUTBOX 100
#define IDR_MAINFRAME 128
#define IDR_CS580HTYPE 129
#define IDI_ICON1 130
#define IDD_ROTATE ... | zzfall2012csci580 | trunk/zhouzhao/resource.h | C | gpl3 | 1,469 |
// RotateDlg.cpp : implementation file
//
#include "stdafx.h"
#include "CS580HW.h"
#include "RotateDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CRotateDlg dialog
... | zzfall2012csci580 | trunk/zhouzhao/RotateDlg.cpp | C++ | gpl3 | 2,053 |
#if !defined(AFX_SCALEDLG_H__2FAFBEB4_9C06_4E8A_92F3_DD1111331F90__INCLUDED_)
#define AFX_SCALEDLG_H__2FAFBEB4_9C06_4E8A_92F3_DD1111331F90__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ScaleDlg.h : header file
//
/////////////////////////////////////////////////////////////////////... | zzfall2012csci580 | trunk/zhouzhao/ScaleDlg.h | C++ | gpl3 | 1,276 |
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__0BC69CCC_EE7A_46A6_93F2_3B8CCCA8FC6C__INCLUDED_)
#define AFX_MAINFRM_H__0BC69CCC_EE7A_46A6_93F2_3B8CCCA8FC6C__INCLUDED_
#if _MSC_VER > 1000
#pragma once... | zzfall2012csci580 | trunk/zhouzhao/MainFrm.h | C++ | gpl3 | 1,581 |
/* CS580 Homework 3 */
#include "stdafx.h"
#include "stdio.h"
#include "math.h"
#include "Gz.h"
#include "rend.h"
#include <limits.h>
short ctoi(float color);
int GzRotXMat(float degree, GzMatrix mat)
{
// Create rotate matrix : rotate along x axis
// Pass back the matrix using mat value
mat[0][0... | zzfall2012csci580 | trunk/zhouzhao/rend.cpp | C++ | gpl3 | 67,700 |
triangle1
0.0 0.0 0.0 0.0 1.0 0.0 1.0 1.0
0.0 0.0 20.0 0.0 1.0 0.0 1.0 0.0
20.0 0.0 20.0 0.0 1.0 0.0 0.0 0.0
triangle2
0.0 0.0 0.0 0.0 1.0 0.0 1.0 1.0
20.0 0.0 0.0 0.0 1.0 0.0 0.0 1.0
... | zzfall2012csci580 | trunk/zhouzhao/ppot.asc | AGS Script | gpl3 | 207,922 |
// MainFrm.cpp : implementation of the CMainFrame class
//
#include "stdafx.h"
#include "CS580HW.h"
#include "MainFrm.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMa... | zzfall2012csci580 | trunk/zhouzhao/MainFrm.cpp | C++ | gpl3 | 2,510 |
#ifndef COMMON_H
#define COMMON_H
#include "Gz.h"
#include "math.h"
#define SMALL_NUM 0.00000001
class Ray
{
public:
GzCoord origin;
GzCoord direction;
Ray(){};
Ray(GzCoord aOrigin, GzCoord aDirection);
};
class Triangle
{
public:
GzCoord vertexList[3];
GzCoord normalList[3];
GzTexture... | zzfall2012csci580 | trunk/zhouzhao/common.h | C++ | gpl3 | 2,053 |
// Application4.h: interface for the Application4 class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_APPLICATION5_H__43A7FA9C_6CD6_4A79_9567_2354BFEFAFFB__INCLUDED_)
#define AFX_APPLICATION5_H__43A7FA9C_6CD6_4A79_9567_2354BFEFAFFB__INCLUDED_
#if _MSC_VER > 1000
#... | zzfall2012csci580 | trunk/zhouzhao/Application5.h | C++ | gpl3 | 648 |
/* CS580 HW */
#include "stdafx.h"
#include "Gz.h"
#include "disp.h"
int GzNewFrameBuffer(char** framebuffer, int width, int height)
{
/* create a framebuffer:
-- allocate memory for framebuffer : (sizeof)GzPixel x width x height
-- pass back pointer
*/
//check the bound of width
if(width >... | zzfall2012csci580 | trunk/zhouzhao/disp.cpp | C++ | gpl3 | 6,157 |
// TranslateDlg.cpp : implementation file
//
#include "stdafx.h"
#include "CS580HW.h"
#include "TranslateDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CTranslateDlg ... | zzfall2012csci580 | trunk/zhouzhao/TranslateDlg.cpp | C++ | gpl3 | 1,203 |
#include "common.h"
Ray::Ray(GzCoord aOrigin, GzCoord aDirection){
for(int i = 0; i < 3; i++){
origin[i] = aOrigin[i];
direction[i] = aDirection[i];
}
}
Triangle::Triangle(GzCoord aVertexList[], GzCoord aNormalList[], GzTextureIndex aUVList[]){
for(int i = 0; i < 3; i++){
for(int j = 0; j < 3; j++... | zzfall2012csci580 | trunk/zhouzhao/common.cpp | C++ | gpl3 | 8,059 |
#if !defined(AFX_TRANSLATEDLG_H__6A9F2403_0CB5_43AD_8F54_0DEB8C3A1A5A__INCLUDED_)
#define AFX_TRANSLATEDLG_H__6A9F2403_0CB5_43AD_8F54_0DEB8C3A1A5A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TranslateDlg.h : header file
//
/////////////////////////////////////////////////////////... | zzfall2012csci580 | trunk/zhouzhao/TranslateDlg.h | C++ | gpl3 | 1,322 |
// CS580HWView.h : interface of the CCS580HWView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_CS580HWVIEW_H__F4D29CBB_F832_426E_9878_3B454FBDB8F6__INCLUDED_)
#define AFX_CS580HWVIEW_H__F4D29CBB_F832_426E_9878_3B454FBDB8F6__INCLUDED_
#if _MSC_VER > 1000... | zzfall2012csci580 | trunk/zhouzhao/CS580HWView.h | C++ | gpl3 | 1,831 |
#include "disp.h" /* include your own disp.h file (e.g. hw1)*/
#include "common.h"
#include <vector>
using namespace std;
/* Camera defaults */
#define DEFAULT_FOV 35.0
#define DEFAULT_IM_Z (-10.0) /* world coords for image plane origin */
#define DEFAULT_IM_Y (5.0) /* default look-at point = 0,0,0 */
#d... | zzfall2012csci580 | trunk/zhouzhao/rend.h | C++ | gpl3 | 3,165 |
// CS580HWView.cpp : implementation of the CCS580HWView class
//
#include "stdafx.h"
#include "CS580HW.h"
#include "CS580HWDoc.h"
#include "CS580HWView.h"
#include "RotateDlg.h"
#include "TranslateDlg.h"
#include "ScaleDlg.h"
#include "disp.h"
#include "Application5.h"
#ifdef _DEBUG
#define new DEBU... | zzfall2012csci580 | trunk/zhouzhao/CS580HWView.cpp | C++ | gpl3 | 7,671 |
// Application.h: interface for the Application class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_APPLICATION_H__3387B79A_B69F_491D_B782_81D9CAFAAB0F__INCLUDED_)
#define AFX_APPLICATION_H__3387B79A_B69F_491D_B782_81D9CAFAAB0F__INCLUDED_
#if _MSC_VER > 1000
#prag... | zzfall2012csci580 | trunk/zhouzhao/Application.h | C++ | gpl3 | 907 |
#if !defined(AFX_ROTATEDLG_H__5FF9F00A_12D3_4CE2_858C_3CAF9D561CFA__INCLUDED_)
#define AFX_ROTATEDLG_H__5FF9F00A_12D3_4CE2_858C_3CAF9D561CFA__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// RotateDlg.h : header file
//
//////////////////////////////////////////////////////////////////... | zzfall2012csci580 | trunk/zhouzhao/RotateDlg.h | C++ | gpl3 | 1,399 |
// ScaleDlg.cpp : implementation file
//
#include "stdafx.h"
#include "CS580HW.h"
#include "ScaleDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CScaleDlg dialog
... | zzfall2012csci580 | trunk/zhouzhao/ScaleDlg.cpp | C++ | gpl3 | 1,151 |
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#if !defined(AFX_STDAFX_H__1AA02F44_F81E_4466_97E7_81D0C86A84D4__INCLUDED_)
#define AFX_STDAFX_H__1AA02F44_F81E_4466_97E7_81D0C86A84D4__INCLUDED_
... | zzfall2012csci580 | trunk/zhouzhao/StdAfx.h | C | gpl3 | 1,054 |
package org.xmlrpc.android;
public class Tag {
static final String LOG = "XMLRPC";
static final String METHOD_CALL = "methodCall";
static final String METHOD_NAME = "methodName";
static final String METHOD_RESPONSE = "methodResponse";
static final String PARAMS = "params";
static final String PARAM = "param";
s... | zyx1986-drupal | src/org/xmlrpc/android/Tag.java | Java | gpl2 | 455 |
package org.xmlrpc.android;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.StringReader;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
impo... | zyx1986-drupal | src/org/xmlrpc/android/XMLRPCSerializer.java | Java | gpl2 | 7,323 |
package org.xmlrpc.android;
/**
* A Base64 Encoder/Decoder.
*
* <p>
* This class is used to encode and decode data in Base64 format as described in
* RFC 1521.
*
* <p>
* This is "Open Source" software and released under the <a
* href="http://www.gnu.org/licenses/lgpl.html">GNU/LGPL</a> license.<br>
* It is... | zyx1986-drupal | src/org/xmlrpc/android/Base64Coder.java | Java | gpl2 | 5,441 |
package org.xmlrpc.android;
public class XMLRPCFault extends XMLRPCException {
/**
*
*/
private static final long serialVersionUID = 5676562456612956519L;
private String faultString;
private int faultCode;
public XMLRPCFault(String faultString, int faultCode) {
super("XMLRPC Fault: " + faultString + " [co... | zyx1986-drupal | src/org/xmlrpc/android/XMLRPCFault.java | Java | gpl2 | 529 |
package org.xmlrpc.android;
/**
* Allows to pass any XMLRPCSerializable object as input parameter.
* When implementing getSerializable() you should return
* one of XMLRPC primitive types (or another XMLRPCSerializable: be careful not going into
* recursion by passing this object reference!)
*/
public interface... | zyx1986-drupal | src/org/xmlrpc/android/XMLRPCSerializable.java | Java | gpl2 | 569 |
package org.xmlrpc.android;
public class XMLRPCException extends Exception {
/**
*
*/
private static final long serialVersionUID = 7499675036625522379L;
public XMLRPCException(Exception e) {
super(e);
}
public XMLRPCException(String string) {
super(string);
}
}
| zyx1986-drupal | src/org/xmlrpc/android/XMLRPCException.java | Java | gpl2 | 281 |
package org.xmlrpc.android;
import java.io.IOException;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import org.xmlpull.v1.XmlSerializer;
public interface IXMLRPCSerializer {
String TAG_NAME = "name";
String TAG_MEMBER = "member";
String TAG_VALUE = "value";
String TAG_DATA ... | zyx1986-drupal | src/org/xmlrpc/android/IXMLRPCSerializer.java | Java | gpl2 | 868 |
package org.xmlrpc.android;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.StringWriter;
import java.net.URI;
import java.net.URL;
import java.util.Map;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
impo... | zyx1986-drupal | src/org/xmlrpc/android/XMLRPCClient.java | Java | gpl2 | 13,438 |
package org.xmlrpc.android;
import java.io.IOException;
import org.xmlpull.v1.XmlSerializer;
import android.util.Xml;
class XMLRPCCommon {
protected XmlSerializer serializer;
protected IXMLRPCSerializer iXMLRPCSerializer;
XMLRPCCommon() {
serializer = Xml.newSerializer();
iXMLRPCSerializer = new XMLRPCSer... | zyx1986-drupal | src/org/xmlrpc/android/XMLRPCCommon.java | Java | gpl2 | 1,155 |
/**
* Copyright (C) 2010 Christian Meyer
* This file is part of Drupal Editor.
*
* Drupal Editor 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 of the License, or
* (at your option) an... | zyx1986-drupal | src/ch/dissem/android/drupal/model/Tag.java | Java | gpl2 | 3,269 |
/**
* Copyright (C) 2010 Christian Meyer
* This file is part of Drupal Editor.
*
* Drupal Editor 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 of the License, or
* (at your opti... | zyx1986-drupal | src/ch/dissem/android/drupal/model/DAO.java | Java | gpl2 | 6,117 |
/**
* Copyright (C) 2010 Christian Meyer
* This file is part of Drupal Editor.
*
* Drupal Editor 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 of the License, or
* (at your option) an... | zyx1986-drupal | src/ch/dissem/android/drupal/model/WDAO.java | Java | gpl2 | 7,168 |
/**
* Copyright (C) 2010 Christian Meyer
* This file is part of Drupal Editor.
*
* Drupal Editor 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 of the License, or
* (at your option) an... | zyx1986-drupal | src/ch/dissem/android/drupal/model/UsersBlog.java | Java | gpl2 | 1,970 |
/**
* Copyright (C) 2010 Christian Meyer
* This file is part of Drupal Editor.
*
* Drupal Editor 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 of the License, or
* (at your option) an... | zyx1986-drupal | src/ch/dissem/android/drupal/model/CategoryInfo.java | Java | gpl2 | 3,199 |
/**
* Copyright (C) 2010 Christian Meyer
* This file is part of Drupal Editor.
*
* Drupal Editor 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 of the License, or
* (at your opti... | zyx1986-drupal | src/ch/dissem/android/drupal/model/NamedObject.java | Java | gpl2 | 1,347 |
/**
* Copyright (C) 2010 Christian Meyer
* This file is part of Drupal Editor.
*
* Drupal Editor 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 of the License, or
* (at your option) an... | zyx1986-drupal | src/ch/dissem/android/drupal/model/Post.java | Java | gpl2 | 4,918 |
/**
* Copyright (C) 2010 Christian Meyer
* This file is part of Drupal Editor.
*
* Drupal Editor 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 of the License, or
* (at your opti... | zyx1986-drupal | src/ch/dissem/android/drupal/model/Site.java | Java | gpl2 | 6,101 |
/**
* Copyright (C) 2010 Christian Meyer
* This file is part of Drupal Editor.
*
* Drupal Editor 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 of the License, or
* (at your opti... | zyx1986-drupal | src/ch/dissem/android/drupal/PostView.java | Java | gpl2 | 1,574 |
/**
* Copyright (C) 2010 christian
* This file is part of Drupal Editor.
*
* Drupal Editor 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 of the License, or
* (at your option) any late... | zyx1986-drupal | src/ch/dissem/android/drupal/ShareReceiver.java | Java | gpl2 | 2,077 |
/**
* Copyright (C) 2010 Christian Meyer
* This file is part of Drupal Editor.
*
* Drupal Editor 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 of the License, or
* (at your option) an... | zyx1986-drupal | src/ch/dissem/android/drupal/PostAdapter.java | Java | gpl2 | 1,649 |
/**
* Copyright (C) 2010 Christian Meyer
* This file is part of Drupal Editor.
*
* Drupal Editor 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 of the License, or
* (at your option) an... | zyx1986-drupal | src/ch/dissem/android/drupal/Settings.java | Java | gpl2 | 6,202 |
/**
* Copyright (C) 2010 Christian Meyer
* This file is part of Drupal Editor.
*
* Drupal Editor 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 of the License, or
* (at your opt... | zyx1986-drupal | src/ch/dissem/android/drupal/EditSite.java | Java | gpl2 | 5,422 |
/**
* Copyright (C) 2010 Christian Meyer
* This file is part of Drupal Editor.
*
* Drupal Editor 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 of the License, or
* (at your option) an... | zyx1986-drupal | src/ch/dissem/android/drupal/EditPost.java | Java | gpl2 | 10,379 |
/**
* Copyright (C) 2010 Christian Meyer
* This file is part of Drupal Editor.
*
* Drupal Editor 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 of the License, or
* (at your option) an... | zyx1986-drupal | src/ch/dissem/android/drupal/TagList.java | Java | gpl2 | 4,539 |
/**
* Copyright (C) 2010 Christian Meyer
* This file is part of Drupal Editor.
*
* Drupal Editor 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 of the License, or
* (at your option) an... | zyx1986-drupal | src/ch/dissem/android/drupal/About.java | Java | gpl2 | 1,273 |
/**
* Copyright (C) 2010 Christian Meyer
* This file is part of Drupal Editor.
*
* Drupal Editor 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 of the License, or
* (at your option) an... | zyx1986-drupal | src/ch/dissem/android/drupal/Main.java | Java | gpl2 | 2,411 |
/**
* Copyright (C) 2010 christian
* This file is part of Drupal Editor.
*
* Drupal Editor 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 of the License, or
* (at your option) any late... | zyx1986-drupal | src/ch/dissem/android/drupal/SiteSelector.java | Java | gpl2 | 7,897 |
/**
* Copyright (C) 2010 Christian Meyer
* This file is part of Drupal Editor.
*
* Drupal Editor 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 of the License, or
* (at your option) an... | zyx1986-drupal | src/ch/dissem/android/drupal/LocationDialog.java | Java | gpl2 | 3,652 |
/**
* Copyright (C) 2010 Christian Meyer
* This file is part of Drupal Editor.
*
* Drupal Editor 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 of the License, or
* (at your option) an... | zyx1986-drupal | src/ch/dissem/android/drupal/RecentEntries.java | Java | gpl2 | 6,198 |
/**
* Copyright (C) 2010 Christian Meyer
* This file is part of Drupal Editor.
*
* Drupal Editor 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 of the License, or
* (at your option) an... | zyx1986-drupal | src/ch/dissem/android/utils/MultiChoiceListAdapter.java | Java | gpl2 | 3,455 |
/**
* Copyright (C) 2010 Christian Meyer
* This file is part of Drupal Editor.
*
* Drupal Editor 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 of the License, or
* (at your option) an... | zyx1986-drupal | src/ch/dissem/android/utils/MultiChoice.java | Java | gpl2 | 3,104 |
/**
* Copyright (C) 2010 Christian Meyer
* This file is part of Drupal Editor.
*
* Drupal Editor 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 of the License, or
* (at your option) an... | zyx1986-drupal | src/ch/dissem/android/utils/CustomExceptionHandler.java | Java | gpl2 | 5,500 |
/**
* Copyright (C) 2010 christian
* This file is part of Drupal Editor.
*
* Drupal Editor 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 of the License, or
* (at your option) any late... | zyx1986-drupal | src/ch/dissem/android/utils/ThreadingUtils.java | Java | gpl2 | 1,152 |
<?php
// database host
$db_host = "localhost:3306";
// database name
$db_name = "zy-sms";
// database username
$db_user = "root";
// database password
$db_pass = "2816843";
// table prefix
$prefix = "zy_";
$timezone = "PRC";
$cookie_path = "/";
$cookie_domain = "";
$session = "1440";
define... | zy-sms | trunk/zy-sms/config/config.php | PHP | asf20 | 571 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
/**
* Smarty lower modifier plugin
*
* Type: modifier<br>
* Name: lower<br>
* Purpose: convert string to lowercase
*
* @link http://smarty.php.net/manual/en/language.modifier.lower.php lower (Smarty... | zy-sms | trunk/zy-sms/smarty/plugins/modifiercompiler.lower.php | PHP | asf20 | 870 |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
/**
* Smarty upper modifier plugin
*
* Type: modifier<br>
* Name: lower<br>
* Purpose: convert string to uppercase
*
* @link http://smarty.php.net/manual/en/language.modifier.upper.php lower (Sm... | zy-sms | trunk/zy-sms/smarty/plugins/modifiercompiler.upper.php | PHP | asf20 | 824 |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
/**
* Smarty count_words modifier plugin
*
* Type: modifier<br>
* Name: count_words<br>
* Purpose: count the number of words in a text
*
* @link http://smarty.php.net/manual/en/language.modifie... | zy-sms | trunk/zy-sms/smarty/plugins/modifiercompiler.count_words.php | PHP | asf20 | 914 |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsFunction
*/
/**
* Smarty {html_table} function plugin
*
* Type: function<br>
* Name: html_table<br>
* Date: Feb 17, 2003<br>
* Purpose: make an html table from an array of data<br>
*
*
* Examples:
* <pre>
* {table loop=... | zy-sms | trunk/zy-sms/smarty/plugins/function.html_table.php | PHP | asf20 | 5,465 |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
/**
* Smarty strip_tags modifier plugin
*
* Type: modifier<br>
* Name: strip_tags<br>
* Purpose: strip html tags from text
*
* @link http://smarty.php.net/manual/en/language.modifier.strip.tags.... | zy-sms | trunk/zy-sms/smarty/plugins/modifiercompiler.strip_tags.php | PHP | asf20 | 773 |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
/**
* Smarty string_format modifier plugin
*
* Type: modifier<br>
* Name: string_format<br>
* Purpose: format strings via sprintf
*
* @link http://smarty.php.net/manual/en/language.modifier.str... | zy-sms | trunk/zy-sms/smarty/plugins/modifiercompiler.string_format.php | PHP | asf20 | 615 |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
/**
* Smarty default modifier plugin
*
* Type: modifier<br>
* Name: default<br>
* Purpose: designate default value for empty variables
*
* @link http://smarty.php.net/manual/en/language.modifier... | zy-sms | trunk/zy-sms/smarty/plugins/modifiercompiler.default.php | PHP | asf20 | 822 |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsFunction
*/
/**
* Smarty {html_checkboxes} function plugin
*
* File: function.html_checkboxes.php<br>
* Type: function<br>
* Name: html_checkboxes<br>
* Date: 24.Feb.2003<br>
* Purpose: Prints out a list of checkb... | zy-sms | trunk/zy-sms/smarty/plugins/function.html_checkboxes.php | PHP | asf20 | 4,413 |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsFunction
*/
/**
* Smarty {cycle} function plugin
*
* Type: function<br>
* Name: cycle<br>
* Date: May 3, 2002<br>
* Purpose: cycle through given values<br>
* Input:
* - name = name of cycle (optional)
* - valu... | zy-sms | trunk/zy-sms/smarty/plugins/function.cycle.php | PHP | asf20 | 3,318 |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
/**
* Smarty count_paragraphs modifier plugin
*
* Type: modifier<br>
* Name: count_paragraphs<br>
* Purpose: count the number of paragraphs in a text
* @link http://smarty.php.net/manual/en/language... | zy-sms | trunk/zy-sms/smarty/plugins/modifiercompiler.count_paragraphs.php | PHP | asf20 | 696 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage PluginsModifier
*/
/**
* Smarty spacify modifier plugin
*
* Type: modifier<br>
* Name: spacify<br>
* Purpose: add spaces between characters in a string
*
* @link http://smarty.php.net/manual/en/language.modifier.spacify.php spacify (Smarty... | zy-sms | trunk/zy-sms/smarty/plugins/modifier.spacify.php | PHP | asf20 | 1,029 |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsFunction
*/
/**
* Smarty {html_radios} function plugin
*
* File: function.html_radios.php<br>
* Type: function<br>
* Name: html_radios<br>
* Date: 24.Feb.2003<br>
* Purpose: Prints out a list of radio input type... | zy-sms | trunk/zy-sms/smarty/plugins/function.html_radios.php | PHP | asf20 | 4,894 |
<?php
/**
* Smarty plugin to format text blocks
*
* @package Smarty
* @subpackage PluginsBlock
*/
/**
* Smarty {textformat}{/textformat} block plugin
*
* Type: block function<br>
* Name: textformat<br>
* Purpose: format text a certain way with preset styles
* or custom wrap/indent setti... | zy-sms | trunk/zy-sms/smarty/plugins/block.textformat.php | PHP | asf20 | 2,930 |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
/**
* Smarty strip modifier plugin
*
* Type: modifier<br>
* Name: strip<br>
* Purpose: Replace all repeated spaces, newlines, tabs
* with a single space or supplied replacement string.... | zy-sms | trunk/zy-sms/smarty/plugins/modifiercompiler.strip.php | PHP | asf20 | 820 |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifier
*/
/**
* Smarty capitalize modifier plugin
*
* Type: modifier<br>
* Name: capitalize<br>
* Purpose: capitalize words in the string
*
* @link
* @author Monte Ohrt <monte at ohrt dot com>
* @param string $
* @return... | zy-sms | trunk/zy-sms/smarty/plugins/modifier.capitalize.php | PHP | asf20 | 984 |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage Debug
*/
/**
* Smarty debug_print_var modifier plugin
*
* Type: modifier<br>
* Name: debug_print_var<br>
* Purpose: formats variable contents for display in the console
*
* @link http://smarty.php.net/manual/en/language.modifier.debug.... | zy-sms | trunk/zy-sms/smarty/plugins/modifier.debug_print_var.php | PHP | asf20 | 2,840 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
/**
* Smarty indent modifier plugin
*
* Type: modifier<br>
* Name: indent<br>
* Purpose: indent lines of text
* @link http://smarty.php.net/manual/en/language.modifier.indent.php
* indent (Sm... | zy-sms | trunk/zy-sms/smarty/plugins/modifiercompiler.indent.php | PHP | asf20 | 754 |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsFunction
*/
/**
* Smarty {fetch} plugin
*
* Type: function<br>
* Name: fetch<br>
* Purpose: fetch file, web or ftp data and display results
* @link http://smarty.php.net/manual/en/language.function.fetch.php {fetch}
* (Smarty... | zy-sms | trunk/zy-sms/smarty/plugins/function.fetch.php | PHP | asf20 | 8,557 |