This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<title>Yicha Doc - 易查项目接口文档</title> | |
<script type='text/javascript' src='http://code.jquery.com/jquery-2.0.1.js'></script> | |
<link rel="stylesheet" type="text/css" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Date; | |
import java.util.HashMap; | |
import java.util.Map; | |
public class Caculator { | |
public static Map<String,Integer> result = new HashMap<String, Integer>(); | |
public static boolean isAddString(String in){ | |
int length = in.length(); | |
for(int i=0;i<length-1;i++){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.yh.aixiaochu.system; | |
import java.io.FileNotFoundException; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.nio.ByteBuffer; | |
public class Sendevent { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:: 备份mysql脚本,可以用于设置定时任务 | |
:: 备份数据库名 | |
set dbname=ebook | |
:: 备份路径 | |
set backpath=E:/MySql_Back/backsql/ | |
:: 数据库用户名 | |
set user=root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 所有现代浏览器 (IE7+、Firefox、Chrome、Safari 以及 Opera) 都内建了 XMLHttpRequest 对象。 | |
var xmlhttp = new XMLHttpRequest(); | |
// onreadystatechange 存储函数(或函数名),每当 readyState 属性改变时,就会调用该函数。 | |
xmlhttp.onreadystatechange = function() { | |
//存有 XMLHttpRequest 的状态。从 0 到 4 发生变化。 | |
//0: 请求未初始化 | |
//1: 服务器连接已建立 | |
//2: 请求已接收 | |
//3: 请求处理中 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%> | |
<html> | |
<head><title>GetRequestInfo</title></head> | |
<body> | |
<pre> | |
<% | |
out.println("================base info=============="); | |
out.println("Protocol: " + request.getProtocol()); | |
out.println("Scheme: " + request.getScheme()); | |
out.println("Server Name: " + request.getServerName() ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding=gbk | |
''' | |
Created on 2013-7-22 | |
@author: gudh | |
''' | |
import win32gui,win32api,win32con | |
import time | |
DialogName = "登录".encode("gbk") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <winsock2.h> | |
#include <Ws2tcpip.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#pragma comment(lib,"WS2_32.lib") | |
#define SEQ 0x28376839 | |
#define STATUS_FAILED 0xFFFF //错误返回值 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Windows.Forms; | |
using System.IO; | |
using System.Runtime.InteropServices; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#coding=utf-8 | |
''' | |
三个鬼和三个人过河,初始都在一侧,要到另一侧。 | |
现在只有一个船,一次做多乘坐两个(人人、人鬼或鬼鬼)。 | |
任何时刻任何一侧的鬼的数量多于人,则鬼会把人吃掉,现在要给出一种方案,让鬼和人都过到河的另一侧。 | |
Created on 2013-6-28 | |
@author: gdh | |
''' | |
NewerOlder