View Helper.java
This file contains 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
package com.gmatrixgames.fn.discord.utils; | |
import kotlin.text.Charsets; | |
import org.apache.commons.io.IOUtils; | |
import org.apache.wink.json4j.JSONException; | |
import org.apache.wink.json4j.JSONObject; | |
import javax.net.ssl.HttpsURLConnection; | |
import java.awt.*; | |
import java.io.*; |
View EFortRarity.java
This file contains 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
package com.gmatrixgames.common.fnutils; | |
import java.awt.*; | |
/** | |
* Utility class for color coordination for embeds pertaining to cosmetics | |
* | |
* @author Garrett | |
*/ | |
public enum EFortRarity { |
View pre-commit.sh
This file contains 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
#!/bin/sh | |
branch=$(git rev-parse --abbrev-ref HEAD) | |
revcount=$(git rev-list --count $branch) | |
modifiedrev=$(($revcount + 1)) | |
basename=$(basename -s .git `git config --get remote.origin.url`) | |
branch=("++$basename+$branch") | |
contents="$(jq --arg branch "$branch" --arg modifiedrev "$modifiedrev" '. + {BranchName:$branch, Changelist:$modifiedrev|tonumber}' Engine/Build/Build.version)" && \ |