Skip to content

Instantly share code, notes, and snippets.

View easylogic's full-sized avatar
πŸ˜€
happy coding

jinho park easylogic

πŸ˜€
happy coding
View GitHub Profile
@woogi-kang
woogi-kang / flutter-cursorrules.mdc
Last active May 15, 2025 01:30
Flutter CursorRules - A set of standardized best practices for Flutter development that promote clean, maintainable, and efficient code.
# CursorRules for Flutter Developers
## Overview
This document provides a comprehensive set of cursor rules (development practices) for cr eating high-quality Flutter applications. These rules emphasize clean code, maintainability, and performance while leveraging modern Flutter and Dart features. The principles outlined here can be applied across projects to ensure consistency and quality.
## Core Principles
All cursor rules are based on these four fundamental principles:
const fetchStream = async (request)=>{
const controller = new AbortController();
try {
const option = {
method:request.method,
mode:request.mode,
credentials: 'include',
signal:controller.signal
};
if(request.headers) option.headers = request.headers;
IME_CHECK(WinTitle)
{
WinGet,hWnd,ID,%WinTitle%
Return Send_ImeControl(ImmGetDefaultIMEWnd(hWnd),0x005,"")
}
Send_ImeControl(DefaultIMEWnd, wParam, lParam)
{
DetectSave := A_DetectHiddenWindows
DetectHiddenWindows,ON
@daniel-geon-park
daniel-geon-park / PCP.cpp
Last active April 29, 2020 14:50
Undecidable C++ Grammar Example
#include <algorithm>
#include <type_traits>
template <int... Ints>
struct Row {
constexpr static bool empty = (sizeof...(Ints) == 0);
};
template <typename Upper, typename Lower>
struct Domino {
@lqez
lqez / getProperColor.js
Last active September 11, 2019 07:56
get proper text color for given background color (even with true-background color for transparency background)
export function properTextColor(backColor, trueBackColor) {
function getRGBAfromHEX(color) {
color = color.slice(1).replace(color.length < 5 && /./g, '$&$&');
color = parseInt(color.length > 6 ? color : color + 'FF', 16);
return {
r: color >>> 24,
g: color >>> 16 & 255,
b: color >>> 8 & 255,
a: color & 255
package ein.core.core
import ein.core.regex.eReg
interface ePrimitive {
companion object {
val EMPTY = ePrimitive("")
operator fun invoke(v:String) = eString(v)
operator fun invoke(v:Long) = eLong(v)
operator fun invoke(v:Double) = eDouble(v)

이 글은 μ•ˆλ“œλ ˆμ΄ μΉ΄νŒ¨μ‹œμ˜ κΈ€ μ†Œν”„νŠΈμ›¨μ–΄ 2.0 을 λ²ˆμ—­ν•œ κ²ƒμž…λ‹ˆλ‹€. 의/μ˜€μ—­μ΄ μžˆμ„ 수 μžˆμŠ΅λ‹ˆλ‹€.


μ†Œν”„νŠΈμ›¨μ–΄ 2.0

λ‚˜λŠ” λ•Œλ•Œλ‘œ μ‚¬λžŒλ“€μ΄ λ‰΄λŸ΄λ„·μ„ "κΈ°κ³„ν•™μŠ΅ 도ꡬ μƒμžμ˜ 또 λ‹€λ₯Έ 도ꡬ"둜 μ–ΈκΈ‰ν•˜λŠ” 것을 λ³Έλ‹€. λ‰΄λŸ΄λ„·μ€ μž₯단점이 μžˆλ‹€. μ—¬κΈ° μ €κΈ°μ—μ„œ λ™μž‘ν•˜κ³ , λ•Œλ‘œλŠ” 캐글 κ²½μŸμ—μ„œ μŠΉλ¦¬ν•˜λŠ”λ° μ‚¬μš©ν•  μˆ˜λ„ μžˆλ‹€. κ·ΈλŸ¬λ‚˜ 이 해석은 μ™„μ „νžˆ λ‚˜λ¬΄λ§Œ 보고 μˆ²μ„ 보지 λͺ»ν•˜λŠ” 것이닀. λ‰΄λŸ΄λ„·μ€ 단지 또 λ‹€λ₯Έ μ’…λ₯˜μ˜ λΆ„λ₯˜κΈ°κ°€ μ•„λ‹ˆλ‹€. 그것은 μš°λ¦¬κ°€ μ†Œν”„νŠΈμ›¨μ–΄λ₯Ό μž‘μ„±ν•˜λŠ”λ° μžˆμ–΄ 근본적인 λ³€ν™”μ˜ μ‹œμž‘μ„ λ‚˜νƒ€λ‚Έλ‹€. 그것은 μ†Œν”„νŠΈμ›¨μ–΄ 2.0이닀.

μ†Œν”„νŠΈμ›¨μ–΄ 1.0의 "고전적인 μŠ€νƒ"은 μš°λ¦¬κ°€ μ΅μˆ™ν•œ 것이닀. 그것은 Python, C++ λ“±μ˜ μ–Έμ–΄λ‘œ μž‘μ„±μ΄ λ˜μ–΄ 있고, ν”„λ‘œκ·Έλž˜λ¨Έκ°€ μž‘μ„±ν•œ ꡬ체적 λͺ…λ ΉμœΌλ‘œ κ΅¬μ„±λ˜μ–΄ μžˆλ‹€. ν”„λ‘œκ·Έλž˜λ¨ΈλŠ” μ½”λ“œμ˜ 각 라인을 μž‘μ„±ν•˜λŠ” κ²ƒμœΌλ‘œ ν”„λ‘œκ·Έλž¨ κ³΅κ°„μ˜ νŠΉμ • 포인트λ₯Ό μ–΄λ–€ μ›ν•˜λŠ” ν–‰λ™μœΌλ‘œ ν™•μ •μ§“κ³  μžˆλ‹€.

@juhaelee
juhaelee / react-typescript.md
Last active July 21, 2025 19:28
React + Typescript Cheatsheet

React + Typescript Cheatsheet

Setup

If you use atom... download & install the following packages:

What are Typescript type definition files? (*.d.ts)

@wkpark
wkpark / saenaru.js
Created April 4, 2013 14:24
μžλ°”μŠ€ν¬λ¦½νŠΈ μƒˆλ‚˜λ£¨ ν•œκΈ€ μž…λ ₯κΈ°
/**
* Saenaru Javascript Hangul Input Method by wkpark at gmail.com
* 2013/03/25
* License: GPLv2
*/
var Saenaru = function() {};
Saenaru.prototype = {
_q: [],
@zanshin
zanshin / .zshrc
Created August 12, 2011 19:09
My .zshrc file
# Path to your oh-my-zsh configuration.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
#export ZSH_THEME="robbyrussell"
export ZSH_THEME="zanshin"