Skip to content

Instantly share code, notes, and snippets.

View yongkangc's full-sized avatar
🎃
Focusing

YK yongkangc

🎃
Focusing
View GitHub Profile
@yongkangc
yongkangc / logo_prompt.json
Created April 23, 2025 02:47
logo prompt
{
"prompt": "A futuristic trading card with a dark, moody neon aesthetic and soft sci-fi lighting. The card features a semi-transparent, rounded rectangle with slightly muted glowing edges, appearing as if made of holographic glass. At the center is a large glowing logo of {{logo}}, with no additional text or label, illuminated with a smooth gradient of {{colors}}, but not overly bright. The reflections on the card surface should be subtle, with a slight glossy finish catching ambient light. The background is a dark carbon fiber texture or deep gradient with soft ambient glows bleeding into the edges. Add subtle light rays streaming down diagonally from the top, giving the scene a soft cinematic glow. Apply light motion blur to the edges and reflections to give the scene a sense of depth and energy, as if it's part of a high-end tech animation still. Below the card, include realistic floor reflections that mirror the neon edges and logo—slightly diffused for a grounded, futuristic look. Text elements are mini
@yongkangc
yongkangc / jup.json
Created April 1, 2025 09:43
jup idl
{
"version": "0.1.0",
"name": "perpetuals",
"instructions": [
{
"accounts": [
{
"isMut": true,
"isSigner": true,
"name": "upgradeAuthority"
@yongkangc
yongkangc / drift.json
Created April 1, 2025 09:42
drift idl
{
"version": "2.114.0",
"name": "drift",
"instructions": [
{
"accounts": [
{
"isMut": true,
"isSigner": false,
"name": "user"
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bond Auction Simulator</title>
<style>
:root {
--primary-color: #1e88e5;
--primary-dark: #1565c0;
@yongkangc
yongkangc / rob.json
Created February 20, 2025 14:41
giving names
{
"name": "Rob",
"description": "Senior Blockchain Architect specializing in high-performance Rust systems and Solana ecosystem development. Expert in building secure, concurrent distributed systems from low-level optimization to application architecture.",
"personality_traits": {
"technical_approach": "Systems-first design philosophy",
"problem_solving": "Performance-aware solution crafting",
"communication_style": "Precision-focused technical clarity",
"design_priorities": [
"Memory safety without performance tax",
"Concurrent access patterns",
@yongkangc
yongkangc / Kernel.md
Created February 1, 2025 08:52
Kernel example

Writing GPU kernels used to feel like wizardry—arcane knowledge understood by few. But it’s really about unlocking fine-grained control over memory and threads, typically via CUDA (NVIDIA GPUs), Triton (OpenAI’s language for custom kernels), or ROCm (AMD GPUs).

Here’s a quick dive into CUDA, using examples to illustrate key optimization techniques:

  1. Vectorization
    Simultaneously process contiguous data elements to reduce latency.
__global__ void vectorize_add(float *a, float *b, float *c, int n) {  
    int idx = blockIdx.x * blockDim.x + threadIdx.x;  
@yongkangc
yongkangc / scraper.md
Last active January 27, 2025 00:56
Calendar Scraper Scraper

Export Academic Schedule to Calendar (ICS)

This script extracts your class schedule from a university portal (e.g., PeopleSoft/MyPortal) and generates an .ics calendar file for importing into apps like Google Calendar, Outlook, or Apple Calendar.


Prerequisites

  • A browser with developer tools (Chrome, Firefox, Edge).
  • Access to your My Weekly Schedule on the portal.
  • Basic understanding of JavaScript (for troubleshooting).
@yongkangc
yongkangc / Gantz.md
Created October 16, 2024 03:12
V1 Gantz
gantt
    title Gantt Chart for Product, Biz, and Other Dev.
    dateFormat  YYYY-MM-DD
    axisFormat  %b %d

    section Product Dev.
    MVP V1 Bot Server Dev.          :done,    p1, 2024-09-30, 2024-10-20
    MVP V1 Mini App Dev.            :done,    p2, 2024-09-30, 2024-10-20
    Internal MVP V1 Testing         :done,    p3, 2024-10-14, 2024-10-20
@yongkangc
yongkangc / Gantz.md
Created October 16, 2024 03:10
Gantz
gantt
    title Gantt Chart for Product, Biz, and Other Dev.
    dateFormat  YYYY-MM-DD
    axisFormat  %b %d

    section Product Dev.
    MVP V1 Bot Server Dev.          :done,    p1, 2024-09-30, 2024-10-20
    MVP V1 Mini App Dev.            :done,    p2, 2024-09-30, 2024-10-20
    Internal MVP V1 Testing         :done,    p3, 2024-10-14, 2024-10-20
@yongkangc
yongkangc / architecture.md
Last active October 11, 2024 02:51
technical architecture
graph TD
    A[Event Name] -->|Schedule Command| B[Event Schema]
    A --> C[Ideas Schema]
    
    D[Mini App URL] --> E[Ideas Leaderboard]
    D --> F[Call for Ideas]
    
    F --> G[Idea Form]
 G --&gt; H[Ideas Table]