Skip to content

Instantly share code, notes, and snippets.

View kennyrkun's full-sized avatar
😡
too many damn things

Kenny McCormick kennyrkun

😡
too many damn things
View GitHub Profile
import sys
import discord
import samplerate
import pyaudio
import numpy as np
from discord.ext import commands
class PyAudioPCM(discord.AudioSource):
@kennyrkun
kennyrkun / DolphinsGrace.java
Last active August 28, 2023 22:01
Dolphin's Grace plugin file
// Version 1.2
package io.github.kennyrkun.dolphinsgrace;
import org.bukkit.Color;
import org.bukkit.Material;
import org.bukkit.entity.*;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerInteractEntityEvent;
@kennyrkun
kennyrkun / config.yml
Created December 31, 2018 04:03
EssentialsX configuration
###########################################################
+------------------------------------------------------+ #
| Notes | #
+------------------------------------------------------+ #
###########################################################
If you want to use special characters in this document, such as accented letters, you MUST save the file as UTF-8, not ANSI.
If you receive an error when Essentials loads, ensure that:
- No tabs are present: YAML only allows spaces
- Indents are correct: YAML hierarchy is based entirely on indentation
@kennyrkun
kennyrkun / shapecreator.cpp
Created October 21, 2018 19:50
sfml convex shape creator
int main()
{
sf::RenderWindow window(sf::VideoMode(800, 600), "creator");
std::vector<sf::Vector2f> positions;
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
@kennyrkun
kennyrkun / AnimationManager.hpp
Last active April 30, 2018 13:25
animation manager
class AnimatedObject
{
public:
void Update()
void Draw
sf::vector startposition;
sf::vector endposition;
}
//- Window.hpp --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
#ifndef WINDOW_HPP
#define WINDOW_HPP
#include <SFML\Graphics.hpp>
struct WindowStruct
{
sf::RectangleShape window;
@kennyrkun
kennyrkun / renderer.cpp
Created April 8, 2017 15:49
Thanks, Visual Studio!
includeeventqueue_draw_event "Renderer.hpp"
#include <SFML/Graphics.hpp>
#include <iostream>
#include <string>
// #functions Privatedraw_queueDrawEvent
Renderer Renderer ::height
{
class Button
{
public:
sf::RectangleShape m_shape;
sf::Text m_text;
Button(sf::Vector2f &position, sf::Color color, const std::string text, const int pointSize)
{
m_shape.setPosition(position.x - 3, position.y - 1);
m_text.setPosition(position);