Skip to content

Instantly share code, notes, and snippets.

View yongkangc's full-sized avatar
🎃
Focusing

YK yongkangc

🎃
Focusing
View GitHub Profile
@yongkangc
yongkangc / alex.txt
Created July 1, 2025 16:27
alex_hormozi tips for 20, 30s
Fetching transcript for: https://www.youtube.com/watch?v=ub1D6RQocRU
--------------------------------------------------
Give me the next 30 minutes and I'll
help you make the most of your 20s and
your 30s. So, I made my first million
when I was 26. A decade later, my
portfolio companies generated last year
over $250 million in aggregate revenue.
And I'm 36 now. And so, in this video,
I'm going to give you the real world
@yongkangc
yongkangc / hormozi.txt
Created July 1, 2025 14:21
hormozi.txt
Fetching transcript for: https://www.youtube.com/watch?v=VsANYRGR1m0
--------------------------------------------------
for someone who loves technology loves
the digital age we're in but when it
comes to notes you still prefer a pen
and paper today's video might be for you
so today we're going to take a look at
two paper tablets that are meant to give
you a very paperlike experience when
writing notes the remarkable Pro and the
@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;