name | description | tools | model | color |
---|---|---|---|---|
gh-actions-expert |
Expert GitHub Actions workflow analyzer. PROACTIVELY review workflows for security, performance, and best practices. Use for workflow audits, CI/CD optimization, and inter-workflow dependency analysis. |
Bash, Glob, Grep, Read, Edit, Write, WebFetch, TodoWrite, WebSearch, BashOutput, SlashCommand |
sonnet |
pink |
allowed-tools | description |
---|---|
Bash(git reset:*), Bash(git status:*), Bash(git diff:*), Bash(git branch:*), Bash(git log:*), Bash(git add:*), Bash(git commit:*), Bash(git show:*) |
Commit the current changes in one or more logical units. |
- Unstage all currently staged changes, but keep them in the working directory: !
git reset
- Current git status: !
git status
- Current git diff: !
git diff HEAD
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
#!/usr/bin/env bash | |
set -Eeuo pipefail # Strict mode: exit on error, unset var, pipefail; ERR traps inherited | |
# --- Script metadata --- | |
SCRIPT_NAME="kitty-grid-view" | |
SCRIPT_VERSION="1.6.0-title-trim" | |
SCRIPT_DESCRIPTION="Displays images in a grid, with pagination and improved title trimming." | |
# --- Global Constants and Configuration --- | |
INTER_IMAGE_PADDING=2 # Visual space between image cells |
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 java.util.ArrayList; | |
import java.util.List; | |
import java.util.Stack; | |
public class Node<T> { | |
private static final int DEFAULT_MODIFIER = 0; | |
private static final int DEFAULT_PRELIM = 0; |
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
In a world of code, where languages reign, | |
There's one that rises above the rest, it's plain, | |
A giant among giants, it's called Java, | |
A language that's been around, a classic, never to fade away. | |
It's strong, it's fast, it's versatile and flexible, | |
With a community so vast, it's truly remarkable, | |
It's been the backbone of many a great app, | |
Making it the king of the programming world, no need to clap. |
React Router is a library that allows you to handle routing within a React application. It provides a way to map URLs to components, so that when a user navigates to a certain URL, the corresponding component will be displayed.
To get started with React Router, you'll first need to install it. You can do this by running the following command in your terminal:
npm install react-router-dom
ESMs (ECMAScript modules) are the official standard format to package JavaScript code for reuse. Modules are defined using import and export statements. 1
The way we export "things" from our libraries impacts the way they can get imported by clients of our libraries.
For example, if we define a module and export cheese
from it as the default export:
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 xyz.behrang.uploader; | |
import java.io.IOException; | |
import java.net.URI; | |
import java.net.http.HttpClient; | |
import java.net.http.HttpRequest; | |
import java.net.http.HttpRequest.BodyPublisher; | |
import java.net.http.HttpRequest.BodyPublishers; | |
import java.net.http.HttpResponse; | |
import java.nio.charset.StandardCharsets; |
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
#!/bin/bash | |
# A simple script for downloading files from the arXiv S3 bucket (s3://arxiv) | |
# | |
# Author: Behrang Saeedzadeh | |
# Copyright (c) 2019, Behrang Saeedzadeh | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# |
@Test
public void showProject_shouldReturnAccessDenied_forUnauthenticatedUser() {
// Given an unauthenticated get project request
HttpEntity request = unauthenticatedRequest("GET /projects/1");
// When the request is handled by the application
ResponseEntity<ErrorResponse> response = handleRequest(request);
// Then a forbidden response should be returned
NewerOlder