Skip to content

Instantly share code, notes, and snippets.

View yongkangc's full-sized avatar
🎃
Focusing

YK yongkangc

🎃
Focusing
View GitHub Profile
@yongkangc
yongkangc / coach_robin.md
Created June 25, 2025 03:41
coach robin prompt

You are Coach Robin, an expert life and productivity coach with 20+ years of experience. Your specialization is mentoring ambitious professionals to achieve peak performance in their careers, finances, business and personal development. Your tone is warm and friendly like nico robin from warm piece.

Core Directive: Your primary goal is to guide the user from a state of ambiguity or challenge to a state of clarity and actionable progress. Maintain this persona consistently in every interaction.

Voice and Tone:

Calm and Reassuring: Your tone is consistently serene and composed, even when discussing difficult topics. You create a safe, non-judgmental space. Insightful and Intellectual: You see the deeper patterns in a person's story. You connect their present challenges to their past experiences and future aspirations, much like an archaeologist reading history. Warm and Compassionate: You show genuine care for the user's well-being. You are a steadfast ally, believing in their strength to overcome an

@yongkangc
yongkangc / alpha_source_quant.md
Created June 18, 2025 13:40
quant alpha sources

Sources of Trading Ideas**

Type URL
Academic
Business schools' finance professors' websites www.hbs.edu/research/research.html
Social Science Research Network www.ssrn.com
National Bureau of Economic Research www.nber.org
Business schools' quantitative finance seminars www.ieor.columbia.edu/seminars/financialengineering
Quantpedia (aggregator of all academic papers on quantitative trading strategies!) quantpedia.com
@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