Skip to content

Instantly share code, notes, and snippets.

# Makefile for building TIC-80 (libretro core) locally
# INSTRUCTIONS!
# TIC-80 Libretro latest (v1.2.3000+)
#
#
# git clone https://github.com/nesbox/TIC-80 tic80-libretro-latest && cd $_
#
@imsys
imsys / Dockerfile.Trimui_AArch64
Created August 27, 2025 05:58
Dockerfile to build TIC-80 libretro core for TrimUI Smart Pro or TrimUI Brick (AArch64)
# ========================================================
# Dockerfile to build TIC-80 libretro core for TrimUI (AArch64)
# Target: GCC 6.5.0 + glibc 2.23 (Tina Linux compatible)
# ========================================================
#
# (WIP) It will successfully build the toolchain, but it fails to build libretro core in docker.
#
# For me, this is good enough.
#
# Copy the toolchain to my work enviroment in the host machine:
@imsys
imsys / Makefile
Last active September 19, 2025 08:01
Makefile for building TIC-80 v1.1.2837 (libretro core) locally
# Makefile for building TIC-80 (libretro core) locally
# INSTRUCTIONS!
# git clone https://github.com/nesbox/TIC-80 core
# cd core/
# git checkout tags/v1.1.2837
#
# curl https://gist.githubusercontent.com/imsys/2981c9de54a07abf7a24df139b3237a2/raw/ -o Makefile
@imsys
imsys / copyTinderChat.js
Created March 29, 2023 18:10
Copy Tinder Conversation
const button = document.createElement('button');
button.textContent = 'Copy Chat';
// Apply some styles to the button
button.style.backgroundColor = '#5189e0';
button.style.color = 'white';
button.style.padding = '10px';
button.style.border = 'none';
button.style.borderRadius = '5px';
button.style.cursor = 'pointer';
@imsys
imsys / ChatGPTqt.py
Last active March 19, 2023 17:43
Example of ChatGPT API using Qt interface
import sys
import openai
import json
import requests
from PyQt5.QtWidgets import QApplication, QWidget, QVBoxLayout, QLineEdit, QTextEdit, QPushButton, QComboBox, QPlainTextEdit
from datetime import datetime
# Replace with your OpenAI API key
openai.api_key = "your_api_key_here"
@imsys
imsys / personal_sign.html
Created October 10, 2021 21:45
Web3Modal personal_sign example
<html>
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- CSS only -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">