Skip to content

Instantly share code, notes, and snippets.

View Crunchyman-ralph's full-sized avatar

Ralph Khreish Crunchyman-ralph

View GitHub Profile
@jalehman
jalehman / claude_code_workflow_commands.md
Created April 24, 2025 23:15
Claude Code workflow commands

Overview

The following are the commands that I create on a per-project basis within the repo-env folder as referenced in the workflow described here.

A few notes:

  • Replace /path/to/repo-env/ with the appropriate absolute path to your repo-env
  • Anything wrapped with <> is a variable to be replaced
  • <prefix>/$ARGUMENTS is written that way because I tend to prefix my branches with my name
@jlia0
jlia0 / agent loop
Last active December 8, 2025 04:12
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@Grafikart
Grafikart / fetchApi.ts
Last active August 17, 2022 12:33
OpenApiFetch.ts
import { paths } from "../types/generated-schema";
/**
* Utility types
*/
// Filtre un objet en retirant les clefs qui ne satisfont pas la condition C
type Filter<T, C> = Pick<
T,
{
[Key in keyof T]: T[Key] extends C ? Key : never;
@kinlane
kinlane / shopify-openapi.json
Created August 12, 2018 05:30
shopify openapi
{
"swagger": "2.0",
"info": {
"version": "1.0",
"title": "Shopify API",
"description": "TODO: Add Description"
},
"host": "DefaultParameterValue:[email protected]",
"basePath": "/",
"schemes": [
@jcouyang
jcouyang / README.org
Last active July 3, 2025 21:22
Promise All with Limit of Concurrent N

The Promise All Problem

in case of processing a very large array e.g. Promise.all(A_VERY_LARGE_ARRAY_OF_XHR_PROMISE)

which would probably blow you browser memory by trying to send all requests at the same time

solution is limit the concurrent of requests, and wrap promise in thunk

Promise.allConcurrent(2)([()=>fetch('BLAH1'), ()=>fetch('BLAH2'),...()=>fetch('BLAHN')])