Skip to content

Instantly share code, notes, and snippets.

View Shuyib's full-sized avatar
🪴
Focusing

Legendrea Shuyib

🪴
Focusing
View GitHub Profile
@Shuyib
Shuyib / agents.md
Created January 18, 2026 10:55
My spin on agents.md

Agents Conventions

This document harmonizes Makefile-derived developer conventions with augmentative best-practices inspired by Pragmatic AI Labs and the fast.ai developer style guide. It is written to be non-breaking and augmentive: preserve existing Makefile behavior while recommending optional improvements for reproducibility, discoverability, CI parity, and notebook hygiene.

Purpose

Provide a concise, actionable reference for:

  • How agents (developers, automation) should run tasks via Makefile.
  • How to keep local development and CI behavior consistent.
  • Notebook and coding style guidance informed by Pragmatic AI Labs on YT and fast.ai.
@Shuyib
Shuyib / mindmap_answerai.mmd
Last active January 9, 2026 07:03
Answerai libraries
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Shuyib
Shuyib / polya.md
Created December 2, 2025 11:32 — forked from jph00/polya.md
Summary of Polya's "How To Solve It With Code"

A guide to George Polya's "How to Solve It"

Introduction

George Polya (1887-1985) was a Hungarian mathematician and educator who revolutionized our understanding of problem-solving and teaching. While he made significant contributions to mathematics, his most enduring legacy is his insights into how people learn and solve problems. His 1945 book "How to Solve It" has influenced educators across numerous fields, extending far beyond mathematics.

Polya's Teaching Philosophy

Polya's approach centered on three key principles. First, he championed active learning, believing students learn best by discovering solutions themselves rather than being told answers. Second, he emphasized heuristic thinking - the art of guided discovery and learning from experience, viewing problem-solving as a skill that can be developed through practice. Third, he developed sophisticated questionin

@Shuyib
Shuyib / README.md
Created January 24, 2025 06:53
Pokèmon Battle Advisor

Pokémon Battle Advisor try here https://shuyib-pokemonbattleadvisor.web.val.run

Overview

The Pokémon Battle Advisor is a web application designed to help Pokémon trainers strategize their battles by providing detailed and realistic battle recommendations. Users can specify their Pokémon team or randomize a team, and then receive tailored battle strategies based on their team and the opponent's Pokémon. The application leverages the CEREBRAS API to generate these recommendations, ensuring they adhere to official Pokémon game mechanics.

Features

  • Specify Your Pokémon Team: Users can enter the names of up to three Pokémon to include in their team.
  • Randomize Pokémon Team: Users can opt to randomize their Pokémon team, fetching three random Pokémon from the PokéAPI.
  • Challenger Pokémon Input: Users can enter the name of the opponent's Pokémon to receive a battle recommendation.
  • Battle Recommendations: The app provides detailed battle strategies, including recommended Pokémon, strate
@Shuyib
Shuyib / sh
Last active November 6, 2023 09:10
Convert mp3 to wav with ffmpeg
#!/bin/bash
# install ffmpeg if not already installed
if ! command -v ffmpeg &> /dev/null
then
echo "ffmpeg could not be found"
echo "Installing ffmpeg..."
sudo apt-get install ffmpeg
fi
@Shuyib
Shuyib / Makefile
Last active January 21, 2026 07:08
Data science and Machine learning Makefile for Python projects or in general :)
# Thank you @Earthly https://www.youtube.com/watch?v=w2UeLF7EEwk
# Can be adapted to pipenv, and poetry
# Other languages coming soon especially R and Julia
# .ONESHELL tells make to run each recipe line in a single shell
.ONESHELL:
# .DEFAULT_GOAL tells make which target to run when no target is specified
.DEFAULT_GOAL := all
@Shuyib
Shuyib / Makefile
Created August 24, 2022 08:45 — forked from geraldgong/Makefile
SHELL := /usr/bin/env bash
#######
# Help
#######
.DEFAULT_GOAL := help
.PHONY: help
help:
@Shuyib
Shuyib / .bash_profile
Created September 30, 2020 05:02 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@Shuyib
Shuyib / r-to-python-data-wrangling-basics.md
Created October 2, 2019 06:18 — forked from conormm/r-to-python-data-wrangling-basics.md
R to Python: Data wrangling with dplyr and pandas

R to python data wrangling snippets

The dplyr package in R makes data wrangling significantly easier. The beauty of dplyr is that, by design, the options available are limited. Specifically, a set of key verbs form the core of the package. Using these verbs you can solve a wide range of data problems effectively in a shorter timeframe. Whilse transitioning to Python I have greatly missed the ease with which I can think through and solve problems using dplyr in R. The purpose of this document is to demonstrate how to execute the key dplyr verbs when manipulating data using Python (with the pandas package).

dplyr is organised around six key verbs:

@Shuyib
Shuyib / east&southernafricamosquitoes.ipynb
Last active October 30, 2018 20:33 — forked from itsmuriuki/east&southernafricamosquitoes.ipynb
East and South African Mosquito classifier: This notebook has images of mosquitoes of three species which are prevalent in the areas mentioned and could be carriers of the parasite Plasmodium in their salivary glands which is the causative agent of malaria.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.