code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231
values | license stringclasses 13
values | size int64 1 2.01M |
|---|---|---|---|---|---|
/*
*==========================================================================
*
* crc16.c
*
* 16 bit CRC with polynomial x^16+x^12+x^5+1
*
*==========================================================================
*####ECOSGPLCOPYRIGHTBEGIN####
* -------------------------------------------
* This ... | 1001-study-uboot | lib/crc16.c | C | gpl3 | 4,849 |
/*
Red Black Trees
(C) 1999 Andrea Arcangeli <andrea@suse.de>
(C) 2002 David Woodhouse <dwmw2@infradead.org>
This program 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 Lice... | 1001-study-uboot | lib/rbtree.c | C | gpl3 | 8,629 |
/*
* Adapted from Linux v2.6.36 kernel: arch/powerpc/kernel/asm-offsets.c
*
* This program is used to generate definitions needed by
* assembly language modules.
*
* We use the technique used in the OSF Mach kernel code:
* generate asm statements containing #defines,
* compile this file to assembler, and then e... | 1001-study-uboot | lib/asm-offsets.c | C | gpl3 | 928 |
/*
* Copyright (c) 2011 The Chromium OS Authors.
* See file CREDITS for list of people who contributed to this
* project.
*
* This program 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 ... | 1001-study-uboot | lib/fdtdec.c | C | gpl3 | 4,022 |
/*
* (C) Copyright 2000
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program 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 S... | 1001-study-uboot | lib/ctype.c | C | gpl3 | 2,207 |
int errno = 0;
| 1001-study-uboot | lib/errno.c | C | gpl3 | 15 |
#
# (C) Copyright 2000-2006
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
# See file CREDITS for list of people who contributed to this
# project.
#
# This program 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 Softwa... | 1001-study-uboot | lib/Makefile | Makefile | gpl3 | 2,183 |
/*
* Code adapted from uClibc-0.9.30.3
*
* It is therefore covered by the GNU LESSER GENERAL PUBLIC LICENSE
* Version 2.1, February 1999
*
* Wolfgang Denk <wd@denx.de>
*/
/* This code is derived from a public domain shell sort routine by
* Ray Gardner and found in Bob Stout's snippets collection. The
* origi... | 1001-study-uboot | lib/qsort.c | C | gpl3 | 1,685 |
#include <config.h>
/*-------------------------------------------------------------*/
/*--- Huffman coding low-level stuff ---*/
/*--- huffman.c ---*/
/*-------------------------------------------------------------*/
/*--
This file is a part of bzip... | 1001-study-uboot | lib/bzlib_huffman.c | C | gpl3 | 7,114 |
/*
* Copyright 2008 Freescale Semiconductor, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* Version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WI... | 1001-study-uboot | lib/addr_map.c | C | gpl3 | 1,982 |
/*
* lzodefs.h -- architecture, OS and compiler specific defines
*
* Copyright (C) 1996-2005 Markus F.X.J. Oberhumer <markus@oberhumer.com>
*
* The full LZO package can be found at:
* http://www.oberhumer.com/opensource/lzo/
*
* Changed for kernel use by:
* Nitin Gupta <nitingupta910@gmail.com>
* Richa... | 1001-study-uboot | lib/lzo/lzodefs.h | C | gpl3 | 1,084 |
#
# (C) Copyright 2008
# Stefan Roese, DENX Software Engineering, sr@denx.de.
#
# See file CREDITS for list of people who contributed to this
# project.
#
# This program 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 Fou... | 1001-study-uboot | lib/lzo/Makefile | Makefile | gpl3 | 1,366 |
/*
* LZO1X Decompressor from MiniLZO
*
* Copyright (C) 1996-2005 Markus F.X.J. Oberhumer <markus@oberhumer.com>
*
* The full LZO package can be found at:
* http://www.oberhumer.com/opensource/lzo/
*
* Changed for kernel use by:
* Nitin Gupta <nitingupta910@gmail.com>
* Richard Purdie <rpurdie@openedhan... | 1001-study-uboot | lib/lzo/lzo1x_decompress.c | C | gpl3 | 6,644 |
#include <config.h>
/*-------------------------------------------------------------*/
/*--- Table for doing CRCs ---*/
/*--- crctable.c ---*/
/*-------------------------------------------------------------*/
/*--
This file is a part of bzip... | 1001-study-uboot | lib/bzlib_crctable.c | C | gpl3 | 6,412 |
#include <config.h>
#include <common.h>
#include <watchdog.h>
/*
* This file is a modified version of bzlib.c from the bzip2-1.0.2
* distribution which can be found at http://sources.redhat.com/bzip2/
*/
/*-------------------------------------------------------------*/
/*--- Library top-level functions. ... | 1001-study-uboot | lib/bzlib.c | C | gpl3 | 43,576 |
/* Copyright (C) 1992, 1997 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
... | 1001-study-uboot | lib/ldiv.c | C | gpl3 | 2,166 |
/*
* Usefuls routines based on the LzmaTest.c file from LZMA SDK 4.65
*
* Copyright (C) 2007-2009 Industrie Dial Face S.p.A.
* Luigi 'Comio' Mantellini (luigi.mantellini@idf-hit.com)
*
* Copyright (C) 1999-2005 Igor Pavlov
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This pr... | 1001-study-uboot | lib/lzma/LzmaTools.c | C | gpl3 | 4,081 |
/* LzmaDec.c -- LZMA Decoder
2008-11-06 : Igor Pavlov : Public domain */
#include <config.h>
#include <common.h>
#include <watchdog.h>
#include "LzmaDec.h"
#include <linux/string.h>
#define kNumTopBits 24
#define kTopValue ((UInt32)1 << kNumTopBits)
#define kNumBitModelTotalBits 11
#define kBitModelTotal (1 << kNum... | 1001-study-uboot | lib/lzma/LzmaDec.c | C | gpl3 | 27,677 |
/*
* Usefuls routines based on the LzmaTest.c file from LZMA SDK 4.65
*
* Copyright (C) 2007-2008 Industrie Dial Face S.p.A.
* Luigi 'Comio' Mantellini (luigi.mantellini@idf-hit.com)
*
* Copyright (C) 1999-2005 Igor Pavlov
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This pr... | 1001-study-uboot | lib/lzma/LzmaTools.h | C | gpl3 | 1,253 |
#!/bin/sh
usage() {
echo "Usage: $0 lzmaVERSION.tar.bz2" >&2
echo >&2
exit 1
}
if [ "$1" = "" ] ; then
usage
fi
if [ ! -f $1 ] ; then
echo "$1 doesn't exist!" >&2
exit 1
fi
BASENAME=`basename $1 .tar.bz2`
TMPDIR=/tmp/tmp_lib_$BASENAME
FILES="C/LzmaDec.h
C/Types.h
C/LzmaDec.c
history.txt
... | 1001-study-uboot | lib/lzma/import_lzmasdk.sh | Shell | gpl3 | 527 |
#
# Copyright (C) 2007-2008 Industrie Dial Face S.p.A.
# Luigi 'Comio' Mantellini (luigi.mantellini@idf-hit.com)
#
# (C) Copyright 2003-2006
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
# See file CREDITS for list of people who contributed to this
# project.
#
# This program is free software; you can redis... | 1001-study-uboot | lib/lzma/Makefile | Makefile | gpl3 | 1,516 |
/* LzmaDec.h -- LZMA Decoder
2008-10-04 : Igor Pavlov : Public domain */
#ifndef __LZMADEC_H
#define __LZMADEC_H
#include "Types.h"
/* #define _LZMA_PROB32 */
/* _LZMA_PROB32 can increase the speed on some CPUs,
but memory usage for CLzmaDec::probs will be doubled in that case */
#ifdef _LZMA_PROB32
#define CLzm... | 1001-study-uboot | lib/lzma/LzmaDec.h | C | gpl3 | 6,788 |
/* Types.h -- Basic types
2008-11-23 : Igor Pavlov : Public domain */
#ifndef __7Z_TYPES_H
#define __7Z_TYPES_H
#include <stddef.h>
#ifdef _WIN32
#include <windows.h>
#endif
#define SZ_OK 0
#define SZ_ERROR_DATA 1
#define SZ_ERROR_MEM 2
#define SZ_ERROR_CRC 3
#define SZ_ERROR_UNSUPPORTED 4
#define SZ_ERROR_PARAM 5... | 1001-study-uboot | lib/lzma/Types.h | C | gpl3 | 4,665 |
/*
* linux/lib/vsprintf.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*/
/* vsprintf.c -- Lars Wirzenius & Linus Torvalds. */
/*
* Wirzenius wrote this portably, Torvalds fucked it up :-)
*
* from hush: simple_itoa() was lifted from boa-0.93.15
*/
#include <stdarg.h>
#include <linux/types.h>
#include <linu... | 1001-study-uboot | lib/vsprintf.c | C | gpl3 | 17,578 |
/* zutil.c -- target dependent utility functions for the compression library
* Copyright (C) 1995-2005 Jean-loup Gailly.
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* @(#) $Id$ */
#include "zutil.h"
#ifndef NO_DUMMY_DECL
struct internal_state {int dummy;}; /* for buggy compil... | 1001-study-uboot | lib/zlib/zutil.c | C | gpl3 | 1,715 |
/* inflate.h -- internal inflate state definition
* Copyright (C) 1995-2004 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* WARNING: this file should *not* be used by applications. It is
part of the implementation of the compression library and is
subject to change. A... | 1001-study-uboot | lib/zlib/inflate.h | C | gpl3 | 5,916 |
/* adler32.c -- compute the Adler-32 checksum of a data stream
* Copyright (C) 1995-2004 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* @(#) $Id$ */
#define ZLIB_INTERNAL
#include "zlib.h"
#define BASE 65521UL /* largest prime smaller than 65536 */
#define NMAX 5552
/... | 1001-study-uboot | lib/zlib/adler32.c | C | gpl3 | 3,813 |
/* inflate.c -- zlib decompression
* Copyright (C) 1995-2005 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
local void fixedtables OF((struct inflate_state FAR *state));
local int updatewindow OF((z_streamp strm, unsigned out));
int ZEXPORT inflateReset(strm)
z_streamp strm;
... | 1001-study-uboot | lib/zlib/inflate.c | C | gpl3 | 34,697 |
/* inffixed.h -- table for decoding fixed codes
* Generated automatically by makefixed().
*/
/* WARNING: this file should *not* be used by applications. It
is part of the implementation of the compression library and
is subject to change. Applications should only use zlib.h.
*/
... | 1001-study-uboot | lib/zlib/inffixed.h | C | gpl3 | 6,343 |
#
# (C) Copyright 2000-2006
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
# See file CREDITS for list of people who contributed to this
# project.
#
# This program 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 Softwa... | 1001-study-uboot | lib/zlib/Makefile | Makefile | gpl3 | 1,326 |
/* inftrees.c -- generate Huffman trees for efficient decoding
* Copyright (C) 1995-2005 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* U-boot: we already included these
#include "zutil.h"
#include "inftrees.h"
*/
#define MAXBITS 15
/*
If you use the zlib library in a ... | 1001-study-uboot | lib/zlib/inftrees.c | C | gpl3 | 13,710 |
/* zutil.h -- internal interface and configuration of the compression library
* Copyright (C) 1995-2005 Jean-loup Gailly.
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* WARNING: this file should *not* be used by applications. It is
part of the implementation of the compression lib... | 1001-study-uboot | lib/zlib/zutil.h | C | gpl3 | 3,269 |
/* Glue between u-boot and upstream zlib */
#ifndef __GLUE_ZLIB_H__
#define __GLUE_ZLIB_H__
#include <common.h>
#include <compiler.h>
#include <asm/unaligned.h>
#include <watchdog.h>
#include "u-boot/zlib.h"
/* avoid conflicts */
#undef OFF
#undef ASMINF
#undef POSTINC
#undef NO_GZIP
#define GUNZIP
#undef STDC
#undef... | 1001-study-uboot | lib/zlib/zlib.h | C | gpl3 | 340 |
/* inffast.h -- header to use inffast.c
* Copyright (C) 1995-2003 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* WARNING: this file should *not* be used by applications. It is
part of the implementation of the compression library and is
subject to change. Application... | 1001-study-uboot | lib/zlib/inffast.h | C | gpl3 | 407 |
/* inffast.c -- fast decoding
* Copyright (C) 1995-2004 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* U-boot: we already included these
#include "zutil.h"
#include "inftrees.h"
#include "inflate.h"
#include "inffast.h"
*/
#ifndef ASMINF
/* Allow machine dependent optimi... | 1001-study-uboot | lib/zlib/inffast.c | C | gpl3 | 13,441 |
/*
* This file is derived from various .h and .c files from the zlib-1.2.3
* distribution by Jean-loup Gailly and Mark Adler, with some additions
* by Paul Mackerras to aid in implementing Deflate compression and
* decompression for PPP packets. See zlib.h for conditions of
* distribution and use.
*
* Changes t... | 1001-study-uboot | lib/zlib/zlib.c | C | gpl3 | 751 |
/* inftrees.h -- header to use inftrees.c
* Copyright (C) 1995-2005 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* WARNING: this file should *not* be used by applications. It is
part of the implementation of the compression library and is
subject to change. Applicati... | 1001-study-uboot | lib/zlib/inftrees.h | C | gpl3 | 2,373 |
/*
* FIPS-180-2 compliant SHA-256 implementation
*
* Copyright (C) 2001-2003 Christophe Devine
*
* This program 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
* (a... | 1001-study-uboot | lib/sha256.c | C | gpl3 | 8,128 |
/*
* (C) Copyright 2000-2009
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the F... | 1001-study-uboot | lib/time.c | C | gpl3 | 1,361 |
#ifndef _LIBFDT_INTERNAL_H
#define _LIBFDT_INTERNAL_H
/*
* libfdt - Flat Device Tree manipulation
* Copyright (C) 2006 David Gibson, IBM Corporation.
*
* libfdt is dual licensed: you can use it either under the terms of
* the GPL, or the BSD license, at your option.
*
* a) This library is free software; you can... | 1001-study-uboot | lib/libfdt/libfdt_internal.h | C | gpl3 | 3,668 |
/*
* libfdt - Flat Device Tree manipulation
* Copyright (C) 2006 David Gibson, IBM Corporation.
*
* libfdt is dual licensed: you can use it either under the terms of
* the GPL, or the BSD license, at your option.
*
* a) This library is free software; you can redistribute it and/or
* modify it under the ter... | 1001-study-uboot | lib/libfdt/fdt_ro.c | C | gpl3 | 14,091 |
#
# (C) Copyright 2000-2007
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
# See file CREDITS for list of people who contributed to this
# project.
#
# This program 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 Softwa... | 1001-study-uboot | lib/libfdt/Makefile | Makefile | gpl3 | 1,498 |
/*
* libfdt - Flat Device Tree manipulation
* Copyright (C) 2006 David Gibson, IBM Corporation.
*
* libfdt is dual licensed: you can use it either under the terms of
* the GPL, or the BSD license, at your option.
*
* a) This library is free software; you can redistribute it and/or
* modify it under the ter... | 1001-study-uboot | lib/libfdt/fdt_strerror.c | C | gpl3 | 3,455 |
/*
* libfdt - Flat Device Tree manipulation
* Copyright (C) 2006 David Gibson, IBM Corporation.
*
* libfdt is dual licensed: you can use it either under the terms of
* the GPL, or the BSD license, at your option.
*
* a) This library is free software; you can redistribute it and/or
* modify it under the ter... | 1001-study-uboot | lib/libfdt/fdt_sw.c | C | gpl3 | 7,152 |
/*
* libfdt - Flat Device Tree manipulation
* Copyright (C) 2006 David Gibson, IBM Corporation.
*
* libfdt is dual licensed: you can use it either under the terms of
* the GPL, or the BSD license, at your option.
*
* a) This library is free software; you can redistribute it and/or
* modify it under the ter... | 1001-study-uboot | lib/libfdt/fdt_wip.c | C | gpl3 | 3,723 |
/*
* libfdt - Flat Device Tree manipulation
* Copyright (C) 2006 David Gibson, IBM Corporation.
*
* libfdt is dual licensed: you can use it either under the terms of
* the GPL, or the BSD license, at your option.
*
* a) This library is free software; you can redistribute it and/or
* modify it under the ter... | 1001-study-uboot | lib/libfdt/fdt.c | C | gpl3 | 6,045 |
/*
* libfdt - Flat Device Tree manipulation
* Copyright (C) 2006 David Gibson, IBM Corporation.
*
* libfdt is dual licensed: you can use it either under the terms of
* the GPL, or the BSD license, at your option.
*
* a) This library is free software; you can redistribute it and/or
* modify it under the ter... | 1001-study-uboot | lib/libfdt/fdt_rw.c | C | gpl3 | 12,394 |
/*
* Copyright (C) 2003 Bernardo Innocenti <bernie@develer.com>
*
* Based on former do_div() implementation from asm-parisc/div64.h:
* Copyright (C) 1999 Hewlett-Packard Co
* Copyright (C) 1999 David Mosberger-Tang <davidm@hpl.hp.com>
*
*
* Generic C version of 64bit/32bit division and modulo, with
* 64bit res... | 1001-study-uboot | lib/div64.c | C | gpl3 | 1,140 |
/*
* (C) Copyright 2003
* Gerry Hamel, geh@ti.com, Texas Instruments
*
* This program 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 later ver... | 1001-study-uboot | lib/circbuf.c | C | gpl3 | 2,319 |
/*
* This implementation is based on code from uClibc-0.9.30.3 but was
* modified and extended for use within U-Boot.
*
* Copyright (C) 2010 Wolfgang Denk <wd@denx.de>
*
* Original license header:
*
* Copyright (C) 1993, 1995, 1996, 1997, 2002 Free Software Foundation, Inc.
* This file is part of the GNU C Lib... | 1001-study-uboot | lib/hashtable.c | C | gpl3 | 20,379 |
/*
* crc7.c
*
* This source code is licensed under the GNU General Public License,
* Version 2. See the file COPYING for more details.
*/
#include <linux/types.h>
#include <linux/crc7.h>
/* Table for CRC-7 (polynomial x^7 + x^3 + 1) */
const u8 crc7_syndrome_table[256] = {
0x00, 0x09, 0x12, 0x1b, 0x24, 0x... | 1001-study-uboot | lib/crc7.c | C | gpl3 | 2,181 |
/*
* Generic network code. Moved from net.c
*
* Copyright 1994 - 2000 Neil Russell.
* Copyright 2000 Roland Borde
* Copyright 2000 Paolo Scaffardi
* Copyright 2000-2002 Wolfgang Denk, wd@denx.de
* Copyright 2009 Dirk Behme, dirk.behme@googlemail.com
*
* See file CREDITS for list of people who contributed to th... | 1001-study-uboot | lib/net_utils.c | C | gpl3 | 1,367 |
jQuery(document).ready(function () {
jQuery("#facebook_right").hover(function () {
jQuery(this)
.stop(true, false)
.animate({ right: 0 }, 500); }, function () {
jQuery("#facebook_right")
.stop(true, false).animate({ right: -200 }, 500); });
}); | 11111111f | facebook-right.js | JavaScript | oos | 278 |
html {
background: url(http://2.bp.blogspot.com/-EjqUL8UKKFM/Up1wl9WCujI/AAAAAAAAAVM/P4vGSbR7dCo/s1600/BackME.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
background-color: #313131;
}
html body .content-out... | 11111111f | site.css | CSS | oos | 14,643 |
public class hello {
public static void main(String[] args){
System.out.println("hello world");
}
}
| 08bitummef | src/hello.java | Java | oos | 113 |
package client;
import java.io.*;
import java.net.Socket;
import java.util.Scanner;
public class Client_Chat {
public void Chat() throws IOException {
try {
Socket sk = new Socket("localhost", 3200);
//System.out.println(sk.getPort());
InputStream is = sk.get... | 11hca2ltnhandnkhanh | trunk/Client/src/client/Client_Chat.java | Java | gpl2 | 1,334 |
package client;
import java.io.IOException;
public class Main {
public static void main(String[] args) throws IOException{
Client_Chat cc = new Client_Chat();
cc.Chat();
}
}
| 11hca2ltnhandnkhanh | trunk/Client/src/client/Main.java | Java | gpl2 | 208 |
package server;
import java.io.*;
import java.net.*;
import java.util.Scanner;
public class Server_Chat {
public void Chat() throws IOException {
try {
ServerSocket sk = new ServerSocket(3200);
do {
//System.out.println("Waiting for a client...");
... | 11hca2ltnhandnkhanh | trunk/Client/src/server/Server_Chat.java | Java | gpl2 | 1,753 |
package server;
import java.io.IOException;
public class Main {
public static void main(String[] args) throws IOException{
Server_Chat sc = new Server_Chat();
sc.Chat();
}
}
| 11hca2ltnhandnkhanh | trunk/Client/src/server/Main.java | Java | gpl2 | 208 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package skdemo;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.lang.ClassNotFoundException;
import java.net.InetAddress;
import java.net.Socket;
... | 11hca2ltnhandnkhanh | trunk/SKDemo/src/skdemo/ClientSocketExample.java | Java | gpl2 | 1,544 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package skdemo;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.So... | 11hca2ltnhandnkhanh | trunk/SKDemo/src/skdemo/Client1.java | Java | gpl2 | 10,525 |
package skdemo;
import java.io.Serializable;
public class ChatMessage implements Serializable {
protected static final long serialVersionUID = 1112122200L;
// The different types of message sent by the Client
// WHOISIN to receive the list of the users connected
// MESSAGE an ordinary message
// L... | 11hca2ltnhandnkhanh | trunk/SKDemo/src/skdemo/ChatMessage.java | Java | gpl2 | 680 |
package skdemo;
import java.io.*;
import java.net.InetAddress;
import java.net.Socket;
public class SKDemoClient {
public static void main(String agrS[]) throws Exception
{
SKDemoClient abc=new SKDemoClient();
abc.run();
}
public void run() throws Exception
{
Sock... | 11hca2ltnhandnkhanh | trunk/SKDemo/src/skdemo/SKDemoClient.java | Java | gpl2 | 773 |
package skdemo;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.lang.ClassNotFoundException;
import java.lang.Runnable;
import java.lang.Thread;
import java.net.ServerSocket;
import java.net.Socket;
public class SKCl {
private ServerSocket se... | 11hca2ltnhandnkhanh | trunk/SKDemo/src/skdemo/SKCl.java | Java | gpl2 | 2,284 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package skdemo;
import java.io.*;
import java.net.*;
import java.text.SimpleDateFormat;
import java.util.*;
/*
* The server that can be run both as a console application or a GUI
*/
public class Server {
... | 11hca2ltnhandnkhanh | trunk/SKDemo/src/skdemo/Server.java | Java | gpl2 | 8,350 |
package skdemo;
import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
public class SKDemo {
public static void main(String[] args) throws Exception{
SKDemo abc=new SKDemo();
abc.run();
}
public void run() throws Exception
{
ServerSocket Server = new S... | 11hca2ltnhandnkhanh | trunk/SKDemo/src/skdemo/SKDemo.java | Java | gpl2 | 752 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package skdemo;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;
import javax.swing.JEditorPa... | 11hca2ltnhandnkhanh | trunk/SKDemo/src/skdemo/Server1.java | Java | gpl2 | 10,691 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package skdemo;
import java.net.*;
import java.io.*;
import java.util.*;
/*
* The Client that can be run both as a console or a GUI
*/
public class Client {
// for I/O
private ObjectInputStream sI... | 11hca2ltnhandnkhanh | trunk/SKDemo/src/skdemo/Client.java | Java | gpl2 | 6,843 |
package skdemo;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
/*
* The server as a GUI
*/
public class ServerGUI extends JFrame implements ActionListener, WindowListener {
private static final long serialVersionUID = 1L;
// the stop and start buttons
private JButton stopStart;
... | 11hca2ltnhandnkhanh | trunk/SKDemo/src/skdemo/ServerGUI.java | Java | gpl2 | 3,792 |
package skdemo;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
/*
* The Client with its GUI
*/
public class ClientGUI extends JFrame implements ActionListener {
private static final long serialVersionUID = 1L;
// will first hold "Username:", later on "Enter message"
private JLa... | 11hca2ltnhandnkhanh | trunk/SKDemo/src/skdemo/ClientGUI.java | Java | gpl2 | 5,675 |
// stdafx.cpp : source file that includes just the standard includes
// test.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
// TODO: reference any additional headers you need in STDAFX.H
// and not in this file
| 10bit1-group02-dsn | trunk/test/test/stdafx.cpp | C++ | gpl3 | 291 |
#pragma once
// The following macros define the minimum required platform. The minimum required platform
// is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run
// your application. The macros work by enabling all features available on platform versions up to and
/... | 10bit1-group02-dsn | trunk/test/test/targetver.h | C | gpl3 | 765 |
// test.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
Hello
return 0;
}
| 10bit1-group02-dsn | trunk/test/test/test.cpp | C++ | gpl3 | 165 |
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#pragma once
#include "targetver.h"
#include <stdio.h>
#include <tchar.h>
// TODO: reference additional headers your program requires here
| 10bit1-group02-dsn | trunk/test/test/stdafx.h | C | gpl3 | 320 |
#region File Description
//-----------------------------------------------------------------------------
// ErrorLogger.cs
//
// Microsoft XNA Community Game Platform
// Copyright (C) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
#endr... | 01-p-h-o-e | trunk/Tools/Content Generator/XNAContentCompiler/ErrorLogger.cs | C# | oos | 2,366 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace XNAContentCompiler
{
public class ComboItem
{
public string Name {get;set;}
public string Value {get; set;}
public string Other { get; set; }
public ComboItem(string Na... | 01-p-h-o-e | trunk/Tools/Content Generator/XNAContentCompiler/ComboItem.cs | C# | oos | 1,433 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | 01-p-h-o-e | trunk/Tools/Content Generator/XNAContentCompiler/Properties/AssemblyInfo.cs | C# | oos | 1,466 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.IO;
using System.Windows.Forms;
using System.Threading;
namespace XNAContentCompiler
{
public partial class Form1 : Form
{
private ComboItemCollection FileTypes;
private Comb... | 01-p-h-o-e | trunk/Tools/Content Generator/XNAContentCompiler/Form1.cs | C# | oos | 5,893 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Diagnostics;
using Microsoft.Build.Construction;
using Microsoft.Build.Evaluation;
using Microsoft.Build.Execution;
using Microsoft.Build.Framework;
namespace XNAContentCompiler
{
publi... | 01-p-h-o-e | trunk/Tools/Content Generator/XNAContentCompiler/ContentBuilder.cs | C# | oos | 13,105 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace XNAContentCompiler
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
... | 01-p-h-o-e | trunk/Tools/Content Generator/XNAContentCompiler/Program.cs | C# | oos | 510 |
using Leap;
using Phoe.Core;
using System.Collections.Generic;
namespace Phoe.LeapControl
{
public class SingleListener : Listener
{
public override void OnInit(Controller cntrlr)
{
//Console.WriteLine("Initialized");
}
public override void OnConnect(C... | 01-p-h-o-e | trunk/PHOE/Phoe/LeapControl/SingleListener.cs | C# | oos | 3,261 |
#region Config Preprosesor
#define USE_LEAP
#define USE_KEAYBOARD
#endregion
#region Using Statements
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Micro... | 01-p-h-o-e | trunk/PHOE/Phoe/Game1.cs | C# | oos | 8,387 |
#region Config Preprosesor
#define USE_LEAP
#define USE_KEAYBOARD
#endregion
#region Using Statements
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using Phoe.Core;
using Leap;
using Phoe.LeapControl;
#endregion
namespace Phoe.GameSt... | 01-p-h-o-e | trunk/PHOE/Phoe/GameStates/GS_GameExit.cs | C# | oos | 3,265 |
#region Config Preprosesor
#define USE_LEAP
#define USE_KEAYBOARD
#endregion
#region Using Statements
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using Phoe.Core;
using Leap;
using Phoe.LeapControl;
#endregion
namespace Phoe.GameSt... | 01-p-h-o-e | trunk/PHOE/Phoe/GameStates/GS_GameMenu.cs | C# | oos | 4,428 |
#region Config Preprosesor
#define USE_LEAP
#define USE_KEAYBOARD
#endregion
#region Using Statements
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using Phoe.Core;
using Leap;
using Phoe.LeapControl;
#endregion
namespace Phoe.GameSt... | 01-p-h-o-e | trunk/PHOE/Phoe/GameStates/GS_GamePlay.cs | C# | oos | 5,061 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | 01-p-h-o-e | trunk/PHOE/Phoe/Properties/AssemblyInfo.cs | C# | oos | 1,420 |
#region Using Statement
using System;
#endregion
#region Singleton ScreenConfig
namespace Phoe.Core
{
public sealed class StateMachine
{
private static StateMachine instance = null;
private static readonly object padlock = new Object();
private StateMachine() { }
... | 01-p-h-o-e | trunk/PHOE/Phoe/Core/StateMachine.cs | C# | oos | 998 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Phoe.Core
{
public class FingerPointStorage
{
public float g_X, g_Y;
public short numFing;
public bool isActive;
public FingerPointStorage(float x, float y, short num_f... | 01-p-h-o-e | trunk/PHOE/Phoe/Core/FingerPointStorage.cs | C# | oos | 469 |
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace Phoe.Core
{
public class GameObject
{
Texture2D texture;
public Vector2 Position;
public Vector2 Velocity;
public Color color;
public Rectangle BoundingBox
{
... | 01-p-h-o-e | trunk/PHOE/Phoe/Core/GameObject.cs | C# | oos | 1,080 |
using System;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
namespace Phoe.Helper
{
public class FPSCounterComponent : DrawableGameComponent
{
SpriteBatch spriteBatch;
SpriteFont spriteFont;
int frameRate = 0;
int frameCounter = 0;
... | 01-p-h-o-e | trunk/PHOE/Phoe/Helper/FPSCounterComponent.cs | C# | oos | 1,335 |
#region Using Statements
using System;
using System.Collections.Generic;
using System.Linq;
#endregion
namespace Phoe
{
#if WINDOWS || LINUX
/// <summary>
/// The main class.
/// </summary>
public static class Program
{
/// <summary>
/// The main entry point for the applica... | 01-p-h-o-e | trunk/PHOE/Phoe/Program.cs | C# | oos | 506 |
/*
* usart.c
*
* Created on: 2011/02/22
* Author: masayuki
*/
#include "stm32f4xx_conf.h"
#include <stdio.h>
#include <stdarg.h>
#include "lcd.h"
#include "usart.h"
#include "settings.h"
#include "xmodem.h"
void USART3_IRQHandler(void)
{
USART_Cmd(USART3, DISABLE);
USART_ClearITPendingBit(USART3, US... | 1137519-player | usart.c | C | lgpl | 3,589 |
/*
* pcf_font.h
*
* Created on: 2012/03/12
* Author: Tonsuke
*/
#ifndef PCF_FONT_H_
#define PCF_FONT_H_
#include "stm32f4xx_conf.h"
#include "lcd.h"
#include "fat.h"
static const char type[][21] = {
"PCF_PROPERTIES", \
"PCF_ACCELERATORS", \
"PCF_METRICS", \
"PCF_BITMAPS", \
"PCF_INK_METRICS", \
... | 1137519-player | pcf_font.h | C | lgpl | 3,562 |
/*
* xpt2046.h
*
* Created on: 2012/03/05
* Author: Tonsuke
*/
#ifndef XPT2046_H_
#define XPT2046_H_
#include "stm32f4xx_conf.h"
#include "delay.h"
#include "board_config.h"
#define TOUCH_PINIRQ_ENABLE (EXTI->IMR |= _BV(4)) // 外部割込みLine4許可TIM5_IRQn
#define TOUCH_PINIRQ_DISABLE (EXTI->IMR &= ~_BV(4)) /... | 1137519-player | xpt2046.h | C | lgpl | 1,057 |
/**
******************************************************************************
* @file usbd_desc.c
* @author MCD Application Team
* @version V1.1.0
* @date 19-March-2012
* @brief This file provides the USBD descriptors and string formating method.
**************************************... | 1137519-player | usbd_desc.c | C | lgpl | 8,525 |
# MCU name
MCU = -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -march=armv7e-m -mtune=cortex-m4 -mfloat-abi=softfp -mlittle-endian -mthumb-interwork
# Output format. (can be srec, ihex, binary)
FORMAT = ihex
# Target file name (without extension).
TARGET = stm32f4_motion_player
# IJG libjpeg directory
JPEG_DIR = ./jpeg... | 1137519-player | Makefile | Makefile | lgpl | 8,351 |
/*
* settings.h
*
* Created on: 2012/12/25
* Author: Tonsuke
*/
#ifndef SETTINGS_H_
#define SETTINGS_H_
#include <string.h>
#include <stdint.h>
#include "icon.h"
#include "xpt2046.h"
#include "sd.h"
#define VERSION_MAJOR 1
#define VERSION_MINOR 12
#define SETTING_TYPE_DIR 0
#define SETTING_TYPE_ITEM... | 1137519-player | settings.h | C | lgpl | 4,818 |
/*
* fat.h
*
* Created on: 2011/02/27
* Author: Tonsuke
*/
#ifndef FAT_H_
#define FAT_H_
#include "stm32f4xx_conf.h"
#include <stddef.h>
//MBR
#define MBR_BootDsc 446
#define MBR_FileSysDsc 450
#define MBR_BpbSector 454
//BPB
//FAT16
#define BS_jmpBoot 0
#define BS_OEMName 3
#define BPB_Byts... | 1137519-player | fat.h | C | lgpl | 7,863 |
/*
* aac.c
*
* Created on: 2012/03/27
* Author: Tonsuke
*/
#include "aac.h"
#include "pcf_font.h"
/* ***** BEGIN LICENSE BLOCK *****
* Source last modified: $Id: main.c,v 1.4 2005/07/05 21:08:13 ehyche Exp $
*
* Portions Copyright (c) 1995-2005 RealNetworks, Inc. All Rights Reserved.
*
* The content... | 1137519-player | aac.c | C | lgpl | 30,899 |
/*
* delay.c
*
* Created on: 2011/10/31
* Author: Tonsuke
*/
//=== Delay ms time define ===//
void Delayms(int i)
{
volatile int j,k;
for(j = 0;j < i;j++)
for(k = 0;k < 200;k++);
}
void Delay(int i)
{
volatile int j,k;
for(j = 0;j < i;j++)
for(k = 0;k < 8900;k++);
}
| 1137519-player | delay.c | C | lgpl | 289 |