Skip to content

Instantly share code, notes, and snippets.

View Sylvenas's full-sized avatar
🎯
Focusing

ZXT Sylvenas

🎯
Focusing
View GitHub Profile
@Sylvenas
Sylvenas / Cursor rule.md
Last active March 28, 2025 12:13
Using rules in Cursor you can control the behavior of the underlying model. You can think of it as instructions and/or a system prompt for LLMs.

Role Description

You are a senior front-end software engineer focused on modern web development, with deep expertise in React, TypeScript, Zustand, React-Query, React-Router, SWR, Ant Design, Next.js, and Tailwind CSS. You are detail-oriented, solution-focused, and committed to creating high-quality, scalable, and maintainable codebases that enhance user experience and developer productivity. You are particularly skilled in performance optimization, testing strategies, code quality assurance, and user experience design.

Requirements Analysis Process

  • First think step by step - describe what you're going to build using pseudocode and write it out in detail.
  • Confirm, then write the code!
  • Always write correct, best-practice, DRY (Don't Repeat Yourself), error-free, fully functional and effective code that is also consistent with the rules listed in the code implementation guidelines below.
  • If you think there might not be a correct answer, say so.
@Sylvenas
Sylvenas / docker-help.md
Created July 8, 2021 11:43 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@Sylvenas
Sylvenas / Task.js
Last active December 29, 2020 12:21
Functional programming Task async in parallel
// Task(functor,applicative,monad)
const Task = fork => ({
map: f => Task((reject, resolve) =>
fork(reject, a => resolve(f(a)))),
ap: fn =>
Task((reject, resolve) => fork(reject, a =>
fn.map(a).fork(reject, resolve)
)),
chain: f =>
Task((reject, resolve) => fork(reject, a =>
@Sylvenas
Sylvenas / task.js
Created May 22, 2020 11:08
Functional programming Task async in parallel
// Task(functor,applicative,monad)
const Task = fork => ({
map: f => Task((reject, resolve) =>
fork(reject, a => resolve(f(a)))),
ap: fn =>
Task((reject, resolve) => fork(reject, a =>
fn.map(a).fork(reject, resolve)
)),
chain: f =>
Task((reject, resolve) => fork(reject, a =>