Skip to content

Instantly share code, notes, and snippets.

@lislon
lislon / .gitignore
Created February 18, 2020 20:16
java gitignore
# 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
import java.util.Random;
public class SpaceRocketLaunch {
@FunctionalInterface
interface PrepareActions {
boolean prepare();
}
public static void main(String[] args) {
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;
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 {
public class Age {
public static void main(String[] args) {
int dimaAge = 3;
int mishaAge = 2;
int vasyaAge = 1;
int oldest;
int youngest;
int middle;
# 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
}
We couldn’t find that file to show.
We couldn’t find that file to show.
;;;###autoload
(defun latex-help (cmd split)
"Try to find info entry about LaTeX entity CMD.
<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>