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 kunou.commands | |
import kunou.startup.Kunou | |
import net.dv8tion.jda.core.entities.Member | |
import net.dv8tion.jda.core.entities.Message | |
import org.slf4j.LoggerFactory | |
import java.lang.NumberFormatException | |
/* This is an example of primary constructors in Kotlin. Note the use of the "val" keyword, which declares | |
an immutable property/field/variable. Notice how it can be used in constructors to declare properties. |
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
----------POSSIBLE OPTIONS---------------------------------------------- | |
--account : [optional] account name to login with | |
--key : [optional] connection key for the server (defaults to 1 in debug) | |
--automationRoutine : [optional] automation routine to run after login | |
--startAutomationGraph : [optional] start up and execute automation global graph using provided guid | |
--gatherEffectStats : [optional] enables effect stat gathering | |
--noautoconnect : [optional] Do not automatically connect to a server | |
--fastQuit | |
--dumpAssetNames : Write to <file> a JSON map of GUID (String "0xabc...") to asset name for all soft assets | |
--startPosition : [optional] start position when joining a map |
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
// Copyright 2019 Emzi0767 | |
// | |
// 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 | |
// distributed under the License is distributed on an "AS IS" BASIS, |
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
public delegate Task ApplicationAssetsDownloaderEventHandler(DiscordApplicationAsset asset); | |
class ApplicationAssetsDownloader : IDisposable | |
{ | |
private ConcurrentQueue<DiscordApplicationAsset> _a; | |
private ZipArchive _ar; | |
private MemoryStream _ms; | |
public event ApplicationAssetsDownloaderEventHandler DownloadStartedAsync; | |
public event ApplicationAssetsDownloaderEventHandler DownloadCompletedAsync; |
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
// ==UserScript== | |
// @name YoutubeSkipAd | |
// @version 1.6.3 | |
// @description Automatic skip-ad and hide in youtube. | |
// @author FRNathan13 | |
// @include /(http|https):\/\/www.youtube.com\/(.*) | |
// @grant none | |
// ==/UserScript== | |
(function() { |
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 test; | |
import cn.nukkit.network.Network; | |
import cn.nukkit.network.protocol.BatchPacket; | |
import cn.nukkit.network.protocol.DataPacket; | |
import cn.nukkit.network.protocol.ProtocolInfo; | |
import cn.nukkit.raknet.protocol.EncapsulatedPacket; | |
import cn.nukkit.utils.Zlib; | |
import java.util.Arrays; |
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
public static class Util | |
{ | |
public static T SafeConvert<T>(object raw, T defaults) | |
where T : new() | |
{ | |
try | |
{ | |
return (T) Convert.ChangeType(raw, Convert.GetTypeCode(defaults)); | |
} |
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
// ==UserScript== | |
// @name Discord Channel List Sidebar | |
// @author FRNathan13 | |
// @description Implement split panel between channel list and chat container in discord app, size is saved when you change position of panel. Powered by jQuery and Split.js | |
// @version 1.3.2 | |
// @match https://discord.com/channels/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=discord.com | |
// @grant GM_setValue | |
// @grant GM_getValue | |
// @require https://code.jquery.com/jquery-3.6.0.min.js |
OlderNewer