Skip to content

Instantly share code, notes, and snippets.

View r74tech's full-sized avatar
😵‍💫
I may be slow to respond.

r74tech r74tech

😵‍💫
I may be slow to respond.
  • Okayama
  • 02:14 (UTC +09:00)
View GitHub Profile
@r74tech
r74tech / rot13.js
Last active December 8, 2021 07:52
let encryptee = "日本語English"
//Rot13 Encode
function encode(encryptee) {
return encryptee.replace(/[A-Z]/g, function(c) {
var s = c.charCodeAt(0);
return String.fromCharCode(s < 78 ? s + 13 : s - 13);
}).replace(/[a-z]/g, function(c) {
var s = c.charCodeAt(0);
return String.fromCharCode(s < 110 ? s + 13 : s - 13);
}).replace(/[ぁ-ゖ]/g, function(c) {
@r74tech
r74tech / poll.py
Created July 30, 2021 16:06
discord.pyでpollをわかりやすく表示しよう
import discord
from discord.ext import commands
class poll(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command()
async def poll(self, ctx, *args):