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
/.gradle/ | |
/.idea/ | |
/build/ | |
**/*.iml | |
**/target/ | |
**/out | |
**/log |
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 ru; | |
import lombok.Data; | |
/** | |
* Created by Dmitry Tkachenko on 4/7/18 | |
*/ | |
@Data | |
public class Child { |
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 ru.test; | |
/** | |
* Created by Dmitry Tkachenko on 02.04.18 | |
*/ | |
public class Car { | |
public int test() { | |
Go go = new Go(); |
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
private static final String FILE_SRC_PATH = "src/main/resources/logo.jpg"; | |
private static final String FILE_DEST_PATH = "src/main/resources/logo-copy.jpg"; | |
// копируем jpg-изображение | |
// не работает | |
// исходное изображение 13.1 kB | |
// новое изображение размером: | |
// 1. при условии (len = fin.read()) != -1 равняется 1.6MB | |
// 2. при условии (len = fin.read()) > 0 равняется 950 byte | |
try(FileInputStream fin = new FileInputStream(FILE_SRC_PATH); |
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 static int rand6() { | |
int max = 6; | |
int min = 1; | |
Random rand = new Random(); | |
return rand.nextInt(max) + min; | |
} | |
private static int rand7() { | |
int sum = 0; |
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
<!-- Menu BEGIN --> | |
<div class="widthController"> | |
[[!Wayfinder? | |
&startId=`0` | |
&outerTpl=`outerTpl` | |
&outerClass=`font-normal` | |
&rowTpl=`rowTpl` | |
&innerTpl=`innerTpl` | |
&innerRowTpl=`innerRowTpl` | |
&hereTpl=`hereTpl` |
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
<!-- Menu BEGIN --> | |
<div class="widthController"> | |
<ul id="MainMenu" class="font-normal"> | |
<li><a href="">О компании</a></li> | |
<li><a href="">Фотоальбом</a></li> | |
<li><a href="">Контакты</a></li> | |
</ul> | |
</div> | |
<!-- Menu END --> |
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
<li [[+wf.classes]]><span>[[+wf.linktext]]</span>[[+wf.wrapper]]</li> |
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
<li [[+wf.classes]]> | |
<a href="[[+wf.link]]" title="[[+wf.title]]" [[+wf.attributes]]>[[+wf.linktext]]</a> | |
[[+wf.wrapper]] | |
</li> |
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
<ul>[[+wf.wrapper]]</ul> |