Skip to content

Instantly share code, notes, and snippets.

View scarletcafe's full-sized avatar
🎯
Focusing

Devon R scarletcafe

🎯
Focusing
View GitHub Profile
@scarletcafe
scarletcafe / image.py
Last active June 10, 2023 18:54
discord.py rewrite image processing cog example
# basic dependencies
import discord
from discord.ext import commands
# aiohttp should be installed if discord.py is
import aiohttp
# PIL can be installed through
# `pip install -U Pillow`
from PIL import Image, ImageDraw

Keybase proof

I hereby claim:

  • I am Gorialis on github.
  • I am gorialis (https://keybase.io/gorialis) on keybase.
  • I have a public key whose fingerprint is 8DC8 D291 52FD C213 1C0E 9E0F 9F92 ADA7 E9C9 52FB

To claim this, I am signing this object:

@scarletcafe
scarletcafe / readme.rst
Last active August 6, 2024 03:25
Installing Python & discord.py: A Primer

Windows Installation

First, go to python.org:

https://i.imgur.com/VkCK31Z.png

Hover over Downloads and select the Windows category (do NOT press the instant download button):

https://i.imgur.com/enFmiRi.png

@scarletcafe
scarletcafe / equality.py
Last active December 9, 2018 17:03
bikeshed+
# -*- coding: utf-8 -*-
"""
equality
~~~~~~~~
Functions for determining the equality of objects
:license: MIT (OSI Approved)
"""
@scarletcafe
scarletcafe / AR.txt
Last active June 25, 2019 01:05
Paper Mario US Wii VC action replay code for camera control using the d-pad
05386034 27bd0020
05385f38 e7a00004
05385fb8 3c023ba3
05386038 00000000
05385f3c e7a20008
05385fbc 44821000
05248098 03400008
05385f40 afa2000c
05385fc0 3c08800a
05386040 275a2180
@scarletcafe
scarletcafe / image.py
Last active February 26, 2019 00:27
discord.py rewriteで画像処理のコグの実例
# 基本的な依存関係
import discord
from discord.ext import commands
# discord.pyはaiohttpに依存しているため既にインストールされているはずです。
import aiohttp
# PILは「Python Imaging Library」で色んな画像処理ができるライブラリです
# `pip install -U Pillow`でインストールできます
from PIL import Image, ImageDraw
@scarletcafe
scarletcafe / parametric.py
Last active June 5, 2024 10:43
Create a Blender curve object from a 3D parametric function
# -*- coding: utf-8 -*-
"""
MIT License
Copyright (c) 2019 Devon (Gorialis) R
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
@scarletcafe
scarletcafe / turtlereplay.lua
Last active July 14, 2022 19:48
turtlereplay.lua glass/ice
-- custom stuff
modemLocation = "left"
turtleName = "nether 2 blue ice"
useModem = true
-- ice or glass
local tArgs = { ... }
if #tArgs ~= 1 then
print("Please give either 'ice' or 'glass'")
@scarletcafe
scarletcafe / mirrorlist
Created August 8, 2022 19:30
pacman & systemd state of an (almost) stock Steam Deck
Server = https://steamdeck-packages.steamos.cloud/archlinux-mirror/$repo/os/$arch
Nintendo 64 opcodes v0.3 by anarko <[email protected]>
Nintendo 64 opcodes v0.3 by anarko <[email protected]>
Part A: Brief list released on 98-02-19
----------------------------------------------------------------------------
****************************************************************************
** Load and Store Instructions **
****************************************************************************