Skip to content

Instantly share code, notes, and snippets.

@johnanthonyjose
johnanthonyjose / Instructions.md
Last active April 14, 2026 11:45
How to Downgrade Your Claude Code into Stable Version

How To Downgrade Your Claude Code into Stable Version

Context:

By default installation, claude code auto-updates the latest version. However, latest version tends to be buggy.

Objective:

  • Increase token efficiency by 40% until they can resolve the open github issue
  • Always get the stable version.

Procedure

@johnanthonyjose
johnanthonyjose / split-dataset.py
Created June 21, 2021 12:15
How to split dataset with balanced classes
from sklearn.model_selection import train_test_split
import shutil
import os
from PIL import Image
source_dataset_path = "shopee-product-detection-dataset/train/train"
target_path = "shopee-product-detection-dataset/trainval"
test_ratio = 0.2
val_ratio = 0.2
@johnanthonyjose
johnanthonyjose / sequence-v01.c
Last active July 17, 2020 15:26
VERY DETAILED step by step discussion on Looping Statement via C
//Example: Show the sequence 1 2 3 4 5
#include <stdio.h>
int main(void) {
//Follow the Principle: can we re-write it as a formula?
//Step 1: Re-write it as a way to see the pattern
printf("1");
printf("2");
git stash
git checkout -b day-2-develop
git stash pop
git add -A #save all changes
git commit -m "Save all changes"
git push origin day-2-develop
git checkout day-2-pm
git checkout -b day-3
git pull upstream day-3
git stash
git checkout -b day-2-develop
git stash pop
git checkout -b day-2-pm
git pull upstream day-2-pm
@johnanthonyjose
johnanthonyjose / day2.sh
Last active April 22, 2019 02:16
day-2
git stash
git checkout -b day-1-pm-develop
git stash pop
git add -A
git commit -m "Save all changes"
git push origin day-1-pm-develop
git checkout master
git pull upstream master
@johnanthonyjose
johnanthonyjose / aftie.sh
Created April 16, 2019 06:17
Modify your code
#!/bin/bash
# just copy and paste it line-by-line
# Save your changes
git stash
git checkout -b day-1-develop # Go to another branch
# Apply your change
@johnanthonyjose
johnanthonyjose / convolution-demo.ipynb
Last active June 13, 2018 17:13
Convolution Demo
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.