This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import discord | |
| import samplerate | |
| import pyaudio | |
| import numpy as np | |
| from discord.ext import commands | |
| class PyAudioPCM(discord.AudioSource): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ########################################################### | |
| +------------------------------------------------------+ # | |
| | 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class AnimatedObject | |
| { | |
| public: | |
| void Update() | |
| void Draw | |
| sf::vector startposition; | |
| sf::vector endposition; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //- Window.hpp -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| #ifndef WINDOW_HPP | |
| #define WINDOW_HPP | |
| #include <SFML\Graphics.hpp> | |
| struct WindowStruct | |
| { | |
| sf::RectangleShape window; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| includeeventqueue_draw_event "Renderer.hpp" | |
| #include <SFML/Graphics.hpp> | |
| #include <iostream> | |
| #include <string> | |
| // #functions Privatedraw_queueDrawEvent | |
| Renderer Renderer ::height | |
| { |