Skip to content

Instantly share code, notes, and snippets.

@albertywu
albertywu / test.md
Last active August 9, 2024 20:25
test

Pull Request is not ready for merge.

Metadata

Detailstest
### Buildable

Pull Request is not ready for merge.

Metadata

test

@albertywu
albertywu / fix.md
Last active August 9, 2024 20:11
fix

Pull Request is not ready for merge.

Metadata - 🔴

Status Path Recommended reviewers Escalated reviewers
🟡 Pending / devtools
ApprovalsRequired approvals haven't met as per the METADATA file.

Buildable - 🟢

@albertywu
albertywu / broken.md
Last active August 9, 2024 20:13
broken (original)

Pull Request is not ready for merge.

Metadata - 🔴

Status Path Recommended reviewers Escalated reviewers
🟡 Pending / devtools
ApprovalsRequired approvals haven't met as per the METADATA file.

### Buildable - 🟢

| Check Name | Status | Conclusion | Details URL | Impact |\n| --- | --- | --- | --- | --- |

test one

test two


this is just a tenth comment

this is just a ninth comment

this is just a eighth comment

this is just a seventh comment

this is just a sixth comment

@albertywu
albertywu / gpt2.java
Created May 9, 2023 22:33
corrected java code from gpt4
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;
import reactor.core.publisher.Flux;
import reactor.test.StepVerifier;
import software.amazon.awssdk.services.location.LocationAsyncClient;
import software.amazon.awssdk.services.location.model.Place;
import software.amazon.awssdk.services.location.model.SearchPlaceIndexForTextResponse;
@albertywu
albertywu / gpt.java
Created May 9, 2023 22:28
gpt-generated tests
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;
import reactor.core.publisher.Flux;
import reactor.test.StepVerifier;
import software.amazon.awssdk.services.location.LocationAsyncClient;
import software.amazon.awssdk.services.location.model.Place;
import software.amazon.awssdk.services.location.model.SearchPlaceIndexForTextResponse;
@albertywu
albertywu / findFullName.java
Created May 5, 2023 16:59
Get full name from nickname
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class NicknameToName {
private static final Map<String, String> NICKNAME_TO_NAME_MAP;
static {
NICKNAME_TO_NAME_MAP = new HashMap<>();
@albertywu
albertywu / clibuddy.md
Last active April 15, 2023 02:00
A specification for clibuddy

I want to create a python CLI tool called 'clibuddy' that uses the 'click' library.

The CLI tool will wrap another command, and will either 1) print out detailed information of what failed or 2) attempt to fix errors any time the wrapped command fails with exit code > 0.

Structure of CLI app:

clibuddy --tool="tools/mytool.py" --explain mytool ...mytool_args
clibuddy --tool="tools/mytool.py" --fix mytool ...mytool_args