0,000 000 000 000 000 000 000 001 yoctosecond [ ys ]
0,000 000 000 000 000 000 001 zeptosecond [ zs ]
0,000 000 000 000 000 001 attosecond [ as ]
0,000 000 000 000 001 femtosecond [ fs ]
0,000 000 000 001 [ trillionth ] picosecond [ ps ]
0,000 000 001 [ billionth ] nanosecond [ ns ]
0,000 001 [ millionth ] microsecond [ µs ]
0,001 [ thousandth ] millisecond [ ms ]
0.01 [ hundredth ] centisecond [ cs ]
This file contains hidden or 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
| <servlet-mapping> | |
| <servlet-name>default</servlet-name> | |
| <url-pattern>/static/*</url-pattern> | |
| </servlet-mapping> |
##java
package com.demo;
public abstract class Service1 {
private static Service1 getInstance() {
return ServiceLoader.load(Service1.class).iterator().next();
}
}##replace 替换/和. 为 -
function convertToid(path) {
return path.replace(/\.|\//g, '-')
}##endwith
##$q的使用
var q = $q.defer(),
p = q.promise;
chrome.fileSystem.chooseEntry({type: "openWritableFile", accepts: [
{extensions: ["md"]}
]},
function (entry) {
This file contains hidden or 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 ng-app="app"> | |
| <head> | |
| <meta name="description" content="angularjs service,factory,provider区别" /> | |
| <script src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.0.1/angular.min.js"></script> | |
| <meta charset=utf-8 /> | |
| <title>JS Bin</title> | |
| </head> | |
| <body ng-controller="MyCtrl"> | |
| {{serviceOutput}} |
This file contains hidden or 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
| $('table tr input[type=checkbox]:nth-child(1) ').prop('checked', $(e.target).prop('checked')); |
##HttpServletResponse 流只能读取一次,通过以下方法增加输出
public class ResponseLoggingFilter extends GenericFilterBean {
@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain) throws IOException, ServletException {
HttpServletResponse responseWrapper = loggingResponseWrapper((HttpServletResponse) response);
filterChain.doFilter(request, responseWrapper);
}
This file contains hidden or 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
| <tomcat-users> | |
| <!-- | |
| NOTE: By default, no user is included in the "manager-gui" role required | |
| to operate the "/manager/html" web application. If you wish to use this app, | |
| you must define such a user - the username and password are arbitrary. | |
| --> | |
| <!-- | |
| NOTE: The sample user and role entries below are wrapped in a comment | |
| and thus are ignored when reading this file. Do not forget to remove | |
| <!.. ..> that surrounds them. |
This file contains hidden or 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
| #!/bin/sh | |
| DESC="Jenkins CI Server" | |
| NAME=jenkins | |
| PIDFILE=$NAME.pid | |
| COMMAND="${PWD}/jdk1.7.0_21/bin/java -- -Xms128m -Xmx1024m -jar ${PWD}/jenkins.war" | |
| d_start() { | |
| export JENKINS_HOME=${PWD}/.jenkins |