Skip to content

Instantly share code, notes, and snippets.

# PRD: macOS Zsh 환경에서 Gum을 활용한 대화형 Git 단축 함수 구현
이 문서는 사용자가 자신만의 대화형 Git 단축 유틸리티 함수(`gss`, `gaa`, `gcm`)를 구성할 수 있도록 시스템의 세부 동작 논리와 요구사항을 정의합니다.
이 PRD의 목표는 구체적인 코드를 주입하는 대신, 개발자의 AI 코딩 어시스턴트가 논리적 구조를 바탕으로 자유롭고 다양하게 코드를 구현할 수 있도록 **알고리즘 흐름과 단계별 요구 조건**을 명확히 제공하는 것입니다.
---
## 1. 개요 및 목표
# Kiro CLI pre block. Keep at the top of this file.
[[ -f "${HOME}/Library/Application Support/kiro-cli/shell/zshrc.pre.zsh" ]] && builtin source "${HOME}/Library/Application Support/kiro-cli/shell/zshrc.pre.zsh"
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH
# Path to your Oh My Zsh installation.
export ZSH="$HOME/.oh-my-zsh"
#include <stdio.h>
// 1: 1
// 2: 4 (+3)
// 3: 9 (+5)
// 4: 16 (+7)
int n;
int arr[405][900];
int sum[405][900];
def test_extract():
res = extract('matt is the best school in korea')
assert res == 'MICLI', res
# 첫 번째 규칙: 보통 큰 숫자가 왼쪽 > 작은 숫자 오른쪽,
# 숫자의 값을 더한 값이 총합이다.
def test_passes_rule1():
r1, _ = rule1('MICLI')
assert r1 == False
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://api.nhic.or.kr/services/nhic"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
@hanjae-jea
hanjae-jea / login.mjs
Created August 1, 2023 08:53
2023 08 01
import bodyParser from "body-parser";
import express from "express";
import passport from "passport";
import localPass from "passport-local";
import jwtPass from "passport-jwt";
import jwt from "jsonwebtoken";
const app = express();
app.use(bodyParser.json());
const fs = require("fs");
const input = fs.readFileSync("dev/stdin").toString();
const lines = input.trim().split("\n");
const N = Number(lines[0]);
const SWITCH = [undefined].concat(lines[1].trim().split(" ").map(Number));
const M = Number(lines[2]);
for (let l = 3; l < 3 + M; l++) {
const fs = require('fs');
const input = fs.readFileSync('/dev/stdin').toString()
const lines = input.split("\n");
const [n, ...twoNumbers] = lines;
twoNumbers.map(twoString => {
const [a, b] = twoString.split(" ").map((num) => parseInt(num));
for( let i = 1 ; i <= b ; i ++ ){
if( a * i % b == 0 ) {
console.log(a*i);
@hanjae-jea
hanjae-jea / 02.27.js
Created February 27, 2023 13:04
02.27
let fs = require("fs");
let line = fs.readFileSync("/dev/stdin").toString(); // line "3 5"
let numbers = line.split(" "); // ["3", "5"]
let a = parseInt(numbers[0]); // 3
let b = parseInt(numbers[1]); // 5
console.log(a + b);
// var input = fs.readFileSync("/dev/stdin").toString().split(" ");
# 1 객체 생성 확인
try:
my = Account("제한재", "2231")
print("채점 #1 : 객체 생성 ✅")
except:
print("채점 #1 : 객체 생성 ❌")
# 2 통장 번호 확인
try:
qid = my.getId()