Skip to content

Instantly share code, notes, and snippets.

@toy-crane
toy-crane / toss-frontend-rules.mdc
Last active April 22, 2025 07:14
토스 프론트엔드 가이드라인 기반으로 만든 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.
@aashari
aashari / 00 - Cursor AI Prompting Rules.md
Last active April 22, 2025 07:13
Cursor AI Prompting Rules - This gist provides structured prompting rules for optimizing Cursor AI interactions. It includes three key files to streamline AI behavior for different tasks.

Cursor AI Prompting Framework Usage Guide

This guide explains how to use the structured prompting files (core.md, refresh.md, request.md) to optimize your interactions with Cursor AI, leading to more reliable, safe, and effective coding assistance.

Core Components

  1. core.md (Foundational Rules)
    • Purpose: Establishes the fundamental operating principles, safety protocols, tool usage guidelines, and validation requirements for Cursor AI. It ensures consistent and cautious behavior across all interactions.
    • Usage: This file's content should be persistently active during your Cursor sessions.

Refactoring by Martin Fowler

Steps

  1. Test, change in small and repeat
  2. Class methods should use data from itself and not other classes(Extract method and move method)
  3. Avoid local temporary variables - it tends to increase compexity and long code
  4. Instead of conditions use polymorphism(Replace conditional with polymorphism)

Avoid refactor

  1. When close to deadline
@nathanielfernandes
nathanielfernandes / lisp-cps305-mac.md
Last active April 22, 2025 07:08
A basic tutorial on how to get started with lisp on OS X using vscode as your editor rather than slime or emacs.

Setting up lisp on Mac OS X

Note: this tutorial only outlines how to install and setup whats necessary to compile and run lisp on Mac OS X, it will not go over how to setup emacs or slime. Instead there will be instructions for how to get syntax highlighting on VsCode. If you don't have VsCode download and install it from here https://code.visualstudio.com/download

This tutorial is under the impression that you do not have Homebrew installed, if you do just skip the step.

1. Installation of Homebrew

Homebrew is a common installation tool on mac that will make the rest of this tutorial possible.

@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active April 22, 2025 07:08
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@arashkaffamanesh
arashkaffamanesh / vmware.md
Created January 3, 2025 11:22 — forked from ayebrian/vmware.md
VMware ESXi 8 / vCenter 8 / Workstation 17 license key 2024
@mslinn
mslinn / decompile.bat
Last active April 22, 2025 07:05
Decompile JVM class files using IntelliJ IDEA's embedded FernFlower decompiler
java -cp "C:\Program Files (x86)\JetBrains\IntelliJ IDEA 15.0.2\plugins\java-decompiler\lib\java-decompiler.jar" org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler -dgs=true . src
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ksopyla
ksopyla / install_cuda_12_ubuntu_22.04.md
Last active April 22, 2025 06:57
How to install CUDA toolkit 12 on ubuntu 22.04, step by step guide

Step by step instruction how to install CUDA 12 Ubuntu 22.04

Clean all previous nvidia packages [optional step]

sudo apt purge nvidia*
sudo apt remove nvidia-*
sudo rm /etc/apt/sources.list.d/cuda*