This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 $_ | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ======================================================== | |
# 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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"> |