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
(+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[])[([]+{})[+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]]+([]+{})[+!+[]]+([]+([]+[])[([]+{})[+!+[]+!+[]+!+[]+!+[]+!+[]]+([]+{})[+!+[]]+([]+[][+!+[]])[+!+[]]+([]+![])[+!+[]+!+[]+!+[]]+([]+{})[+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]]+([]+!![])[+!+[]]+([]+!![])[+!+[]+!+[]]+([]+{})[+!+[]+!+[]+!+[]+!+[]+!+[]]+([]+{})[+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]]+([]+{})[+!+[]]+([]+!![])[+!+[]]])[+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]]+([]+{})[+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]]+([]+!![])[+!+[]]+([]+[][+[]])[+!+[]+!+[]+!+[]+!+[]+!+[]]+([]+[][+!+[]])[+!+[]]+([]+([]+[])[([]+{})[+!+[]+!+[]+!+[]+!+[]+!+[]]+([]+{})[+!+[]]+([]+[][+!+[]])[+!+[]]+([]+![])[+!+[]+!+[]+!+[]]+([]+{})[+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]]+([]+!![])[+!+[]]+([]+!![])[+!+[]+!+[]]+([]+{})[+!+[]+!+[]+!+[]+!+[]+!+[]]+([]+{})[+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]]+([]+{})[+!+[]]+([]+!![])[+!+[]]])[+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]]](+!+[]+ |
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 org.junit.Assert; | |
import org.junit.Test; | |
public class EasyTest { | |
@Test | |
public void test4() throws Exception { | |
Easy4 e = new Easy4(); | |
e.init("4"); | |
Assert.assertEquals("4", e.getResult()); | |
} |
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 srobot; | |
import com.sun.jna.platform.win32.User32; | |
import com.sun.jna.platform.win32.WinDef; | |
import com.sun.jna.platform.win32.WinDef.HWND; | |
public class IsRunning { | |
public static void main(String[] args) { | |
HWND hwnd = User32.INSTANCE.FindWindow | |
(null, "Сапер"); |
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 srobot; | |
import com.sun.jna.platform.win32.User32; | |
import com.sun.jna.platform.win32.WinDef.HWND; | |
public class IsRunning { | |
public static void main(String[] args) { | |
HWND hwnd = User32.INSTANCE.FindWindow | |
(null, "Сапер"); | |
if (hwnd == null) { |
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
new ScheduledThreadPoolExecutor(1).scheduleAtFixedRate(new Runnable() { | |
@Override | |
public void run() { | |
// smth | |
} | |
}, | |
initialDelay, MILLISEC_IN_DAY, TimeUnit.MILLISECONDS); |
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
/** | |
* Compares this string to the specified object. The result is {@code | |
* true} if and only if the argument is not {@code null} and is a {@code | |
* String} object that represents the same sequence of characters as this | |
* object. | |
* | |
* @param anObject | |
* The object to compare this {@code String} against | |
* | |
* @return {@code true} if the given object represents a {@code String} |
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 org.h2.jdbcx.JdbcConnectionPool; | |
import java.sql.CallableStatement; | |
import java.sql.Connection; | |
import java.sql.SQLException; | |
import java.sql.Types; | |
public class TestOk { | |
public static void main(String[] args) throws SQLException { | |
JdbcConnectionPool cp = JdbcConnectionPool.create( |
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
Exception in thread "main" org.h2.jdbc.JdbcSQLException: Параметр "#1" не установлен | |
Parameter "#1" is not set; SQL statement: | |
? = call IDENTITY() [90012-174] | |
at org.h2.message.DbException.getJdbcSQLException(DbException.java:332) | |
at org.h2.message.DbException.get(DbException.java:172) | |
at org.h2.message.DbException.get(DbException.java:149) | |
at org.h2.expression.Parameter.checkSet(Parameter.java:80) | |
at org.h2.command.Prepared.checkParameters(Prepared.java:163) | |
at org.h2.command.CommandContainer.query(CommandContainer.java:90) | |
at org.h2.command.Command.executeQuery(Command.java:196) |
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 org.h2.jdbcx.JdbcConnectionPool; | |
import java.sql.CallableStatement; | |
import java.sql.Connection; | |
import java.sql.SQLException; | |
import java.sql.Types; | |
public class TestFail { | |
public static void main(String[] args) throws SQLException { | |
JdbcConnectionPool cp = JdbcConnectionPool.create( |
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
for (String module : modules) { | |
{ | |
int idx = module.indexOf(':'); | |
if (idx < 0) { | |
logger.l2("Skipping config string " + module); | |
continue; | |
} | |
String className = module.substring(0, idx); | |
String config = module.substring(idx + 1); | |
try { |