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
class Person{ | |
private int age; | |
private static int maxAge=-1; | |
Person(int age){ | |
this.age=age; | |
if(age>maxAge){ | |
maxAge=age; | |
} | |
} |
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"?> | |
<settings> | |
<activeProfiles> | |
<activeProfile>nkjmlab-nexus</activeProfile> | |
</activeProfiles> | |
<mirrors> | |
<mirror> | |
<id>nkjmlab-nexus</id> |
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
<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>org.nkjmlab.twitter</groupId> | |
<version>0.0.4-SNAPSHOT</version> | |
<packaging>jar</packaging> | |
<name>TweetAnalyzerCore</name> | |
<url>http://www.nakajimalab.is.sci.toho-u.ac.jp/</url> | |
<repositories> | |
<repository> | |
<id>nkjmlab-3rd-party</id> |
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 org.nkjmlab.pgb; | |
public class Average { | |
public static void main(String[] args) { | |
int n0 = average(5, 10); | |
System.out.println(n0); | |
int n1 = average1(5, 10); | |
System.out.println(n1); | |
int n2 = average2(-5, 10); |
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
$.soap({ | |
url: "http://xxxxx/langrid-service/ymc-exp-stable/YMCVietActivityDictionaryService.php", | |
method: "ser:search", | |
appendMethodToURL: false, | |
HTTPHeaders: { | |
// Authentication: 'Basic ' + btoa('test:test') | |
}, | |
envAttributes: { | |
'xmlns:ser': 'servicegrid:servicetype:nict.nlp:BilingualDictionary' | |
}, |
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
function pollService(url, method, params, callback) { | |
var ajaxReq = null; | |
var error = false; | |
function refresh(url, method, params, callback) { | |
var methodCall = {method : method, params : params}; | |
ajaxReq = $.ajax({ | |
type : "POST", dataType : "json", | |
url : url, | |
data : JSON.stringify(methodCall), | |
timeout : 3000, |
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"?> | |
<configuration status="OFF"> | |
<Appenders> | |
<Console name="stdout" target="SYSTEM_OUT"> | |
<ThresholdFilter level="TRACE"/> | |
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} %5p %t [%c{2}] %m%n"/> | |
</Console> | |
<Console name="stderr" target="SYSTEM_ERR"> | |
<ThresholdFilter level="WARN"/> | |
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} %5p %t [%c{2}] %m%n"/> |
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
ServletServiceContext sc = (ServletServiceContext) RIProcessor | |
.getCurrentServiceContext(); | |
MAGCruiseCoreProcessManager man = MAGCruiseCoreProcessManager | |
.getInstance(); | |
HttpServletRequest req = sc.getRequest(); | |
System.out.println(req); | |
Map map = req.getParameterMap(); | |
for (Object key : map.keySet()) { | |
man.writeLog(sessionId, "Request URL: " + key + ":" + map.get(key)); | |
} |
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
UserAccount | Password | Username | MailAddress | Language | Roles (administrator or developer or operator or player) | |
---|---|---|---|---|---|---|
user1account | user1password | user1name | user1@example.com | ja | player:developer:operator | |
user2account | user2password | user2name | user2@example.com | ja | player:operator | |
user3account | user3password | user3name | user3@example.com | ja | player | |
user4account | user4password | user4name | user4@example.com | ja | player | |
user5account | user5password | user5name | user5@example.com | ja | player |
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
DROP TABLE TBL1; | |
CREATE TABLE TBL1( | |
ID INTEGER PRIMARY KEY AUTO_INCREMENT, | |
X1 INTEGER DEFAULT 0, | |
X2 VARCHAR(255) DEFAULT NULL, | |
X3 VARCHAR(255) DEFAULT NULL, | |
X4 INTEGER DEFAULT 0); | |
LOAD DATA LOCAL INFILE '/home/nkjm/Dropbox/nkjmlab.org/hoge.csv' INTO TABLE TBL1 FIELDS TERMINATED BY ','; |
NewerOlder