Skip to content

Instantly share code, notes, and snippets.

View toy-crane's full-sized avatar

hanwool kim toy-crane

View GitHub Profile
{
"key": "cmd+enter",
"command": "runCommands",
"args": {
"commands": [
{
"command": "git.stageAll"
},
{
"command": "cursor.generateGitCommitMessage"
@toy-crane
toy-crane / toss-frontend-rules.mdc
Last active April 27, 2025 10:30
토스 프론트엔드 가이드라인 기반으로 만든 Cursor rule
# Frontend Design Guideline
This document summarizes key frontend design principles and rules, showcasing
recommended patterns. Follow these guidelines when writing frontend code.
# Readability
Improving the clarity and ease of understanding code.
import requests
import csv
import json
import time
import argparse
from urllib.parse import urlencode
def scrape_bluer_restaurants(output_file="bluer_restaurants.csv"):
"""
Scrape restaurant data from Bluer API and save to CSV file
@toy-crane
toy-crane / index.ts
Last active February 11, 2025 07:05
How to create a title
import { createClient } from "https://esm.sh/@supabase/[email protected]";
import { generateObject, generateText, Output } from "npm:ai";
import { openai } from "npm:@ai-sdk/openai";
import { z } from "npm:zod";
const TitleOutput = z.object({
summary: z.string().describe(
"대화에서 다룬 내용을 바탕으로 간단한 요약을 알려주세요",
),
partner: z.string().describe(
<select name="choice">
<option value="banana">바나나</option>
<option value="apple">사과</option>
<option value="orange">오렌지</option>
</select>
<style>
.container {
margin: 1em 0;
background-color: #c2edc8;
display: flex;
flex-direction: row;
}
.box {
padding: 1em;
<style>
.container {
margin: 1em 0;
background-color: #c2edc8;
display: flex;
flex-direction: row;
}
.box {
padding: 1em;
<style>
.container {
margin: 1em 0;
background-color: #c2edc8;
display: flex;
flex-direction: row;
}
.box {
padding: 1em;
<style>
.container {
margin: 1em 0;
border: 3px dotted #4a4a4a;
padding: 0.5em;
background-color: #c2edc8;
display: flex;
flex-direction: row;
}
<style>
.container {
margin: 1em 0;
border: 3px dotted #4a4a4a;
padding: 0.5em;
background-color: #c2edc8;
display: flex;
flex-direction: row;
}