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.lang.reflect.*; | |
public class ToStringBuilder { | |
private final StringBuilder sb = new StringBuilder(32); | |
private final Object object; | |
private final boolean formatted; | |
public static String reflection(Object object) { | |
return reflection(object, true); | |
} |
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 contentType="text/html" pageEncoding="utf-8" trimDirectiveWhitespaces="true" %> | |
<%@page import="java.util.*" %> | |
<%@page import="java.io.*" %> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='utf-8'> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>samples</title> |
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
-Xms512m | |
-Xmx512m | |
-Xmn128m | |
-XX:PermSize=256m | |
-XX:MaxPermSize=256m | |
-XX:-UseAdaptiveSizePolicy | |
-XX:+DisableExplicitGC | |
-Xverify:none | |
-XX:+UseParallelGC | |
-XX:+UseParallelOldGC |
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
document.onkeydown = function(evt) { | |
var isie = (document.all) ? true : false; | |
var key; | |
var srcobj; | |
// if the agent is an IE browser, it is easy to do this. | |
if (isie) { | |
key = event.keyCode; | |
srcobj = event.srcElement; | |
} else { | |
key = evt.which; |
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
TypeNotPresentException | |
NullPointerException | |
IllegalArgumentException | |
IllegalStateException | |
UnsupportedOperationException | |
SecurityException | |
java.util.NoSuchElementException | |
java.util.MissingResourceException | |
java.lang.reflect.UndeclaredThrowableException | |
java.nio.charset.UnsupportedCharsetException |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 | |
http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.github.subchen</groupId> | |
<artifactId>jetbrick-parent</artifactId> | |
<version>1.0.0</version> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 | |
http://maven.apache.org/xsd/assembly-1.1.2.xsd"> | |
<id>all-in-one</id> | |
<formats> | |
<format>jar</format> |
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
@IocBean("jetbrick.dao.orm.JdbcHelper") | |
public class DAOHelperFactory implements IocFactory<JdbcHelper> { | |
@Inject | |
private DataSource dataSource; | |
public JdbcHelper getObject() { | |
return new JdbcHelper(dataSource); | |
} | |
} |
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
// | |
// showdown.js -- A javascript port of Markdown. | |
// | |
// Copyright (c) 2007 John Fraser. | |
// | |
// Original Markdown Copyright (c) 2004-2005 John Gruber | |
// <http://daringfireball.net/projects/markdown/> | |
// | |
// Redistributable under a BSD-style open source license. | |
// See license.txt for more information. |
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
// Copyright (c) 2013-2014, Webit Team. All Rights Reserved. | |
package webit.script.util.collection; | |
import webit.script.util.StringUtil; | |
/** | |
* | |
* @author Zqq | |
*/ | |
public final class ArrayStack<T> implements Stack<T> { |
OlderNewer