Skip to content

Instantly share code, notes, and snippets.

View PavloChechehov's full-sized avatar
🇺🇦
Stay strong

Pavlo PavloChechehov

🇺🇦
Stay strong
View GitHub Profile
package com.bobocode.lesson12;
import com.bobocode.lesson11.NasaResponse;
import com.bobocode.lesson11.Photo;
import org.apache.commons.lang3.tuple.Pair;
import org.springframework.web.client.RestTemplate;
import java.net.URI;
import java.util.*;
import java.util.concurrent.CompletableFuture;
package com.bobocode.lesson12;
import com.bobocode.lesson11.NasaResponse;
import com.bobocode.lesson11.Photo;
import org.apache.commons.lang3.tuple.Pair;
import org.springframework.web.client.RestTemplate;
import java.net.URI;
import java.util.*;
import java.util.concurrent.CompletableFuture;
@PavloChechehov
PavloChechehov / EveningServlet.java
Created June 29, 2022 19:32
Custom session solution
package com.pch;
import jakarta.servlet.ServletException;
import jakarta.servlet.annotation.WebServlet;
import jakarta.servlet.http.Cookie;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
@PavloChechehov
PavloChechehov / EveningServlet.java
Created June 29, 2022 19:35
Evening Servlet with session
package com.pch;
import jakarta.servlet.ServletException;
import jakarta.servlet.annotation.WebServlet;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.servlet.http.HttpSession;
@PavloChechehov
PavloChechehov / Alacritty.yaml
Created June 30, 2022 08:43
My alacritty config
font:
size: 14.0
#normal:
#family: Iosevka
# style: Light
mouse_bindings:
- { mouse: Middle, action: PasteSelection }
key_bindings: