Skip to content

Instantly share code, notes, and snippets.

View Alyetama's full-sized avatar
🎯
Focusing

Mohammad Alyetama Alyetama

🎯
Focusing
View GitHub Profile
@Alyetama
Alyetama / prepare_dataset.py
Last active August 17, 2022 06:54
Label Studio S3 to YOLOv5
#!/usr/bin/env python
# coding: utf-8
import argparse
import json
import os
import shutil
import signal
import sys
import textwrap
@Alyetama
Alyetama / bot.py
Created August 18, 2022 03:59
Stable Diffusion Parasitic Bot
#!/usr/bin/env python
# coding: utf-8
import os
import tempfile
import time
import requests
from discord import File
from discord.ext import commands
@Alyetama
Alyetama / requirements.txt
Created August 18, 2022 06:19
Stable Diffusion Scraper
python-dotenv>=0.20.0
selenium>=4.3.0
@Alyetama
Alyetama / markdown_table_style.css
Created August 25, 2022 14:45
Markdown Table CSS
@charset "UTF-8";
@import 'https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0-alpha2/katex.min.css';
code {
color: #c7254e;
background-color: #f9f2f4;
border-radius: 4px
}
@charset "UTF-8";@import "https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0-alpha2/katex.min.css";code,pre{border-radius:4px}code,kbd{color:#c7254e;background-color:#f9f2f4;padding:2px 4px}kbd{color:#fff;background-color:#333;border-radius:3px;box-shadow:inset 0-1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;box-shadow:none}pre{display:block;margin:0 0 10px;word-break:break-all;word-wrap:break-word;color:#333;background-color:#f5f5f5;border:1px solid #ccc;overflow:auto}pre code,table{background-color:transparent}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}table{border-collapse:collapse;border-spacing:0}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>thead>tr>th{padding:8px;line-height:1.4285714;border-top:1px solid #ddd}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td{padding:8px;line-height:1.4285714;vertical-align:top;border-top:1
@Alyetama
Alyetama / image_grid.py
Created January 15, 2024 17:18
Create an image grid in Python
import argparse
import math
from glob import glob
from PIL import Image
class MissingArgument(Exception):
pass