Skip to content

Instantly share code, notes, and snippets.

View alexey-ulashchick's full-sized avatar
🍏

Alexey Ulashchick alexey-ulashchick

🍏
  • Apple
  • San Francisco, CA
View GitHub Profile
@alexey-ulashchick
alexey-ulashchick / zsh-keyboard-shortucts.md
Created February 8, 2023 21:58 — forked from mkfares/zsh-keyboard-shortucts.md
Common zsh Keyboard Shortcuts on macOS Catalina

Common zsh Keyboard Shortcuts on macOS

Navigation

CTRL + A : Move the cursor to the beginning of the line
CTRL + E : Move the cursor to the end of the line
OPTION + Left Arrow : Move the cursor one word backward
OPTION + Right arrow : Move the cursor one word forward
Left Arrow : Move the cursor one character backward
Right Arrow : Move the cursor one character forward

@alexey-ulashchick
alexey-ulashchick / HttpPerformanceTest.java
Created November 18, 2021 06:15
Java 9 HttpClient test demonstrating asynchronicity.
package com.ulashchick.podcast;
import com.sun.net.httpserver.HttpExchange;
import com.sun.net.httpserver.HttpServer;
import org.checkerframework.common.value.qual.IntRange;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import javax.annotation.Nonnull;
@alexey-ulashchick
alexey-ulashchick / example.yml
Created November 6, 2021 03:24 — forked from cecilemuller/example.yml
Run Docker Compose + in Github Action
name: Test
on:
push:
branches:
- main
- features/**
- dependabot/**
pull_request:
branches:
import java.util.Comparator;
import java.util.List;
import java.util.Set;
import java.util.concurrent.*;
import java.util.stream.Collectors;
import java.util.stream.LongStream;
class Scratch {
public static final Set<Long> SHOP_IDS = LongStream.range(0, 10L).boxed().collect(Collectors.toSet());