Skip to content

Instantly share code, notes, and snippets.

View gjuchault's full-sized avatar

Gabriel JUCHAULT gjuchault

View GitHub Profile
@SilenNaihin
SilenNaihin / setup-claude-code.md
Last active January 24, 2026 15:49
Claude Code: Global setup command - installs plugins, commands, agents

Setup Claude Code

You are setting up Claude Code globally on this machine. This captures best practices from agentic coding workflows.

Step 0: Check Existing Setup

First, check what's already configured:

ls ~/.claude/commands/ 2>/dev/null
@SilenNaihin
SilenNaihin / setup-repo.md
Last active January 25, 2026 01:41
Claude Code: Repo Setup command with CLAUDE.md, tooling, and Ralph

Repository Setup

Initialize a new repository with proper structure and configuration.

Context

This command runs AFTER planning is complete. You should already have:

  • A clear understanding of the project requirements
  • A plan for implementation (either in your context or written to a plan file)
  • Knowledge of the tech stack and architecture
@justecorruptio
justecorruptio / 2048.c
Created April 4, 2014 03:49
Tiny 2048 in C!
M[16],X=16,W,k;main(){T(system("stty cbreak")
);puts(W&1?"WIN":"LOSE");}K[]={2,3,1};s(f,d,i
,j,l,P){for(i=4;i--;)for(j=k=l=0;k<4;)j<4?P=M
[w(d,i,j++)],W|=P>>11,l*P&&(f?M[w(d,i,k)]=l<<
(l==P):0,k++),l=l?P?l-P?P:0:l:P:(f?M[w(d,i,k)
]=l:0,++k,W|=2*!l,l=0);}w(d,i,j){return d?w(d
-1,j,3-i):4*i+j;}T(i){for(i=X+rand()%X;M[i%X]
*i;i--);i?M[i%X]=2<<rand()%2:0;for(W=i=0;i<4;
)s(0,i++);for(i=X,puts("\e[2J\e[H");i--;i%4||
puts(""))printf(M[i]?"%4d|":" |",M[i]);W-2