Skip to content

Instantly share code, notes, and snippets.

View Shengaero's full-sized avatar
🔎
Looking for work

Kaidan Gustave Shengaero

🔎
Looking for work
View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@Shengaero
Shengaero / TestBot.java
Created September 7, 2017 22:42
An annotated command example bot
/*
* Copyright 2016 John Grosh (jagrosh).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@Shengaero
Shengaero / JDA-Utilities-2.0-Plans.md
Last active September 18, 2018 05:05
A full changelist for JDA-Utilities 2.0

JDA-Utilities 2.0 Plans

This gist is a full list covering all changes to JDA-Utilities that will go into effect as of the release of Version 2.0.

We are releasing this now as to prevent your bot(s) codebase from being unable to operate later, and upon reading this you should make note of how the changes will impact you and prepare to adapt in order for a smooth transition.

Some things to note:

  • Any removal of previously existing resources (classes, methods, etc) will be marked
@Shengaero
Shengaero / SimpleLog.kt
Created September 16, 2017 17:46
A Kotlin conversion of JDA's SimpleLog!
/*
* Copyright 2017 Kaidan Gustave
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@Shengaero
Shengaero / ButtonMenu.java
Last active September 20, 2017 20:13
The 2.0 version of ButtonMenu.java
/*
* Copyright 2016 John Grosh (jagrosh).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@Shengaero
Shengaero / SimpleHL.java
Last active November 15, 2017 23:52
Logback configuration similar in style to SimpleLog format
package path.to; // Make sure to replace this with the path to the file in your project.
import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.core.pattern.color.ForegroundCompositeConverterBase;
import static ch.qos.logback.core.pattern.color.ANSIConstants.*;
import static ch.qos.logback.classic.Level.*;
/**
* A simple highlighter for console text using logback classic.
*
@Shengaero
Shengaero / change_avy.js
Last active October 30, 2017 04:17
A nashorn script to change a JDA bot's avatar.
IOException = Java.type("java.io.IOException");
InputStream = Java.type("java.io.InputStream");
URL = Java.type("java.net.URL");
URLConnection = Java.type("java.net.URLConnection");
Icon = Java.type("net.dv8tion.jda.core.entities.Icon");
function downloadImage(url) {
try {
var u = new URL(url);
var urlConnection = u.openConnection();
@Shengaero
Shengaero / intellij_vcs_guide.md
Last active September 18, 2018 05:05
A starters guide to using the Version Control System (VCS) in Intellij IDEA

Cloning a repository from GitHub locally

First open Intellij's starting window and find the Checkout from Version Control drop-down menu:

If this is your first time doing anything like this, you'll more than likely be asked to provide your GitHub account username and password to gain access to the GitHub VCS features. >

@Shengaero
Shengaero / stylesheet-guide.md
Last active November 18, 2017 22:26
A cheatsheet for MHGHApp CSS stylesheet elements

A Quick Forword On This Gist

This gist is for people who are willing to learn some basic skills regarding Cascading Style Sheets to create their own custom CSS for the MHGHApp.

In it we will have a quick overview of what CSS looks like, how to properly write it, and some examples of how you can apply it to the MHGHApp layout.

I know what some of you are thinking: "... But wait... Isn't this supposed to be a cheatsheet?"

@Shengaero
Shengaero / catalogue.md
Last active November 19, 2017 00:05
A catalogue of various submitted CSS stylesheets for the MHGHApp

How to Submit

DM Shengaero#9090 with the following.

  1. The unique name of your CSS stylesheet.
  2. Any pictures of your CSS to use as a preview (otherwise I have to take them myself).
  3. The CSS file upload.
  4. Any credits if it's an adaptation of another CSS.

Very low effort CSS will not be accepted, please try to do something with it.