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 java.util.*; | |
import java.util.stream.Collectors; | |
public class Main { | |
public static void main(String[] args) { | |
List<String> matrix = List.of( | |
"******c********", | |
"*6****o********", | |
"******d********", | |
"******i********", |
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 com.devskiller.tasks.blog.rest; | |
import com.devskiller.tasks.blog.model.dto.CommentDto; | |
import com.devskiller.tasks.blog.model.dto.NewCommentDto; | |
import com.devskiller.tasks.blog.service.CommentService; | |
import org.springframework.http.HttpStatus; | |
import org.springframework.web.bind.annotation.*; | |
import java.util.List; |
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
1. | |
curl -XPUT "http://127.0.0.1:9200/demo-default/_doc/1" -d'{ | |
"message": "[5592:1:0309/123054.737712:ERROR:child_process_sandbox_support_impl_linux.cc(79)] FontService unique font name matching request did not receive a response.", | |
"fileset": { | |
"name": "syslog" | |
}, | |
"process": { | |
"name": "org.gnome.Shell.desktop", | |
"pid": 3383 |
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
{ | |
"mappings":{ | |
"properties":{ | |
"film_to_franchise":{ | |
"type":"join", | |
"relations":{ | |
"franchise":"film" | |
} | |
} | |
} |
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
{ | |
"query":{ | |
"has_parent":{ | |
"parent_type":"franchise", | |
"query":{ | |
"match":{ | |
"title":"Star Wars" | |
} | |
} | |
} |
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
{ | |
"query":{ | |
"has_child":{ | |
"type":"film", | |
"query":{ | |
"match":{ | |
"title":"The Force Awakens" | |
} | |
} | |
} |
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
{ "create" : { "_index" : "series", "_id" : "1", "routing" : 1} } | |
{ "id": "1", "film_to_franchise": {"name": "franchise"}, "title" : "Star Wars" } | |
{ "create" : { "_index" : "series", "_id" : "260", "routing" : 1} } | |
{ "id": "260", "film_to_franchise": {"name": "film", "parent": "1"}, "title" : "Star Wars: Episode IV - A New Hope", "year":"1977" , "genre":["Action", "Adventure", "Sci-Fi"] } | |
{ "create" : { "_index" : "series", "_id" : "1196", "routing" : 1} } | |
{ "id": "1196", "film_to_franchise": {"name": "film", "parent": "1"}, "title" : "Star Wars: Episode V - The Empire Strikes Back", "year":"1980" , "genre":["Action", "Adventure", "Sci-Fi"] } | |
{ "create" : { "_index" : "series", "_id" : "1210", "routing" : 1} } | |
{ "id": "1210", "film_to_franchise": {"name": "film", "parent": "1"}, "title" : "Star Wars: Episode VI - Return of the Jedi", "year":"1983" , "genre":["Action", "Adventure", "Sci-Fi"] } | |
{ "create" : { "_index" : "series", "_id" : "2628", "routing" : 1} } | |
{ "id": "2628", "film_to_franchise": {"name": "fi |
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
{ "create" : { "_index" : "movies", "_id" : "135569" } } | |
{ "id": "135569", "title" : "Star Trek Beyond", "year":2016 , "genre":["Action", "Adventure", "Sci-Fi"] } | |
{ "create" : { "_index" : "movies", "_id" : "122886" } } | |
{ "id": "122886", "title" : "Star Wars: Episode VII - The Force Awakens", "year":2015 , "genre":["Action", "Adventure", "Fantasy", "Sci-Fi", "IMAX"] } | |
{ "create" : { "_index" : "movies", "_id" : "109487" } } | |
{ "id": "109487", "title" : "Interstellar", "year":2014 , "genre":["Sci-Fi", "IMAX"] } | |
{ "create" : { "_index" : "movies", "_id" : "58559" } } | |
{ "id": "58559", "title" : "Dark Knight, The", "year":2008 , "genre":["Action", "Crime", "Drama", "IMAX"] } | |
{ "create" : { "_index" : "movies", "_id" : "1924" } } | |
{ "id": "1924", "title" : "Plan 9 from Outer Space", "year":1959 , "genre":["Horror", "Sci-Fi"] } |
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
body { | |
margin: 0; | |
} | |
.nav-todo { | |
width: 100%; | |
height: 5rem; | |
display: flex; | |
justify-content: space-between; | |
align-items: center; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>TODO LIST</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="style.css"> | |
</head> | |
<body> |
NewerOlder