code
string
repo_name
string
path
string
language
string
license
string
size
int64
package org.dict.kernel; public class Key implements IKey { private String fKey, fOffset, fLength; private String fComparableKey; /** * Contruct a dummy key, used for comparisons only */ public Key(String k, String off, String len) { super(); fKey = k; fOffset = off; fLength = len; } ...
zzdict
trunk/src/main/java/org/dict/kernel/Key.java
Java
gpl3
1,797
package org.dict.kernel; /** * Insert the type's description here. Creation date: (29.07.01 13:06:23) * * @author: Administrator */ public interface IKey { char TAB = '\t'; /** * Return the dictionary key. */ String getKey(); String getLength(); String getOffset(); }
zzdict
trunk/src/main/java/org/dict/kernel/IKey.java
Java
gpl3
305
package org.dict.kernel; /** * Insert the type's description here. Creation date: (25.02.2002 17:58:51) * * @author: */ public interface IWordPosition { String getKey(); int getPosition(); }
zzdict
trunk/src/main/java/org/dict/kernel/IWordPosition.java
Java
gpl3
212
package org.dict.kernel; import java.io.*; /** * Creation date: (11.03.2002 16:28:49) * * @author: duc */ public class PlainPrinter implements IAnswerPrinter { /** * PlainPrinter constructor comment. */ public PlainPrinter() { super(); } public void printAnswer(IRequest req, IAnswer a...
zzdict
trunk/src/main/java/org/dict/kernel/PlainPrinter.java
Java
gpl3
1,661
package org.dict.kernel; /** * Insert the type's description here. Creation date: (11.08.01 10:11:15) * * @author: Administrator */ public class KeyComparator implements IComparator { /** * KeyComparator constructor comment. */ public KeyComparator() { super(); } /** * compare method ...
zzdict
trunk/src/main/java/org/dict/kernel/KeyComparator.java
Java
gpl3
825
package org.dict.kernel; /** * Insert the type's description here. Creation date: (10.08.01 20:55:06) * * @author: Administrator */ public interface IAnswer { IWordList getAdjacentWords(); IDatabase getDatabase(); String getDefinition(); String getKey(); IWordList getMatches(); int ge...
zzdict
trunk/src/main/java/org/dict/kernel/IAnswer.java
Java
gpl3
512
package org.dict.kernel; /** * Insert the type's description here. Creation date: (28.08.01 23:37:36) * * @author: Administrator */ public interface IMorphAnalyzer { /** * Insert the method's description here. Creation date: (28.08.01 23:38:53) * * @return java.lang.String * @param word *...
zzdict
trunk/src/main/java/org/dict/kernel/IMorphAnalyzer.java
Java
gpl3
401
package org.dict.kernel; import java.io.IOException; public class MemoryKeyList extends KeyList { private byte[] fData; /** * MemoryKeyList constructor comment. */ protected MemoryKeyList() { super(); } /** * MemoryKeyList constructor comment. */ public MemoryKeyList(String fileName...
zzdict
trunk/src/main/java/org/dict/kernel/MemoryKeyList.java
Java
gpl3
2,156
package org.dict.kernel; import java.util.Vector; //import java.util.StringTokenizer; //import com.sun.java.util.collections.*; import java.io.*; /** * Insert the type's description here. Creation date: (29.07.01 12:47:32) * * @author: Administrator */ public class DictEngine implements IDictEngine { ...
zzdict
trunk/src/main/java/org/dict/kernel/DictEngine.java
Java
gpl3
5,947
/* * Created on 03.09.2003 * */ package org.dict.kernel; import java.io.PrintWriter; import java.io.IOException; /** * @author duc * */ public interface IAnswerPrinter { void printAnswer(IRequest req, IAnswer a, boolean matches, PrintWriter out) throws IOException; }
zzdict
trunk/src/main/java/org/dict/kernel/IAnswerPrinter.java
Java
gpl3
298
package org.dict.kernel; /** * Insert the type's description here. Creation date: (28.08.01 22:39:16) * * @author: Administrator */ public class ListUtil { private static void mergeSort(Object src[], Object dest[], int low, int high, IComparator c) { int length = high - low; // Insertion sort...
zzdict
trunk/src/main/java/org/dict/kernel/ListUtil.java
Java
gpl3
2,010
package org.dict.zip; import java.io.*; import java.util.zip.*; public class DictZipHeader { int headerLength; int[] chunks; int[] offsets; int extraLength; byte subfieldID1, subfieldID2; int subfieldLength; int subfieldVersion; int chunkLength; int chunkCount; /** * GZIP header magic ...
zzdict
trunk/src/main/java/org/dict/zip/DictZipHeader.java
Java
gpl3
5,763
package org.dict.zip; import java.io.*; public class RandomAccessInputStream extends InputStream { protected RandomAccessFile in; protected int mark = 0; public RandomAccessInputStream(RandomAccessFile in) { this.in = in; } public RandomAccessInputStream(String file, String mode) throws IOExc...
zzdict
trunk/src/main/java/org/dict/zip/RandomAccessInputStream.java
Java
gpl3
1,431
package org.dict.zip; import java.io.*; import java.util.zip.*; public class DictZipInputStream extends InflaterInputStream { /** * CRC-32 for uncompressed data. */ protected CRC32 crc = new CRC32(); /** * Indicates end of input stream. */ protected boolean eos; /** * Creates a new...
zzdict
trunk/src/main/java/org/dict/zip/DictZipInputStream.java
Java
gpl3
3,405
package org.dict.zip; /** * Insert the type's description here. Creation date: (28.07.01 22:57:34) * * @author: Administrator */ public class DictZipDataAccessor implements org.dict.kernel.IDataAccessor { String fDatafile; DictZipHeader fHeader; /** * DictZipDatabase constructor comment. */ ...
zzdict
trunk/src/main/java/org/dict/zip/DictZipDataAccessor.java
Java
gpl3
2,524
#!/usr/bin/env python2.5 from google.appengine.ext.webapp import util from google.appengine.ext import db import sys import os import datetime #import simplejson as json sys.path.insert(0, '.') import json #from twitter.api import Twitter #from twitter.oauth import OAuth #import twitter sys.path.insert(0, 'twitter....
zyh0532-beijingair
foobar.py
Python
gpl3
4,651
import cgi import os import sys import datetime import json #sys.path.insert(0, os.path.abspath(os.path.dirname(__file__))) sys.path.insert(0, 'twitter.zip') from twitter.api import Twitter from twitter.oauth import OAuth from google.appengine.ext.webapp import template from google.appengine.api import users from goo...
zyh0532-beijingair
beijingairstats.py
Python
gpl3
1,949
import string import types ## json.py implements a JSON (http://json.org) reader and writer. ## Copyright (C) 2005 Patrick D. Logan ## Contact mailto:patrickdlogan@stardecisions.com ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser Genera...
zyh0532-beijingair
json.py
Python
gpl3
10,236
body { font-family: "Lucida Sans", Helvetica, Arial, sans-serif; background-color: #DDDDDD; }
zyh0532-beijingair
stylesheets/main.css
CSS
gpl3
99
<html> <head> <link type="text/css" rel="stylesheet" href="/stylesheets/main.css" /> </head> <body> {% for greeting in greetings %} {% if greeting.author %} <b>On {{ greeting.date.date }} at {{ greeting.date.time }}, {{ greeting.author.nickname }}</b> wrote: {% else %} An anonym...
zyh0532-beijingair
index.html
HTML
gpl3
690
CC := gcc CXX := g++ CFLAGS := -ansi -g -Wall BIN = test1 SRC = main.cpp ../proto/test1.pb.cc INCLUDE = -I../include -I../include/zmq -I../proto LIB = -L../lib -lprotobuf-lite -lpthread all:$(BIN) $(BIN):$(SRC) $(CXX) $(CFLAGS) $(SRC) $(INCLUDE) $(LIB) -o $(BIN) -static
zybtest
trunk/pb_zmqtest/test1/Makefile
Makefile
asf20
280
#include <iostream> #include "test1.pb.h" using namespace std; int main() { Person person; person.set_id(100); person.set_name("zyb",3); person.set_email("yuanbo880828@163.com"); cout << "person.BypeSize():" << person.ByteSize() << endl;; cout << "person.TypeName():" << person.GetTypeName() << endl; ...
zybtest
trunk/pb_zmqtest/test1/main.cpp
C++
asf20
1,065
CC := gcc CXX := g++ CFLAGS := -ansi -lrt -g -Wall BIN = zmqtestserver1 SRC = main.cpp ../proto/test1.pb.cc INCLUDE = -I../include -I../include/zmq -I../proto LIB = -L../lib -lprotobuf-lite -lzmq all:$(BIN) $(BIN):$(SRC) $(CXX) $(CFLAGS) $(SRC) $(INCLUDE) $(LIB) -o $(BIN)
zybtest
trunk/pb_zmqtest/zmqserver_test1/Makefile
Makefile
asf20
284
#include <stdio.h> #include <string.h> #include "zmq.h" #include "unistd.h" int g_iTestCase = 1; void test1() { void *context = zmq_ctx_new (); // Socket to talk to clients void *responder = zmq_socket (context, ZMQ_REP); zmq_bind (responder, "tcp://*:5555"); while (1) { // Wait for ne...
zybtest
trunk/pb_zmqtest/zmqserver_test1/main.cpp
C++
asf20
939
.\tools\protobuf\win32\protoc -I=.\proto --cpp_out=.\proto .\proto\test1.proto
zybtest
trunk/pb_zmqtest/gen_proto.bat
Batchfile
asf20
78
/* Copyright (c) 2009-2011 250bpm s.r.o. Copyright (c) 2007-2011 Other contributors as noted in the AUTHORS file This file is part of 0MQ. 0MQ is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software F...
zybtest
trunk/pb_zmqtest/include/zmq/zmq_utils.h
C
asf20
2,134
/* Copyright (c) 2007-2012 iMatix Corporation Copyright (c) 2009-2011 250bpm s.r.o. Copyright (c) 2011 VMware, Inc. Copyright (c) 2007-2011 Other contributors as noted in the AUTHORS file This file is part of 0MQ. 0MQ is free software; you can redistribute it and/or modify it under the ter...
zybtest
trunk/pb_zmqtest/include/zmq/zmq.h
C
asf20
12,898
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/descriptor.h
C++
asf20
59,260
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/stubs/common.h
C++
asf20
40,749
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/stubs/once.h
C++
asf20
4,621
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/unknown_field_set.h
C++
asf20
8,917
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/message_lite.h
C++
asf20
11,571
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/wire_format_lite_inl.h
C++
asf20
32,902
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/descriptor_database.h
C++
asf20
17,219
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/text_format.h
C++
asf20
11,698
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/compiler/command_line_interface.h
C++
asf20
13,451
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/compiler/importer.h
C++
asf20
12,785
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/compiler/python/python_generator.h
C++
asf20
6,526
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/compiler/plugin.h
C++
asf20
3,393
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/compiler/cpp/cpp_generator.h
C++
asf20
2,950
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/compiler/code_generator.h
C++
asf20
5,992
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/compiler/java/java_generator.h
C++
asf20
2,932
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/compiler/parser.h
C++
asf20
19,462
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/reflection_ops.h
C++
asf20
3,476
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/wire_format.h
C++
asf20
11,973
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/generated_message_reflection.h
C++
asf20
20,866
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/message.h
C++
asf20
32,251
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/extension_set.h
C++
asf20
44,149
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/service.h
C++
asf20
13,081
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/repeated_field.h
C++
asf20
41,718
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/io/gzip_stream.h
C++
asf20
6,418
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/io/zero_copy_stream_impl_lite.h
C++
asf20
13,805
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/io/tokenizer.h
C++
asf20
12,869
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/io/coded_stream.h
C++
asf20
44,675
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/io/printer.h
C++
asf20
5,596
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/io/zero_copy_stream_impl.h
C++
asf20
13,533
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/io/zero_copy_stream.h
C++
asf20
9,610
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/generated_message_util.h
C++
asf20
3,038
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/wire_format_lite.h
C++
asf20
26,001
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistri...
zybtest
trunk/pb_zmqtest/include/google/protobuf/dynamic_message.h
C++
asf20
6,118
PROTOC=../tools/protobuf/protoc define gen_proto $(eval $1_OUT := $1.pb.h $1.pb.cc) $(eval $1_REQ := $1.proto) $($1_OUT):$($1_REQ) $(PROTOC) -I ./ --cpp_out=./ ./$($1_REQ) endef $(eval $(call gen_proto,test1)) $(eval $(call gen_proto,test2)) all:$(test1_OUT) $(test2_OUT) clean: rm *.h *.cc
zybtest
trunk/pb_zmqtest/proto/Makefile
Makefile
asf20
300
cp ./third_party/bin/protoc ./tools/protobuf cp ./third_party/lib/*.a ./lib
zybtest
trunk/pb_zmqtest/cplib.sh
Shell
asf20
77
#include <fcntl.h> int main() { int h = creat("a.txt", O_CREAT); return 0; }
zybtest
trunk/seniorlinux/openfile/a.cpp
C++
asf20
80
a:a.cpp g++ -g -o a a.cpp
zybtest
trunk/seniorlinux/openfile/Makefile
Makefile
asf20
27
#include <fcntl.h> #include <unistd.h> #include <stdlib.h> int main() { int fd = 0; fd = creat("file.hole",O_CREAT); write(fd, "1234", 4); lseek(fd, 2000, SEEK_SET); write(fd,"4567", 4); exit(0); return 0; }
zybtest
trunk/seniorlinux/holefile/a.cpp
C++
asf20
215
a:a.cpp g++ -g -o a a.cpp
zybtest
trunk/seniorlinux/holefile/Makefile
Makefile
asf20
27
#include <stdlib.h> #include <stdio.h> #include <unistd.h> static void my_exit1(void) { printf("my_exit1\n"); } int main(int argc,char* argv[]) { atexit(my_exit1); printf("hello\n"); for(int i=0;i<argc;i++) { printf("%d:%s\n", i, argv[i]); } int* a = (int*)malloc(sizeof(a)); *a = 100; printf("%d\n",*a);...
zybtest
trunk/seniorlinux/atexit/a.cpp
C++
asf20
396
a:a.cpp g++ -g -o a a.cpp
zybtest
trunk/seniorlinux/atexit/Makefile
Makefile
asf20
27
#!/bin/bash LOG_MYSQL_USER="yw" LOG_MYSQL_PWD="yw" LOG_SERVER_USER="zybzhao" LOG_SERVER_PWD="rWgCT#7Y" LOCALSVR="zybzhao@172.25.42.74" LOCALPASSMY="zyb" HOSTFILE='host.xml' EXEC_EXPECT_SSH_COMMON="set timeout 60000; expect \"*assword:*\" { send \"${LOG_SERVER_PWD}\\r\" } \"yes/no\" { send \"yes\\r\"; expect \"*assw...
zybtest
trunk/extract_log/.svn/text-base/extract_log.sh.svn-base
Shell
asf20
3,366
#!/bin/bash LOG_MYSQL_USER="yw" LOG_MYSQL_PWD="yw" LOG_SERVER_USER="zybzhao" LOG_SERVER_PWD="rWgCT#7Y" LOCALSVR="zybzhao@172.25.42.74" LOCALPASSMY="zyb" HOSTFILE='host.xml' EXEC_EXPECT_SSH_COMMON="set timeout 60000; expect \"*assword:*\" { send \"${LOG_SERVER_PWD}\\r\" } \"yes/no\" { send \"yes\\r\"; expect \"*assw...
zybtest
trunk/extract_log/extract_log.sh
Shell
asf20
3,366
gdb echo 100
zybtest
trunk/gdbtest/gdbtest.sh
Shell
asf20
13
from distutils.core import setup import py2exe setup(console = ["DeleteGso.py"])
zybtest
trunk/ObjExtrctor/DeleteObjSetup.py
Python
asf20
86
#encoding=gb2312 import sys import os g_deleteFilePath=""; g_BinPath=""; g_objDeleteSavePath=""; g_DeleteList=[]; def GetCurDir(): return sys.path[0]; def Main(): global g_deleteFilePath; global g_objectDirPath; global g_objDeleteSavePath; if len(sys.argv) != 4: ...
zybtest
trunk/ObjExtrctor/DeleteGso.py
Python
asf20
2,298
import os import sys import re g_filename_impoutput = 'ImpItemOutPut.txt'; g_filename_ralation = 'Relation.txt' g_filename_result= 'old_friend.input' g_oldfriend_getaward_gidlist = []; g_relation_gidlist = []; g_result = []; def parse_oldfriend_getaward_gidlist(): fp = open(g_filename_impout...
zybtest
trunk/oldfriendbugfix/main.py
Python
asf20
1,932
import sys import os import re import copy FILENAME_ZIGE = "zige"; FILENAME_JINPAI = "jinpai"; JINPAI_MAPPING = { 20747570:1, 20747571:2, 20747572:3, 20747573:4, 20747574:5 }; CHUANG_MAPPING = { 1:20747610, 2:20747609, 3:20747608, 4:20747607, 5:20747606}; class ...
zybtest
trunk/finance/main.py
Python
asf20
3,273
import SysConfig import ItemAnalysis class CAnalysis: def __init__(self): if SysConfig.bItemAnalysisOpen: self.itemAnalysis = ItemAnalysis.CItemAnalysis(); def process_lines(self, keywords, line): if SysConfig.bItemAnalysisOpen and keywords in SysConfig.list_item_c...
zybtest
trunk/python_acc_zhongqiu/Analysis.py
Python
asf20
533
#itemAnalysis config bItemAnalysisOpen = True; list_item_concerned_keywords = ['ItemConsume','ImpItemConsume','ItemFlow']; list_item_concerned_id = [20859031,20151070]; #propTypeFlow 0 adll prop nPropFlowType = 0; #---------------------------------------------------------------- #.gzfile time between this ti...
zybtest
trunk/python_acc_zhongqiu/SysConfig.py
Python
asf20
507
#!/usr/local/bin/python #encoding=gb2312 import os import sys import re import gzip import SysConfig import Analysis #store concerned gzfile; g_list_gzfile = []; #define concerned keyworks; g_list_concerned_keyworkds = SysConfig.list_concerned_keyworkds; #define concerned times g_list_concerned_t...
zybtest
trunk/python_acc_zhongqiu/main.py
Python
asf20
2,882
#!/usr/local/bin/python #encoding=gb2312 import os import sys import re import gzip import SysConfig import Analysis #store concerned gzfile; g_list_gzfile = []; #define concerned keyworks; g_list_concerned_keyworkds = SysConfig.list_concerned_keyworkds; #define concerned times g_list_concerned_t...
zybtest
trunk/python_acc_zhongqiu/.svn/text-base/main.py.svn-base
Python
asf20
2,882
class CPworldAnalysis(object): pass;
zybtest
trunk/python_acc_zhongqiu/PWorldAnalysis.py
Python
asf20
43
import SysConfig import datetime import copy import re class CItemAnalysis(object): def __init__(self): self.allData = {}; self.worldid = 0; for nItemId in SysConfig.list_item_concerned_id: self.allData[nItemId] = {}; itemdata = self.allData[nItemId]; nStartDate = SysConfig.list_concer...
zybtest
trunk/python_acc_zhongqiu/ItemAnalysis.py
Python
asf20
5,453
#ifndef TEST_H #define TEST_H class A { public: A(); ~A(); void Test(); }; #endif
zybtest
trunk/mktest1/test.h
C++
asf20
89
test:test.cpp g++ -g -o test test.cpp
zybtest
trunk/mktest1/Makefile
Makefile
asf20
41
#include <iostream> #include "test.h" using namespace std; A::A() { } A::~A() { } void A::Test() { cout << "hello world"; cout << endl; } int main() { A a; a.Test(); }
zybtest
trunk/mktest1/test.cpp
C++
asf20
178
#pragma once #include <Python.h> int sayHello(); static PyObject* SC_SayHello(PyObject* self, PyObject* args); PyMODINIT_FUNC initSayHello(void);
zybtest
trunk/WinTest/PythonTest/PyInterface.h
C
asf20
155
#pragma once #ifdef _DEBUG #undef _DEBUG #include <python.h> #define _DEBUG #else #include <python.h> #endif namespace CPython { inline int RunStr(const char* cmd) {return PyRun_SimpleString(cmd);} int RunFile(const char* fileName); }
zybtest
trunk/WinTest/PythonTest/CPython.h
C++
asf20
253
#include "stdafx.h" #include "PyInterface.h" #include <Python.h> #include <iostream> //#pragma comment(lib,"python25.lib") int sayHello() { std::cout << "Hello" << std::endl; return 1; } static PyObject* SC_SayHello(PyObject* self, PyObject* args) { const char* pStr = NULL; PyArg_ParseTuple(args,"s",...
zybtest
trunk/WinTest/PythonTest/PyInterface.cpp
C++
asf20
779
#include "stdafx.h" #include "CPython.h" namespace CPython { PyObject* g_pDict = 0; PyObject* g_pMainMod = 0; //struct Auto //{ // Auto() // { // Py_Initialize(); // g_pMainMod = PyImport_AddModule("__main__"); // g_pDict = PyModule_GetDict(g_pMainMod); // }; // ~Auto() // { // Py_Fin...
zybtest
trunk/WinTest/PythonTest/CPython.cpp
C++
asf20
648
#pragma once #define TEST10 #ifdef TEST10 class IInterFaceA { virtual int FuncA()=0; }; class A:public IInterFaceA { virtual int FuncA() { return 100; } }; #endif
zybtest
trunk/WinTest/TestStrCpy/Test.h
C++
asf20
194
<?php define("APP_NAME","admin"); include "./hdphp/hdphp.php"; ?>
zylv
trunk/admin.php
PHP
asf20
70
<?php if(!defined('PATH_HD')){exit;}define('TEMP_DIR_EXISTS',1);/** * Copyright [HD框架] (C)2011-2012 后盾网,Inc. * Encoding UTF-8 * Version $Id: newEmptyPHP.php 2011-7-5 下午01:53:33 * @author 向军 * Link http://www.houdunwang.com ...
zylv
trunk/temp/boot.php
PHP
asf20
63,195
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>jQuery UI Example Page</title> <link type="text/css" href="css/flick/jquery-ui-1.8.23.custom.css" rel="stylesheet" /> <script type="text/javascript" src="js/jquery-1.8.0.min.js"></script> <s...
zylv
trunk/static/ui/index.html
HTML
asf20
32,106
<?php /** * Copyright [HD框架] (C)2011-2012 houdunwang ,Inc. * Encoding UTF-8 * Version $Id: roleModel.php 2012-2-20 20:06:47 * @author 向军 * Link http://www.houdunwang.com * E-mail houdunwang@gmail.com ...
zylv
trunk/setup/model/roleModel.php
PHP
asf20
531
<?php /** * Copyright [HD框架] (C)2011-2012 houdunwang ,Inc. * Encoding UTF-8 * Version $Id: modelView.php 2012-2-20 17:13:25 * @author 向军 * Link http://www.houdunwang.com * E-mail houdunwang@gmail.com ...
zylv
trunk/setup/model/userModel.php
PHP
asf20
804
<?php if(!defined("PATH_HD"))exit;?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title><?php echo $_LANGUAGE['success_html_title']...
zylv
trunk/setup/temp/Applications/setup_A/index_C/delcache/compile/02a60cc48da3bd59b2cf8de1ac20d56f.php
PHP
asf20
2,725
<?php if(!defined("PATH_HD"))exit;?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>欢迎使用 后盾HD框架安装配置</title> <meta http-equiv="content-type" content="text/htm...
zylv
trunk/setup/temp/Applications/setup_A/index_C/index/compile/b21a3d9a2c1d3ff47067518a56e7020c.php
PHP
asf20
786
<?php if(!defined("PATH_HD"))exit;?> <?php if(!defined("PATH_HD"))exit;?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>欢迎使用 后盾HD框架安装配置</title> <meta http-...
zylv
trunk/setup/temp/Applications/setup_A/index_C/index/compile/bca3dee299304089faca505b418da1f2.php
PHP
asf20
3,289
<?php if(!defined("PATH_HD"))exit;?> <?php if(!defined("PATH_HD"))exit;?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>欢迎使用 后盾HD框架安装配置</title> <meta http-...
zylv
trunk/setup/temp/Applications/setup_A/session_C/index/compile/91d0fd5b3efc3b921d062fa605f3b4a2.php
PHP
asf20
1,897
<?php if(!defined("PATH_HD"))exit;?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>欢迎使用 后盾HD框架安装配置</title> <meta http-equiv="content-type" content="text/htm...
zylv
trunk/setup/temp/Applications/setup_A/session_C/index/compile/b21a3d9a2c1d3ff47067518a56e7020c.php
PHP
asf20
786
<?php if(!defined("PATH_HD"))exit;?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>欢迎使用 后盾HD框架安装配置</title> <meta http-equiv="content-type" content="text/htm...
zylv
trunk/setup/temp/Applications/setup_A/app_C/index/compile/b21a3d9a2c1d3ff47067518a56e7020c.php
PHP
asf20
786