Skip to content

Instantly share code, notes, and snippets.

View dooderstem's full-sized avatar
🐥
Better Than Yesterday

DOODER(Michael Smith) dooderstem

🐥
Better Than Yesterday
  • Ohio, USA
  • 13:29 (UTC -04:00)
View GitHub Profile
@dooderstem
dooderstem / markdown-text-101.md
Last active July 10, 2023 00:58 — forked from matthewzring/markdown-text-101.md
A guide to Markdown on Discord.

A guide to Markdown on Discord

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

Sweet Styles

Italics *italics* or _italics_

Underline italics __*underline italics*__

@dooderstem
dooderstem / ExamplePlugin.plugin.js
Last active July 10, 2023 00:58 — forked from rauenzi/ExamplePlugin.plugin.js
Plugin template for BetterDiscord v1
/**
* @name ExamplePlugin
* @author YourName
* @description Describe the basic functions. Maybe a support server link.
* @version 0.0.1
* @invite inviteCode
* @authorId 51512151151651
* @authorLink https://twitter.com/Whoever
* @donate https://paypal.me/
* @patreon https://patreon.com/
@dooderstem
dooderstem / rgbcolor.js
Last active July 10, 2023 00:58
rgbcolor.js
const fetch = require("node-fetch");
const { createCanvas } = require("canvas");
const RGBColor = require("rgbcolor");
const DataImageAttachment = require("dataimageattachment");
const fs = require("fs");
// https://github.com/meodai/color-names
let api = `https://api.color.pizza/v1/?values=`;
let Canvas = (rgbcolor) => {
@dooderstem
dooderstem / README.md
Last active July 10, 2023 00:58
README Badges
@dooderstem
dooderstem / node.js
Last active July 10, 2023 00:58
node-cheatsheet
/* *******************************************************************************************
* SYNOPSIS
* http://nodejs.org/api/synopsis.html
* ******************************************************************************************* */
var http = require('http');
// An example of a web server written with Node which responds with 'Hello World'.
// To run the server, put the code into a file called example.js and execute it with the node program.
// Document your JavaScript by Adding documentation comments to your code!
// This here is an example usage of https://jsdoc.app/
/*
Once your code is commented, you can use the JSDoc 3 tool to generate an HTML website from
your source files.
By default, JSDoc uses the built-in "default" template to turn the documentation into HTML
You can edit this template to suit your own needs or create an entirely new template if that
is what you prefer. Running the documentation generator on the command line: `jsdoc book.js`
The command above will create a directory named out/ in the current working directory.
@dooderstem
dooderstem / Justabot.js
Last active September 20, 2023 16:32
DiscordBot
// Package things needed for the bot & commands.
//const Discord = require('discord.js');
//const client = new Discord.Client({partials: ['MESSAGE', 'CHANNEL', 'REACTION'], intents: [ Discord.Intents.FLAGS.GUILDS, Discord.Intents.FLAGS.GUILD_MESSAGES, Discord.Intents.FLAGS.GUILD_MESSAGE_REACTIONS, Discord.Intents.FLAGS.GUILD_MEMBERS ]});
const {
Client,
GatewayIntentBits,
Partials,
ActivityType,
} = require('discord.js');
const client = new Client({
@dooderstem
dooderstem / list-my-gists.sh
Last active July 10, 2023 00:58
SHELL SCRIPTS
# https://github.com/cslee/list-my-gists
#!/bin/bash
public_only=0
secret_only=0
public_and_secret=0
signature=1
while test $# -gt 0; do
case "$1" in
@dooderstem
dooderstem / gimpfu.py
Last active July 21, 2023 07:32
gimpfu
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from gimpfu import *
import os, sys
import datetime
today = datetime.date.today() # Get today's date
formatted_date = today.strftime("%d/%m/%Y") # Format the date as DD/MM/YYYY
# https://pypi.org/project/pypresence/
# pip install pypresence
# Only Python versions 3.8 and above are supported.
from pypresence import Presence
import time
client_id = '64567352374564' # Fake ID, put your real one here
RPC = Presence(client_id) # Initialize the client class
RPC.connect() # Start the handshake loop