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 |
|---|---|---|---|---|---|
package com.google.android.apps.mytracks.content;
parcelable WaypointCreationRequest; | zyliu810-gounpk | MyTracksLib/src/com/google/android/apps/mytracks/content/WaypointCreationRequest.aidl | AIDL | asf20 | 85 |
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | zyliu810-gounpk | MyTracksLib/src/com/google/android/apps/mytracks/content/MyTracksLocation.java | Java | asf20 | 1,550 |
/*
* Copyright 2008 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | zyliu810-gounpk | MyTracksLib/src/com/google/android/apps/mytracks/content/TracksColumns.java | Java | asf20 | 2,606 |
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | zyliu810-gounpk | MyTracksLib/src/com/google/android/apps/mytracks/content/WaypointCreationRequest.java | Java | asf20 | 2,886 |
/*
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | zyliu810-gounpk | MyTracksLib/src/com/google/android/apps/mytracks/content/Waypoint.java | Java | asf20 | 5,336 |
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | zyliu810-gounpk | MyTracksLib/src/com/google/android/apps/mytracks/content/MyTracksProviderUtils.java | Java | asf20 | 13,929 |
/*
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | zyliu810-gounpk | MyTracksLib/src/com/google/android/apps/mytracks/content/WaypointsColumns.java | Java | asf20 | 2,815 |
/*
* Copyright 2008 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | zyliu810-gounpk | MyTracksLib/src/com/google/android/apps/mytracks/content/TrackPointsColumns.java | Java | asf20 | 1,754 |
/*
* Copyright 2008 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | zyliu810-gounpk | MyTracksLib/src/com/google/android/apps/mytracks/content/Track.java | Java | asf20 | 4,768 |
/*
* Copyright 2008 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | zyliu810-gounpk | MyTracksLib/src/com/google/android/apps/mytracks/content/MyTracksProviderUtilsImpl.java | Java | asf20 | 36,397 |
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | zyliu810-gounpk | MyTracksLib/src/com/google/android/apps/mytracks/content/DescriptionGenerator.java | Java | asf20 | 1,233 |
/*
* Copyright 2008 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | zyliu810-gounpk | MyTracksLib/src/com/google/android/apps/mytracks/services/ITrackRecordingService.aidl | AIDL | asf20 | 2,554 |
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | zyliu810-gounpk | MyTracksLib/src/com/google/android/apps/mytracks/lib/MyTracksLibConstants.java | Java | asf20 | 925 |
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html> | zy-web-manager | trunk/admin-g/js/index.html | HTML | oos | 123 |
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html> | zy-web-manager | trunk/admin-g/img/index.html | HTML | oos | 123 |
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html> | zy-web-manager | trunk/admin-g/css/index.html | HTML | oos | 123 |
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html> | zy-web-manager | trunk/admin-g/include/index.html | HTML | oos | 123 |
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html> | zy-web-manager | trunk/admin-g/index.html | HTML | oos | 123 |
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html> | zy-web-manager | trunk/index.html | HTML | oos | 123 |
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html> | zy-web-manager | trunk/common/js/index.html | HTML | oos | 123 |
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html> | zy-web-manager | trunk/common/img/index.html | HTML | oos | 123 |
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html> | zy-web-manager | trunk/common/css/index.html | HTML | oos | 123 |
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html> | zy-web-manager | trunk/common/include/index.html | HTML | oos | 123 |
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html> | zy-web-manager | trunk/common/index.html | HTML | oos | 123 |
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="common/js/jquery-1.7.min.js"></script... | zy-web-manager | trunk/jq.html | HTML | oos | 711 |
package cn.nju.zyy.service;
import java.util.List;
import cn.nju.zyy.domain.Community;
import cn.nju.zyy.domain.Country;
import cn.nju.zyy.domain.User;
public interface UserService {
public void add(User user);
public List<Country> getAllCountries();
public List<Community> getAllCommunities();
}
| zyy-spring-mvc | trunk/src/cn/nju/zyy/service/UserService.java | Java | asf20 | 318 |
package cn.nju.zyy.service;
import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Component;
import cn.nju.zyy.domain.Community;
import cn.nju.zyy.domain.Country;
import cn.nju.zyy.domain.User;
@Component
public class UserServiceImpl implements UserService {
@Overr... | zyy-spring-mvc | trunk/src/cn/nju/zyy/service/UserServiceImpl.java | Java | asf20 | 1,053 |
package cn.nju.zyy.domain;
public class Community {
private String key;
private String value;
public Community(String key, String value) {
this.key = key;
this.value = value;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public S... | zyy-spring-mvc | trunk/src/cn/nju/zyy/domain/Community.java | Java | asf20 | 434 |
package cn.nju.zyy.domain;
public class Country {
private int countryId;
private String countryName;
public Country(int countryId, String countryName) {
this.countryId = countryId;
this.countryName = countryName;
}
public int getCountryId() {
return countryId;
}
public void setCountr... | zyy-spring-mvc | trunk/src/cn/nju/zyy/domain/Country.java | Java | asf20 | 538 |
package cn.nju.zyy.dao;
import java.util.List;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.stereotype.Component;
import cn.nju.zyy.domain.User;
@Component
publi... | zyy-spring-mvc | trunk/src/cn/nju/zyy/dao/UserDAOImpl.java | Java | asf20 | 795 |
package cn.nju.zyy.dao;
import java.util.List;
import cn.nju.zyy.domain.User;
public interface UserDAO {
public void saveUser(User user);
public List<User> listUser();
}
| zyy-spring-mvc | trunk/src/cn/nju/zyy/dao/UserDAO.java | Java | asf20 | 190 |
package cn.nju.zyy.interceptor;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.ModelAndView;
import ... | zyy-spring-mvc | trunk/src/cn/nju/zyy/interceptor/LoggerInterceptor.java | Java | asf20 | 1,392 |
package cn.nju.zyy.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@Controller
@RequestMapping("/welcome.htm... | zyy-spring-mvc | trunk/src/cn/nju/zyy/controller/HelloWorldController.java | Java | asf20 | 622 |
package cn.nju.zyy.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class UserSuccessController {
@RequestMapping("/userSuccess.html")
public String redirect() {
return "userSuccess";
}
}
| zyy-spring-mvc | trunk/src/cn/nju/zyy/controller/UserSuccessController.java | Java | asf20 | 307 |
package cn.nju.zyy.controller;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import ... | zyy-spring-mvc | trunk/src/cn/nju/zyy/controller/UserController.java | Java | asf20 | 2,536 |
package cn.nju.zyy.validator;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.ValidationUtils;
import org.springframework.validation.Validator;
import cn.nju.zyy.domain.User;
@Component
public class UserValidator implement... | zyy-spring-mvc | trunk/src/cn/nju/zyy/validator/UserValidator.java | Java | asf20 | 1,093 |
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Welcome Page</title>
</head>
... | zyy-spring-mvc | trunk/WebContent/WEB-INF/jsp/welcomePage.jsp | Java Server Pages | asf20 | 358 |
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="... | zyy-spring-mvc | trunk/WebContent/WEB-INF/jsp/userSuccess.jsp | Java Server Pages | asf20 | 1,125 |
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Item</title>
</head>
<body>
... | zyy-spring-mvc | trunk/WebContent/WEB-INF/jsp/item.jsp | Java Server Pages | asf20 | 358 |
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html... | zyy-spring-mvc | trunk/WebContent/WEB-INF/jsp/userForm.jsp | Java Server Pages | asf20 | 2,809 |
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Redirect</title>
</head>
<bod... | zyy-spring-mvc | trunk/WebContent/redirect.jsp | Java Server Pages | asf20 | 433 |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>jQuery Demo</title>
<script src="jquery/jquery.js"></script>
<style>
a.test {
font-weight: bold;
}
</style>
<script>
$(document).ready(function() {
$("a").addClass("test");
$("a").click(function(event) {
... | zyy-menus | trunk/start.html | HTML | asf20 | 1,629 |
/* http://github.com/enure/Hide-All-Except-One */
(function($){
$.hideAllExcept = function(tabs,boxes){
function init() {
// make it bookmarkable/refreshable. but, no history.
var hash = window.location.hash;
(!hash) ? hideShow('#' + $(boxes+':first').attr('id')) : hideShow(window.locati... | zyy-menus | trunk/widgets/tab/jquery.hideAllExceptOne.js | JavaScript | asf20 | 824 |
/* http://github.com/enure/Hide-All-Except-One */
h1{font-weight:bold;margin-bottom:0;}
h2{margin:1em 0;}
h3{font-weight:bold;}
#about{margin-top:0;}
#about,#tabs{padding-left:0;}
#about li,#tabs li{float:left;display:block;margin-right:1.5em;}
#about li:before{content:"* ";}
#tabs{margin:6em 0 .5em .5em;}
#ta... | zyy-menus | trunk/widgets/tab/style.css | CSS | asf20 | 798 |
/* base css for enure.net */
html,body,div,span,applet,object,iframe,
h1,h2,h3,h4,h5,h6,p,blockquote,pre,
a,abbr,acronym,address,big,cite,code,
del,dfn,em,font,img,ins,kbd,q,s,samp,
small,strike,strong,sub,sup,tt,var,
b,u,i,center,
dl,dt,dd,ol,ul,li,
fieldset,form,label,legend,
table,caption,tbody,tfoot,thead,... | zyy-menus | trunk/widgets/tab/base.css | CSS | asf20 | 1,786 |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>"Hide All Except One" demo (like tabs)</title>
<link href="base.css" rel="stylesheet" type="text/css" />
<link href="style.css" rel="stylesheet" type="text/css" />
<script src="../../j... | zyy-menus | trunk/widgets/tab/tab.html | HTML | asf20 | 4,156 |
<!doctype html>
<html>
<head>
<link href="../../jquery/jquery-ui/jquery-ui.css" rel="stylesheet" type="text/css" />
<style>
body {
text-align : center;
}
</style>
<script src="../../jquery/jquery.js"></script>
<script src="../../jquery/jquery-ui/jquery-ui.js"></script>
<script type="text/javascr... | zyy-menus | trunk/widgets/ui-jquery-dialog/dialog.html | HTML | asf20 | 965 |
$(document).ready(function() {
$(".ui-state-default").hover(
function(){
$(this).addClass("ui-state-hover");
},
function(){
$(this).removeClass("ui-state-hover");
}
);
$("ul.ui-state-active li a").hover(
function(){
$(this).addClass("ui-state-hover")
},
function(){
$(th... | zyy-menus | trunk/widgets/ThemeRoller-Ready/jumpmenu/jumpmenu.js | JavaScript | asf20 | 688 |
.ui-state-default {
padding: .5em 1em;
cursor: pointer;
}#trigger {
display: block;
width: 4em;
text-decoration: none;
position: relative;
z-index: 2;
}
#trigger span {
display: inline-block;
border-bottom: 0;
}
#menuContain {
position: relative;
z-index: 1;... | zyy-menus | trunk/widgets/ThemeRoller-Ready/jumpmenu/jumpmenu.css | CSS | asf20 | 606 |
<!doctype html>
<html>
<head>
<title>Jump Menu</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../../jquery/jquery-ui/jquery-ui.css" />
<link rel="stylesheet" type="text/css" href="jumpmenu.css" />
<script src="../../../jquery/j... | zyy-menus | trunk/widgets/ThemeRoller-Ready/jumpmenu/jumpmenu.html | HTML | asf20 | 896 |
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
<head>
<title>ThemeRoller-Ready Components</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../jquery/jquery-ui/jquery-... | zyy-menus | trunk/widgets/ThemeRoller-Ready/ThemeRoller-Ready.html | HTML | asf20 | 878 |
$(document).ready(function(){
$(".ui-state-default").hover(
function(){
$(this).addClass("ui-state-hover");
},
function(){
$(this).removeClass("ui-state-hover");
}
);
}); | zyy-menus | trunk/widgets/ThemeRoller-Ready/buttonbar/buttonbar.js | JavaScript | asf20 | 189 |
<!DOCTYPE html>
<html>
<head>
<title>Button Bar</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../../jquery/jquery-ui/jquery-ui.css" />
<link rel="stylesheet" type="text/css" href="buttonbar.css" />
<script src="../../../jquery/jquery... | zyy-menus | trunk/widgets/ThemeRoller-Ready/buttonbar/buttonbar.html | HTML | asf20 | 835 |
.ui-state-default {
padding: .3em 1em;
cursor: pointer;
}
#buttonBar {
background-image: none;
background-color: #aaaaaa;
padding: 0;
}
#buttonBar li, #buttonBar li a {
float: left;
margin: 0;
padding: 0;
list-style: none;
text-decoration: none;
}
#buttonBar li a {
padding: .... | zyy-menus | trunk/widgets/ThemeRoller-Ready/buttonbar/buttonbar.css | CSS | asf20 | 421 |
.trigger {
float: left;
width: 64px;
padding: 8px 16px;
margin-right: 1px;
border-width: 0px;
border-radius: 4px;
text-align: center;
text-decoration: none;
position: relative;
z-index: 2;
}
.menuContainer {
float: left;
clear: both;
position: relative;
z-inde... | zyy-menus | trunk/widgets/ThemeRoller-Ready/menus/menus.css | CSS | asf20 | 571 |
#nav {
background-color: silver;
height: 34px;
}
.jumpMenu {
float: left;
} | zyy-menus | trunk/widgets/ThemeRoller-Ready/menus/menus-jump/menus-jump.css | CSS | asf20 | 93 |
<!doctype html>
<html>
<head>
<title>Jump Menu</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui/jquery-ui.css" />
<link rel="stylesheet" type="text/css" href="../../../../css/base.css" />
<link rel="st... | zyy-menus | trunk/widgets/ThemeRoller-Ready/menus/menus-jump/menus-jump.html | HTML | asf20 | 2,009 |
var CLASS_HOVER = "dynamic-hover-class";
$(document).ready(function() {
$(".ui-state-default").hover(function() {
$(this).addClass("ui-state-hover");
}, function() {
$(this).removeClass("ui-state-hover");
});
$("ul.ui-state-active a").hover(function() {
$(this).addClass("ui-state-hover");
$(th... | zyy-menus | trunk/widgets/ThemeRoller-Ready/menus/menus-jump/menus-jump.js | JavaScript | asf20 | 1,266 |
<!DOCTYPE html>
<html>
<head>
<title>Button Bar</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui/jquery-ui.css" />
<link rel="stylesheet" type="text/css" href="../../../../css/base.css" />
<link rel="styleshe... | zyy-menus | trunk/widgets/ThemeRoller-Ready/menus/menus-bar/menus-bar.html | HTML | asf20 | 2,259 |
#nav {
background-color: silver;
padding: 0px;
margin: 0px;
height: 34px;
border-width: 0px;
border-radius: 4px;
}
#nav li {
float: left;
} | zyy-menus | trunk/widgets/ThemeRoller-Ready/menus/menus-bar/menus-bar.css | CSS | asf20 | 164 |
var CLASS_HOVER = "dynamic-hover-class";
$(document).ready(function() {
$(".ui-state-default").hover(function() {
$(this).addClass("ui-state-hover");
}, function() {
$(this).removeClass("ui-state-hover");
});
$("ul.ui-state-active a").hover(function() {
$(this).addClass("ui-state-hover");
$(this).css("co... | zyy-menus | trunk/widgets/ThemeRoller-Ready/menus/menus-bar/menus-bar.js | JavaScript | asf20 | 1,215 |
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>Multiple checks without CTRL button</title>
<link type="text/css" rel="stylesheet" media="screen" href="jquery.toChecklist/jquery.toChecklist.min.css" />
<link type="text/css" rel="stylesheet" href="style.css" />
<script src="../../jquery/jquery.... | zyy-menus | trunk/widgets/checklist/checklist.html | HTML | asf20 | 714 |
#mySelectBox {
width: 80px;
height: 80px;
} | zyy-menus | trunk/widgets/checklist/style.css | CSS | asf20 | 48 |
<!doctype html>
<html>
<head>
<link href="../../jquery/jquery-ui/jquery-ui.css" rel="stylesheet" type="text/css" />
<style>
body {
text-align : center;
}
</style>
<script src="../../jquery/jquery.js"></script>
<script src="../../jquery/jquery-ui/jquery-ui.js"></script>
<script type="text/javascr... | zyy-menus | trunk/widgets/ui-jquery-datepicker/datepicker.html | HTML | asf20 | 882 |
<!doctype html>
<html>
<head>
<link href="../../jquery/jquery-ui/jquery-ui.css" rel="stylesheet" type="text/css" />
<style>
body {
text-align : center;
}
</style>
<script src="../../jquery/jquery.js"></script>
<script src="../../jquery/jquery-ui/jquery-ui.js"></script>
<script type="text/javascr... | zyy-menus | trunk/widgets/ui-jquery-tabs/tabs.html | HTML | asf20 | 1,830 |
I'm a tab. | zyy-menus | trunk/widgets/ui-jquery-tabs/tab.html | HTML | asf20 | 10 |
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../jquery/jquery-ui/css/smoothness/jquery-ui-1.8.17.custom.css" rel="stylesheet" type="text... | zyy-menus | trunk/interactions/draggable.html | HTML | asf20 | 793 |
body {
width: 1000px;
margin: auto;
font-size: 100%;
}
div {
border-radius: 4px;
}
.ui-state-default {
cursor: pointer;
} | zyy-menus | trunk/css/base.css | CSS | asf20 | 151 |
package com.zgm.zen.dip;
public class StringBuffer {
public static void main(String [] args){
String s1="hello";
String s2="world";
java.lang.StringBuffer s3= new java.lang.StringBuffer(s1);
s3.append(s2);
System.out.println(s1);
System.out.println(s2);
System.out.println(s3);
}
}
| zyr-test | trunk/zyr-test/test/com/zgm/zen/dip/StringBuffer.java | Java | asf20 | 308 |
package com.zgm.zen.dip;
public class Sort{
public static void main(String[] args){
Sort s= new Sort();
int a,b,c,d,e;
int x[]=new int[5];
for(a=1;a<6;a++){
x[0]=a;
for(b=1;b<6;b++){
x[1]=b;
for(c=1;c<6;c++){
x[2]=c;
for(d=1;d<6;d++){
x[3]=d;
for(e=1;e<6;e++)... | zyr-test | trunk/zyr-test/test/com/zgm/zen/dip/Sort.java | Java | asf20 | 865 |
package com.zgm.tdd.fourth._5_3_2;
/**
* 测试模式 :
* 2.自分流模式
* @author zgm
*
*/
public class SelfShuntExample implements PricingService {
@Override
public float getDiscountPercentage(Customer c, Product p) {
return 10.0f;
}
@Test
public void testOrderProcessorWithMockObject() throws Exce... | zyr-test | trunk/zyr-test/test/com/zgm/tdd/fourth/_5_3_2/SelfShuntExample.java | Java | asf20 | 360 |
package com.zgm.tdd.fourth._5_3_2;
public interface PricingService {
float getDiscountPercentage(Customer c, Product p);
}
| zyr-test | trunk/zyr-test/test/com/zgm/tdd/fourth/_5_3_2/PricingService.java | Java | asf20 | 134 |
package com.zgm.tdd.fourth._5_3_3;
import java.util.concurrent.TimeUnit;
import org.junit.Test;
public class IntimateAnonymousInnerClassExample {
private StartStopSynchronisedThread thread;
@Test
public void testStartingAndStopingThreadsThroughAnExecutorService() throws Exception {
Server server ... | zyr-test | trunk/zyr-test/test/com/zgm/tdd/fourth/_5_3_3/IntimateAnonymousInnerClassExample.java | Java | asf20 | 683 |
package com.zgm.tdd.fourth._5_2;
import org.junit.Before;
/**
* 夹具模式:
* 1:参数化创建方法
* 2:对象母亲
* 3:自动清理
* @author zgm
*
*以下1:参数化创建方法 的示例
*/
public class ParameterizedCreationMethodExample {
Person alice, billy, clark;
/*@Before
public void setUp() throws Exception {
alice = new Persion(... | zyr-test | trunk/zyr-test/test/com/zgm/tdd/fourth/_5_2/ParameterizedCreationMethodExample.java | Java | asf20 | 1,293 |
package com.zgm.tdd.fourth._5_1_1;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
/**
* 结果状态验证
* @author zgm
*
*/
public class ResultingStateAssertion {
@Test
public void sizeOfListReflectsItemsAdedToIt() throws Exception {
List<String> list = new ArrayList<String... | zyr-test | trunk/zyr-test/test/com/zgm/tdd/fourth/_5_1_1/ResultingStateAssertion.java | Java | asf20 | 425 |
package com.zgm.tdd.fourth._5_1_5;
public class Customer {
public void onPaperDelivery(DailyPaper paper) {
;
}
}
| zyr-test | trunk/zyr-test/test/com/zgm/tdd/fourth/_5_1_5/Customer.java | Java | asf20 | 125 |
package com.zgm.tdd.fourth._5_1_5;
public class DailyPaper {
}
| zyr-test | trunk/zyr-test/test/com/zgm/tdd/fourth/_5_1_5/DailyPaper.java | Java | asf20 | 70 |
package com.zgm.tdd.fourth._5_3_5;
/**
* 测试模式 :
* 5. 额外的构造函数
* @author zgm
*
*/
public class LogFileMerge {
private URL logFileA, logFileB;
public LogFileMerge() {
this(new URL("http://server1/system.log"),
new URL("http://server2/system.log"));
}
public LogFileMerge(URL ... | zyr-test | trunk/zyr-test/test/com/zgm/tdd/fourth/_5_3_5/LogFileMerge.java | Java | asf20 | 408 |
package com.zgm.tdd.fourth._5_1_2;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
/**
* 结果状态验证
* @author zgm
*
*/
public class ResultingStateAssertion {
@Test
public void sizeOfListReflectsItemsAdedToIt() throws Exception {
List<String> list = new ArrayList<String... | zyr-test | trunk/zyr-test/test/com/zgm/tdd/fourth/_5_1_2/ResultingStateAssertion.java | Java | asf20 | 425 |
package com.zgm.tdd.fourth._5_1_2;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* 防卫断言
* @author zgm
*
*/
public class GuardAssertion {
@Test
public void listIsNotLongerEmptyAfterAddingAnItemToIt() throws Exception {
List<Str... | zyr-test | trunk/zyr-test/test/com/zgm/tdd/fourth/_5_1_2/GuardAssertion.java | Java | asf20 | 466 |
package com.zgm.tdd.fourth._5_1_3;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
/**
* 结果状态验证
* @author zgm
*
*/
public class ResultingStateAssertion {
@Test
public void sizeOfListReflectsItemsAdedToIt() throws Exception {
List<String> list = new ArrayList<String... | zyr-test | trunk/zyr-test/test/com/zgm/tdd/fourth/_5_1_3/ResultingStateAssertion.java | Java | asf20 | 425 |
package com.zgm.tdd.fourth._5_1_3;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* 防卫断言
* @author zgm
*
*/
public class GuardAssertion {
@Test
public void listIsNotLongerEmptyAfterAddingAnItemToIt() throws Exception {
List<Str... | zyr-test | trunk/zyr-test/test/com/zgm/tdd/fourth/_5_1_3/GuardAssertion.java | Java | asf20 | 466 |
package com.zgm.tdd.fourth._5_1_3;
import java.util.ArrayList;
import org.junit.Test;
/**
* 差值断言
* @author zgm
*
*/
public class DeltaAssertion {
private ArrayList<String> list = new ArrayList<String>();
@Test
public void sizeOfListReflectsItemsAdedToIt() throws Exception {
int sizeBefor... | zyr-test | trunk/zyr-test/test/com/zgm/tdd/fourth/_5_1_3/DeltaAssertion.java | Java | asf20 | 450 |
package com.zgm.tdd.third._2_6;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.junit.Test;
import static org.junit.Assert.*;
public class Spike {
@Test
public void testFindStartAndEnd(){
String srcString = "zgm is zyr, zyr also is zgm ";
String regex = "(zyr)";
... | zyr-test | trunk/zyr-test/test/com/zgm/tdd/third/_2_6/Spike.java | Java | asf20 | 922 |
package com.zgm.tdd.third._2;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.junit.Test;
import static org.junit.Assert.*;
public class Spike {
@Test
public void testFindStartAndEnd(){
String srcString = "zgm is zyr, zyr also is zgm ";
String regex = "(zyr)";
... | zyr-test | trunk/zyr-test/test/com/zgm/tdd/third/_2/Spike.java | Java | asf20 | 920 |
package com.zgm.tdd.third._2_4;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.junit.Test;
import static org.junit.Assert.*;
public class Spike {
@Test
public void testFindStartAndEnd(){
String srcString = "zgm is zyr, zyr also is zgm ";
String regex = "(zyr)";
... | zyr-test | trunk/zyr-test/test/com/zgm/tdd/third/_2_4/Spike.java | Java | asf20 | 922 |
package com.zgm.tdd.third._2_5;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.junit.Test;
import static org.junit.Assert.*;
public class Spike {
@Test
public void testFindStartAndEnd(){
String srcString = "zgm is zyr, zyr also is zgm ";
String regex = "(zyr)";
... | zyr-test | trunk/zyr-test/test/com/zgm/tdd/third/_2_5/Spike.java | Java | asf20 | 922 |
package com.zgm.tdd.third._2_3;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.junit.Test;
import static org.junit.Assert.*;
public class Spike {
@Test
public void testFindStartAndEnd(){
String srcString = "zgm is zyr, zyr also is zgm ";
String regex = "(zyr)";
... | zyr-test | trunk/zyr-test/test/com/zgm/tdd/third/_2_3/Spike.java | Java | asf20 | 922 |
package com.zgm.tdd.third._3_2;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.junit.Test;
import static org.junit.Assert.*;
public class Spike {
@Test
public void testFindStartAndEnd(){
String srcString = "zgm is zyr, zyr also is zgm ";
String regex = "(zyr)";
... | zyr-test | trunk/zyr-test/test/com/zgm/tdd/third/_3_2/Spike.java | Java | asf20 | 922 |
package com.zgm.tdd.third._1_3;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.junit.Test;
import static org.junit.Assert.*;
public class Spike {
@Test
public void testFindStartAndEnd(){
String srcString = "zgm is zyr, zyr also is zgm ";
String regex = "(zyr)";
... | zyr-test | trunk/zyr-test/test/com/zgm/tdd/third/_1_3/Spike.java | Java | asf20 | 922 |
package com.zgm.optimizeProgram.three;
public class ZeroCompareTest {
public static void main(String[] args){
long startIndex, endIndex;
int[] a = new int[2500000];
startIndex = System.currentTimeMillis();
for(int i = 0; i < a.length; i++){
a[i] += i;
}
endIndex = System.curren... | zyr-test | trunk/zyr-test/src/com/zgm/optimizeProgram/three/ZeroCompareTest.java | Java | asf20 | 632 |
package com.zgm.optimizeProgram.four;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
public class ReadWriterWithArray {
public s... | zyr-test | trunk/zyr-test/src/com/zgm/optimizeProgram/four/ReadWriterWithArray.java | Java | asf20 | 3,766 |
package com.zgm.optimizeProgram.four;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
public class ReadWriterWithBuffer {
public ... | zyr-test | trunk/zyr-test/src/com/zgm/optimizeProgram/four/ReadWriterWithBuffer.java | Java | asf20 | 2,303 |
package com.zgm.optimizeProgram.seven.filter;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.Se... | zyr-test | trunk/zyr-test/src/com/zgm/optimizeProgram/seven/filter/TraceFilter.java | Java | asf20 | 1,139 |
/*
* Copyright 2012 The JA-SIG Collaborative. All rights reserved.
* distributed with this file and available online at
* http://www.etong.com/
*/
package com.zgm.thinking_in_java.thread.return_value_21_2_4;
import java.util.concurrent.Callable;
/**
*
* @author 周光明 Exp
* @version $FileName: TaskWi... | zyr-test | trunk/zyr-test/src/com/zgm/thinking_in_java/thread/return_value_21_2_4/TaskWithResult.java | Java | asf20 | 670 |
/*
* Copyright 2012 The JA-SIG Collaborative. All rights reserved.
* distributed with this file and available online at
* http://www.etong.com/
*/
package com.zgm.thinking_in_java.thread.return_value_21_2_4;
import java.util.ArrayList;
import java.util.concurrent.ExecutionException;
import java.util.concu... | zyr-test | trunk/zyr-test/src/com/zgm/thinking_in_java/thread/return_value_21_2_4/CallableDemo.java | Java | asf20 | 1,503 |
/*
* Copyright 2012 The JA-SIG Collaborative. All rights reserved.
* distributed with this file and available online at
* http://www.etong.com/
*/
package com.zgm.thinking_in_java.thread.executor_21_2_3;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import com.zgm.t... | zyr-test | trunk/zyr-test/src/com/zgm/thinking_in_java/thread/executor_21_2_3/CachedThreadPool.java | Java | asf20 | 885 |
/*
* Copyright 2012 The JA-SIG Collaborative. All rights reserved.
* distributed with this file and available online at
* http://www.etong.com/
*/
package com.zgm.thinking_in_java.thread._21_2_2;
import com.zgm.thinking_in_java.thread._21_2_1.LiftOff;
import com.zgm.zen.state.example2.Lift;
/**
*
*... | zyr-test | trunk/zyr-test/src/com/zgm/thinking_in_java/thread/_21_2_2/BasicThreads.java | Java | asf20 | 676 |
/*
* Copyright 2012 The JA-SIG Collaborative. All rights reserved.
* distributed with this file and available online at
* http://www.etong.com/
*/
package com.zgm.thinking_in_java.thread._21_2_2;
import com.zgm.thinking_in_java.thread._21_2_1.LiftOff;
import com.zgm.zen.state.example2.Lift;
/**
*
*... | zyr-test | trunk/zyr-test/src/com/zgm/thinking_in_java/thread/_21_2_2/MoreBasicThreads.java | Java | asf20 | 692 |
/*
* Copyright 2012 The JA-SIG Collaborative. All rights reserved.
* distributed with this file and available online at
* http://www.etong.com/
*/
package com.zgm.thinking_in_java.thread._21_2_1;
/**
*
* @author 周光明 Exp
* @version $FileName: LiftOff.java $Date: 2012-4-11 下午9:36:54 -0400 2012
* @since... | zyr-test | trunk/zyr-test/src/com/zgm/thinking_in_java/thread/_21_2_1/LiftOff.java | Java | asf20 | 843 |