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
public ServerRuntime getCoreRuntime() { | |
return ServerRuntime.builder() | |
.addConfig("cayenne-project.xml") | |
.jdbcDriver("oracle.jdbc.OracleDriver") | |
.url("jdbc:oracle:thin:@localhost:1521:SID") | |
.user("sysdba") | |
.password("1") | |
.maxConnections(4) | |
.addModule(binder -> binder.bind(JdbcEventLogger.class) | |
.to(FormattedSlf4jJdbcEventLogger.class)) |
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
GET /adq/?callback=__rb1511043449179&q%5B%5D=45891%3Fn%3Dads_left&test_id=0&cpm_floor=1001&vk_id=159305887 HTTP/1.1 | |
Host: ad.mail.ru | |
Connection: keep-alive | |
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36 | |
Accept: */* | |
Referer: https://vk.com/feed | |
Accept-Encoding: gzip, deflate, br | |
Accept-Language: ru,en-US;q=0.9,en;q=0.8,ro;q=0.7 | |
Cookie: p=WdIBAMaeggAA; mrcu=3302593F1FE93FA17517A7B1E52E; _ga=GA1.2.872614909.1498936680; _ym_uid=14989366801062323089; s=fver=0; b=QEQAAAC4tnQAJwBAAAAA; c=xJn8WQEAAHsTAAAUAAAACQAQ; i=AQBuQhBaCAATAAidNBAAARwAAR0AATYAATkAAZUAAtQAAR8BAUIBAV4BAZoBARoCARsCAZ4CAeoCAf4CARkEASEEAU0EAZUEAWEFAW0FAVwGAQgHATcHATwHAc0HAd0HAVoIAXQIAXYIAcIIAcgIATwJAWcJAWgJAYsJAZkJAe4JARYKARgKARsKARwKAScKAVwKAW0KAXEKAXIKARgLAUILAVoMAcsMAZMCCEwZAAABZgABbAABbQABbwABcQABcwABdQABgQABogABwwABcAEB5gEB7wEBAQIBBQIBCgIBDQIBEgIBFgIBowIB8AIBcAMBcQMBs04B3AQIBAEBAAHhBAkBAeIECgQJAsgHOgUICgMAAgEqAgHuAwHWBggEAQEAAb0HCAQBkwAB; VID=1GcWgM0joM1e0000070E14ne |
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
/** | |
* Created by mfedorov on 05.05.2016. | |
*/ | |
public class SplitterTest { | |
@Test | |
public void splitter() { | |
List<String> splitted = split("aabbccddee", 3); | |
System.out.println(splitted); |
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
module urlparser { | |
/** | |
* makes a trick with <a> tag. | |
* .search returns query string | |
* .host returns host | |
* etc. | |
* @param url | |
* @returns {*} | |
*/ |