Skip to content

Instantly share code, notes, and snippets.

View discountry's full-sized avatar
📕
Learning

Disney discountry

📕
Learning
View GitHub Profile

Shame on you Figma.... Here is a workaround without having to install a fork

Register the client:

curl -X POST https://api.figma.com/v1/oauth/mcp/register \
  -H "Content-Type: application/json" \
  -d '{
    "client_name": "Claude Code (figma)",
 "redirect_uris": ["http://127.0.0.1:19876/mcp/oauth/callback"],
#!/bin/bash
# ================= 1. 用户自定义配置 (请修改此处) =================
# [必填] 推特用户名 (不需要加 @,例如 elonmusk)
TWITTER_USER="discountifu"
# [必填] 币安广场 API Key
BINANCE_API_KEY="123123123"
#!/usr/bin/env bash
set -e
echo "==> Updating apt..."
sudo apt update
echo "==> Installing Chinese fonts (Noto CJK + WenQuanYi)..."
sudo apt install -y \
fontconfig \
fonts-noto-cjk \
{
"spinnerVerbs": {
"mode": "replace",
"verbs": [
"Shuffling Cards",
"Polishing Mana Crystals",
"Filling Up Loading Bar",
"Sweeping Up Minion Dust",
"Installing New Timer Fuse",
"Gathering Spectators",
"browser": {
"enabled": true,
"controlUrl": "http://127.0.0.1:18791",
"executablePath": "/usr/bin/google-chrome-stable",
"headless": true,
"noSandbox": true,
"defaultProfile": "clawd",
"profiles": {
"clawd": {
"cdpPort": 18800,
paths
**/*.{ts,tsx}

React Dev Principles

  1. Purity & Architecture
  • Render must be pure/deterministic: same inputs → same JSX.
  • Must be StrictMode-safe: no side effects in render (no mutations/API calls).
  • Keep render logic separate from event handlers.

Software Engineering Philosophy & Development Protocol

1. Global Integrity & Topology

  • System Awareness: Before implementation, map the dependency graph and system topology. Ensure local changes preserve global invariants and do not trigger "Shotgun Surgery."
  • Orthogonality: Design for independence. Ensure that changes in one module do not leak side effects into others. Minimize coupling and maximize cohesion.

2. Intent & Abstraction Hierarchy

  • Intent-Revealing Design: Prioritize human readability and intent over machine cleverness. Use naming that explains "Why" rather than "How."
  • Single Level of Abstraction (SLA): Adhere strictly to the Single Responsibility Principle (SRP). Each function must operate at a consistent level of abstraction and have exactly one reason to change.
// 建议先刷新网页停止旧脚本,再运行此脚本
var autoBilingual = setInterval(function() {
// --- 1. 侦测市场趋势 ---
// 检查是否有向上趋势的图标 (lucide-trending-up)
const marketIsGoingUp = document.querySelector('span svg.lucide-trending-up') !== null;
// --- 2. 制定反向策略 (定义目标关键词) ---
// 逻辑:涨了就买跌/Short,跌了就买涨/Long
let targetKeywords = [];
@discountry
discountry / antigravity.json
Last active March 10, 2026 08:09
cursor/antigravity/vscode one key push to git
{
"key": "cmd+enter",
"command": "runCommands",
"args": {
"commands": [
{
"command": "git.stageAll"
},
{
"command": "antigravity.generateCommitMessage"