Skip to content

Instantly share code, notes, and snippets.

View eonist's full-sized avatar
🎯
Focusing

André J eonist

🎯
Focusing
View GitHub Profile
@eonist
eonist / previous reasoning around the batch set gradient issue pt2.md
Created August 7, 2025 20:19
previous reasoning around the batch set gradient issue pt2

can you reason about how to get text styles in figma. im developing a figma plugin. my ai agent is struggeling with this: Here is a summary of the current situation and my plan:

The Problem: The get_text_style command is not currently extracting text style properties from Figma text nodes. While the command successfully identifies text nodes, the textStyle object returned is empty.

What's Not Working: The core issue lies in how the _getSingleTextStyle function (located in src/server/commands/figma/style/text/TextStyleGet.ts) attempts to access the text style properties. The properties like fontName, fontSize, etc., are not directly available on the main node object (nodeInfo.document) that is retrieved from Figma. Instead, they are nested within a style sub-object of that node (i.e., nodeInfo.document.style). My current code was incorrectly looking for these proper

@eonist
eonist / previous reasoning around the batch set gradient issue.md
Last active August 7, 2025 20:18
previous reasoning around the batch set gradient issue

can you reason about how to get text styles in figma. im developing a figma plugin. my ai agent is struggeling with this: Here is a summary of the current situation and my plan:

The Problem: The get_text_style command is not currently extracting text style properties from Figma text nodes. While the command successfully identifies text nodes, the textStyle object returned is empty.

What's Not Working: The core issue lies in how the _getSingleTextStyle function (located in src/server/commands/figma/style/text/TextStyleGet.ts) attempts to access the text style properties. The properties like fontName, fontSize, etc., are not directly available on the main node object (nodeInfo.document) that is retrieved from Figma. Instead, they are nested within a style sub-object of that node (i.e., nodeInfo.document.style). My current code was incorrectly looking for these proper

@eonist
eonist / make 3 rects, gradients and then apply them.md
Created August 7, 2025 20:15
make 3 rects, gradients and then apply them

Lets run through our tests to make sure our new code changes still work in all tests. here is the tests to run. its 3 tests. gradient, shapes, text. here it is: # Prompt: “Three-Rectangle Gradient Showcase”

  • Create three 100×100 rectangles named LinearRect, RadialRect, and MulticolorRect.
  • Arrange them horizontally

Gradient styles to apply:

  1. LinearGradient
    – Type: linear
    – Color stops:
@eonist
eonist / coding best practice.md
Created August 7, 2025 20:11
coding best practice

coding best practice

This best practice doc has 3 major parts.

  1. building server and plugin
  2. how to place logging
  3. how to import with alpha symbol path.

building server and plugin

very important: When changes are made to server code then you need to rebuild the server. when you rebuild server (you can build the server in terminal). I have to manually restart the server after its been rebuild. so you have to to stop after rebuilding it so I can do that. after I have restarted the server manually I will tell you and you have to rejoin the channel and proceed with calling commands etc. Remeber this in the continuation. to build server use: cd src/server && bun run build (WE DO NOT RUN SERVER IN TERMINAL, THE SERVER RUNS INSIDE CLINES OWN MCP SERVICE, DO NOT TRY TO RUN THE SERVER IN THE TERMINAL!)

@eonist
eonist / kickstarter_stats.md
Last active August 6, 2025 12:52
kickstarter_stats.md

Can we predict the final funding total for Flowtica Scribe?

1. Where the campaign stands today

  • Campaign launch: 29 Jul 2025.
  • Scheduled end: 16 Sep 2025 (49-day run).
  • Today (06 Aug 2025) is Day 9 of 49.
  • Current pledge total: US$155,491 with 731 backers[1].
  • Average pledge per backer so far: ≈US$213[1].

2. What third-party trackers are projecting

@eonist
eonist / Find dead export code in typescript.md
Created August 3, 2025 22:42
Find dead export code in typescript

Ways to locate unused exports in a TypeScript codebase

1. Built-in TypeScript compiler flag

The TypeScript compiler can already warn about unused locals and unused parameters with the flag below, but it does not report exports that are never imported elsewhere.

// tsconfig.json
{
  "compilerOptions": {
 "noUnusedLocals": true,
@eonist
eonist / Meeting room apps.md
Created July 25, 2025 14:19
Meeting room apps

Major Meeting Room Booking Apps and Their API Availability

Top Meeting Room Booking Platforms

Based on industry reviews and comparisons, the largest and most prominent meeting room booking applications include:

Enterprise-Level Platforms

Envoy - A security-focused meeting room booking system that integrates visitor management, designed for businesses that frequently host external guests while maintaining tight security protocols. Envoy is particularly strong in workplace security and visitor management features.[1]

@eonist
eonist / PC Build Parts List with Best Prices.md
Created July 24, 2025 22:51
PC Build Parts List with Best Prices

PC Build Parts List with Best Prices

Based on my research of current market prices, here's a comprehensive table with the cheapest available prices for each component in your build:

Component Part Name Best Price Product Link
GPU ROG RTX5090 ASTRAL $3,359.99 Micro Center[1]
CPU AMD 9800X3D $451.00 Amazon[2]
Motherboard ROG STRIX X870-I GAMING WIFI $448.99 Newegg[3]
Cooler ID-COOLING IS67-XT $39.99 PCPartPicker[4]
@eonist
eonist / Const in typescript best practice.md
Created July 24, 2025 18:01
Const in typescript best practice

GlobalConst.ts is an acceptable name, especially if the constants are indeed global and used across various parts of the plugin. However, in TypeScript/JavaScript, more descriptive names are generally preferred, and the concept of "global" might sometimes indicate a lack of clear scope.

Here are some better names and considerations, depending on the nature of the constants:

  1. constants.ts: This is a very common and straightforward name for a file containing a collection of related constants. It's concise and clear.
  2. config.ts or settings.ts: If the constants are primarily configuration values or settings for the application/plugin, these names are more appropriate.
  3. enums.ts: If the constants are strictly enumerations (e.g., a set of related named values), using TypeScript enums and placing them in a file named enums.ts is a standard practice.
  4. appConstants.ts or pluginConstants.ts: If the constants are specific to the application or plugin itself, adding a prefix
@eonist
eonist / Scarse vs commodity in the AI space.md
Created July 24, 2025 11:20
The value will be concentrated in the MCP layer, agentic tools are already a commodity

Every vibe coding app out there is like this: Chained prompts. Thats all it is. One prompt with data, and then the next prompt is created based on the previouse one. until something is resolved. lots of if else clauses in between. 😬 (cursor, lovable, cline, goose and 100+ more just like them) as such that part is a commodity. And why I feel MCP is the interesting layer, thats where you can innovate and connect these dump for-loop apps with propriatary logic + data. And solve real problems. Also the logic in these MCPs stay propriatary, so you can innovate without showing how it works. Black box innovation