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
@easylogic
easylogic / transform-figma-to-css-gradient.ts
Created March 31, 2025 04:22
Transform figma linear gradient to css linear gradient
import { ColorTransformer } from './ColorTransformer';
import { MatrixTransformer } from './MatrixTransformer';
interface Point {
x: number;
y: number;
}
interface RGBA {
r: number;
@easylogic
easylogic / gl-example.md
Last active February 1, 2025 16:53
GL - Graphic Language

document, page, gl.component, gl.componentSet, variant, template

@document "Enterprise Design System" {
  description: "Enterprise application design system";
  version: "2.0.0";

  @variables {
    colors: {
      light: {
{
"type": "FRAME",
"name": "Comprehensive Machine Health Sensors Dashboard",
"x": 0,
"y": 0,
"width": 1920,
"height": 1080,
"minWidth": 1600,
"maxWidth": 2560,
"minHeight": 900,
@easylogic
easylogic / sample.md
Last active January 17, 2024 12:20
test

accordion token

export const accordion = {
  root: {
    borderColor: { value: '{colors.gray.1000}' },
    paddingInline: { value: '{spacing.2}' },
    paddingBlock: { value: '{spacing.2}' },
    borderRadius: { value: '{radii.sm}' },
  },
@easylogic
easylogic / refactoring-sapa.md
Last active October 9, 2022 15:07
Refactoring sapa

Sapa ์˜ ๋ช‡๊ฐ€์ง€ ๋ฌธ์ œ์ (?)๋“ค์„ ๋‹ค์‹œ ์ƒ๊ฐํ•ด๋ณธ๋‹ค.

  1. multi root elements

Sapa ๋Š” ๊ธฐ๋ณธ์ ์œผ๋กœ ์ปดํฌ๋„ŒํŠธ ๊ธฐ๋ฐ˜์œผ๋กœ ์„ค๊ณ„๊ฐ€ ๋˜์–ด ์žˆ๊ธฐ ๋•Œ๋ฌธ์— ์ปดํฌ๋„ŒํŠธ๋Š” ํ•˜๋‚˜์˜ element ๋ฅผ root ๋ฅผ ๊ฐ€์งˆ ์ˆ˜ ์žˆ๋‹ค. multi elements ๊ฐ€ ๋ ๋ ค๋ฉด fragment ๋กœ ๊ฐ์‹ธ์•ผ ํ•˜๋Š”๋‹ค.

  1. fragment

vnode ๋ฅผ ์ฒ˜์Œ ์ƒ์„ฑํ•ด์„œ dom ์„ ๋งŒ๋“ค๋•Œ๋Š” ๊ดœ์ฐฎ์ง€๋งŒ update ํ•  ๋•Œ๊ฐ€ ๋ฌธ์ œ๋‹ค.

@easylogic
easylogic / salang.md
Last active December 19, 2023 03:39
stylish language - CSS and Language - SaLang - ์‚ฌ๋ž‘( korean language)

์‚ฌ๋ž‘(SaLang - Stylish CSS based Language)

salang is css based language.

please show below code

span.MyComponent {
    // properties 
    --background-color: yellow;
@easylogic
easylogic / css-language-architecture.md
Created March 1, 2022 17:09
css language architecture

CL - CSS Language

.A {  // class A 

  // initialize 
  
  // private
   --value: 10;
 
@easylogic
easylogic / editor-context.md
Created November 19, 2021 11:57
storage ์ €์žฅ config ๋ถ„๋ฆฌ

์ €์žฅ ํ•˜๋Š” config ์™€ ์•„๋‹Œ ๊ฒƒ์„ ๊ตฌ๋ถ„ํ•ด์•ผํ•จ

๋ฐฉ๋ฒ•์€ config ์™€ ๋˜‘๊ฐ™์ด ํ•˜๊ณ  config ์— ์„ ์–ธ์ด ์•ˆ๋˜์–ด ์žˆ๊ฑฐ๋‚˜. storage : none ์˜ต์…˜์ด ์žˆ๋Š” ์• ๋“ค์€ ์ €์žฅ์„ ์•ˆํ•˜๋Š”๊ฑธ๋กœ ํ•ด์•ผํ•  ๋“ฏ

๊ทธ๊ฒŒ ๋งž๋Š”๋“ฏ

@easylogic
easylogic / mini-editor-system.md
Last active December 8, 2021 01:12
mini editor ๋“ฑ๋ก ์‹œ์Šคํ…œ

ํŠน์ • ์ปดํฌ๋„ŒํŠธ ๋˜๋Š” ํŠน์ • ์„ค์ •์— ๋Œ€ํ•œ ์—ฌ๋Ÿฌ๊ฐ€์ง€ ๊ฐ’์„ json ํ˜•ํƒœ๋กœ ์—๋””ํ„ฐ๋ฅผ ๋ฐ”๋กœ ๋งŒ๋“ค์–ด์„œ ์‚ฌ์šฉํ•˜๋Š” ๊ฐœ๋…

inspector ์— ์ถ”๊ฐ€ ํ•˜๋Š” ๋ฐฉ๋ฒ•

itemType ์— ๋”ฐ๋ผ ์ˆ˜์ •๋˜์–ด์•ผ ํ•˜๋Š” ์†์„ฑ์— ๋Œ€ํ•ด์„œ json ํ˜•ํƒœ๋กœ ๋‚˜์—ดํ•ด์ฃผ๋ฉด ๋ฆฌํ„ด์„ json ํ˜•ํƒœ๋กœ ๋™์ผํ•˜๊ฒŒ ํ•ด์ค€๋‹ค.

    editor.registerInspector('polygon', (item) => {
        return [
            {
@easylogic
easylogic / animation-transition-architecture.md
Last active September 8, 2021 00:45
์• ๋‹ˆ๋ฉ”์ด์…˜ ์†์„ฑ ์žฌ์„ค๊ณ„

๋ฌธ์ž์—ด ๋ฐ์ดํƒ€์—์„œ ๊ฐ์ฒด ๊ธฐ๋ฐ˜ ๋ฐ์ดํƒ€๋กœ ๋ณ€๊ฒฝ

animation ์€ ๋ณต์žกํ•œ ๋ฐ์ดํƒ€๋ฅผ ๋งค๋ฒˆ ํ•ฉ์„ฑํ•ด์•ผํ•˜๊ธฐ ๋•Œ๋ฌธ์— ์ฒ˜์Œ๋ถ€ํ„ฐ json object ํ˜•ํƒœ๋กœ ํ•ธ๋“ค๋งํ•œ๋‹ค.

animations: [{
  duration,
 timingFunction,