This file contains hidden or 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
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 | |
# User-specific stuff | |
**/.idea/**/workspace.xml | |
**/.idea/**/tasks.xml | |
**/.idea/**/usage.statistics.xml | |
**/.idea/**/dictionaries | |
**/.idea/**/shelf | |
**/.idea/**/contentModel.xml |
This file contains hidden or 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.util.Random; | |
public class SpaceRocketLaunch { | |
@FunctionalInterface | |
interface PrepareActions { | |
boolean prepare(); | |
} | |
public static void main(String[] args) { |
This file contains hidden or 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.awt.*; | |
public class Cat | |
{ | |
// Константы | |
public static final int NUMBER_EYES = 2; | |
public static final double MIN_WEIGHT = 1000.0; | |
public static final double MAX_WEIGHT = 9000.0; | |
private double originWeight; |
This file contains hidden or 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 com.lislon; | |
import org.javagram.TelegramApiBridge; | |
import org.javagram.response.AuthAuthorization; | |
import org.javagram.response.AuthCheckedPhone; | |
import static com.lislon.Secret.APP_HASH; | |
import static com.lislon.Secret.APP_ID; | |
public class Main { |
This file contains hidden or 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 class Age { | |
public static void main(String[] args) { | |
int dimaAge = 3; | |
int mishaAge = 2; | |
int vasyaAge = 1; | |
int oldest; | |
int youngest; | |
int middle; |
This file contains hidden or 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
# Shows who is listening port $1 with process info | |
who-listen() { | |
exec 3<&1 # new pipe to show output of nestat in stdout | |
# Netstat and then ps -p of process that netstat showed to us | |
sudo netstat -tulpn | grep :$1 >&3 3>&- | grep -P -o '\d+(?=/)' | sort -u | xargs -r ps -up | |
exec 3>&- # close pipe | |
} |
This file contains hidden or 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
;;;###autoload | |
(defun latex-help (cmd split) | |
"Try to find info entry about LaTeX entity CMD. |
This file contains hidden or 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
<tiles-definitions> | |
<definition name="*.*" template="/WEB-INF/views/common/layout.jsp"> | |
<put-attribute name="header" value="/WEB-INF/views/common/header.jsp" /> | |
<put-attribute name="menu" value="/WEB-INF/views/common/menu.jsp" /> | |
<put-attribute name="body" value="/WEB-INF/views/{1}/{1}_{2}.jsp" /> | |
<put-attribute name="title" value="/WEB-INF/views/{1}/{1}_title.jsp" /> | |
<put-attribute name="scripts" value="/WEB-INF/views/{1}/{1}_scripts.jsp" /> | |
<put-attribute name="styles" value="/WEB-INF/views/{1}/{1}_styles.jsp" /> | |
</definition> | |
</tiles-definitions> |
NewerOlder