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
# Dockerfile | |
FROM node:18-alpine as build | |
WORKDIR /app | |
COPY package.json package-lock.json ./ | |
RUN npm install | |
COPY . . # Убедитесь, что копируется весь проект, включая index.html и все исходные файлы | |
RUN npm run build |
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
*, | |
*::before, | |
*::after { | |
box-sizing: border-box; | |
} | |
body { | |
background-color: #3848a0; | |
font-family: 'Open Sans', arial, sans-serif, system-ui; | |
margin: 0 auto; | |
} |
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 folium | |
from IPython.display import display | |
map_center = [52.520,13.4050] | |
mymap = folium.Map(location=map_center,zoom_start=15) | |
folium.Marker ( | |
[52.520,13.4050], | |
popup="Berlin", | |
icon=folium.Icon(color="blue", icon="info-sign") |
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
@NamedNativeQuery( | |
name = "getTenders", | |
query = "SELECT t.id, t.created_at, CONCAT(u.first_name, ' ' , u.last_name) as created_by, t.modified_at, CONCAT(u2.first_name, ' ' , u2.last_name) as modified_by, t.tenders_abbreviation, t.tenders_full_name FROM abc.tenders v\n" + | |
"LEFT JOIN abc.users u on u.id = v.created_by LEFT JOIN rbac.users u2 on u2.id = v.modified_by", | |
resultSetMapping = "tendersMappings" | |
) | |
@SqlResultSetMapping(name = "tendersMappings", entities = { | |
@EntityResult(entityClass = TendersEntity.class, fields = { | |
@FieldResult(name = "id", column = "id"), |
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
AccountDetails accountDetails = new AccountDetails(); | |
CompletableFuture.allOf( | |
CompletableFuture. | |
supplyAsync(() -> //CALL MORTAGE INFO REST, executor). | |
thenAccept(x -> { | |
accountDetails.setMortgageAccountId(x.getReqdField()) | |
}). | |
handle(//HANDLE GRACEFULLY), | |
CompletableFuture. |
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
private <T> PagingResponseDto<T> makePagingResponse( T clazz, PagingRequestDto pagerParams) { | |
var response = new PagingResponseDto<T>(maxPagingRows); | |
Integer size = pagerParams.getSize(); | |
Integer page = pagerParams.getPage(); | |
response.setSize(size == null || size <= 0 ? maxPagingRows : size); | |
response.setPage(page); | |
return response; | |
} | |
this.makePagingResponse(new IdNameResponseDto(),param); |
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
GET /products/_search | |
{ | |
"query": | |
{ | |
"wildcard": | |
{"details.product":"поду*"} | |
} | |
} |
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
PUT /products2 | |
{ | |
"settings": { | |
"index": { | |
"analysis": { | |
"analyzer": { | |
"my_analyzer": { | |
"type": "custom", | |
"tokenizer": "my_ngram_tokenizer", |
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
from random import sample | |
numbers = range(1,200) | |
for _ in range(10): | |
print(sample(numbers,5)) |
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.mypackage.bean; | |
public class Dog { | |
private String name; | |
private int age; | |
public Dog() { | |
// empty constructor | |
} |
NewerOlder