Skip to content

Instantly share code, notes, and snippets.

View StringManolo's full-sized avatar

StringManolo StringManolo

View GitHub Profile
@StringManolo
StringManolo / Notas.md
Last active December 11, 2025 14:54
Ejemplo de Markdown

Tareas

  • Tarea 1
  • Tarea 2

Otras Tareas

!#/usr/bin/env bash
echo 'Hola!'
@StringManolo
StringManolo / BattleScene.js
Created November 12, 2025 00:17
DeepSeekV3
export class BattleScene extends Phaser.Scene {
constructor() {
super({ key: 'BattleScene' });
}
init(data) {
this.playerData = data.playerData;
this.onBattleEnd = data.onBattleEnd;
this.terrain = data.terrain;
}
@StringManolo
StringManolo / BattleScene.js
Created November 12, 2025 00:02
Claude Sonnet 4.5
export class BattleScene extends Phaser.Scene {
constructor() {
super({ key: 'BattleScene' });
}
init(data) {
this.playerData = data.playerData || this.getDefaultPlayerStats();
this.onBattleEnd = data.onBattleEnd;
this.terrain = data.terrain;
}
export class BattleScene extends Phaser.Scene {
constructor() {
super({ key: 'BattleScene' });
}
init(data) {
this.playerData = data.playerData;
this.onBattleEnd = data.onBattleEnd;
this.terrain = data.terrain;
@StringManolo
StringManolo / BattleScene.js
Created November 11, 2025 23:29
Gemini 2.5 flash
import { getGame } from "./GameConfig"; // Placeholder for actual Game config import
// --- Stat and Character Models ---
class BattleCharacter {
constructor(name, maxHp, attack, magic, defense, atbRate) {
this.name = name;
this.maxHp = maxHp;
this.currentHp = maxHp;
this.attack = attack;
@StringManolo
StringManolo / BattleScene.js
Created November 11, 2025 23:17
Chat GPT5 generated (with thinking)
export class BattleScene extends Phaser.Scene {
constructor() {
super({ key: 'BattleScene' });
}
init(data) {
this.playerData = data.playerData || null;
this.onBattleEnd = data.onBattleEnd || null;
this.terrain = data.terrain || 'grass';
}
@StringManolo
StringManolo / checkbox-menu-cli.sh
Created October 29, 2025 04:35
Select multiple options in bash
#!/bin/bash
# checkbox-menu-cli.sh
tty=/dev/tty
[ -r "$tty" ] || tty=$(tty)
if [ $# -lt 1 ]; then
echo "Usage: $0 option1 option2 ..." >&2
exit 2
fi
@StringManolo
StringManolo / menu-cli.sh
Created October 29, 2025 04:24
Menu CLI
#!/bin/bash
# menu.sh - interactive menu that draws to the real TTY so it can be captured by caller
tty=/dev/tty
if [ ! -r "$tty" ]; then
tty=$(tty)
fi
if [ $# -lt 1 ]; then
echo "Usage: $0 opt1 opt2 ..." >&2
exit 2
@StringManolo
StringManolo / menu.sh
Created October 29, 2025 03:57
Basic select menu.sh
#!/bin/sh
options="Opción1 Opción2 Opción3 Opción4"
selected=0
len=$(echo $options | wc -w)
draw() {
i=0
clear
for opt in $options; do