public static final MapCodec<MultiNoiseBiomeSource> DIRECT_CODEC = RecordCodecBuilder.mapCodec(
(instance) -> instance.group(
RecordCodecBuilder.create(
(instancex) -> instancex.group(
Climate.ParameterPoint.CODEC.fieldOf("parameters").forGetter(Pair::getFirst),
Biome.CODEC.fieldOf("biome").forGetter(Pair::getSecond)
).apply(instancex, Pair::of)
)
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
const ytdl = require('ytdl-core-discord') | |
const logger = require('logger.js').LoggerFactory.getLogger('commands:music') | |
const isNumber = (n) => !isNaN(parseFloat(n)) && isFinite(n) | |
const f = require('string-format') | |
const { Command } = require('bot-framework') | |
const YouTube = require('youtube-node') | |
const youtube = new YouTube() | |
const util = require('util') | |
const queue = {} | |
const playing = {} |
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
const Discord = require('discord.js') | |
const { Command } = require('bot-framework') | |
module.exports = class extends Command { | |
constructor() { | |
const opts = { | |
args: ['<Message URL>'], | |
} | |
super('msg', opts) | |
} |
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
paths: | |
'/gban': | |
post: | |
parameters: | |
- in: 'body' | |
name: 'body' | |
description: 'Global BANをするために必要なオブジェクト' | |
required: true | |
schema: | |
type: 'object' |
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
# convert a mp4 into nightcore | |
ffmpeg -i input.mp4 -filter:a "atempo=1.06,asetrate=44100*1.25" -filter:v "setpts=0.815*PTS,fps=30" output.mp4 | |
# convert a mp3 into nightcore | |
ffmpeg -i input.mp3 -filter:a "atempo=1.06,asetrate=44100*1.25" output.mp3 | |
# Compress mp4 | |
ffmpeg -i input.mp4 -vcodec h264 -b:v 1000k -acodec mp2 output.mp4 | |
# Low bitrate (strips artwork) |
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
#include <iostream> | |
#include <sys/socket.h> | |
#include <netdb.h> | |
#include <cstring> | |
#include <chrono> | |
#include <thread> | |
#define z ; | |
#define zz using | |
#define zzz namespace |
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
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
import java.util.concurrent.TimeUnit; | |
import java.util.concurrent.atomic.AtomicIntegerArray; | |
import java.util.concurrent.atomic.AtomicReference; | |
import java.util.concurrent.atomic.AtomicReferenceArray; | |
import java.util.concurrent.locks.ReentrantLock; | |
import java.util.concurrent.locks.ReentrantReadWriteLock; |
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
// | |
// The result pp is just an estimate! | |
// This list does not include plays outside of 100 bp, which causes result pp less than actual. | |
// | |
// Fun fact: | |
// - There are 8 harumachi clovers | |
// | |
const before = [ | |
241.279, // Sidetracked Day (Short Ver.) [A r M i N's Extra] +HD by VINXIS (https://osu.ppy.sh/beatmaps/1632673?mode=osu) |
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 xyz.acrylicstyle.mcutil.lang; | |
import org.jetbrains.annotations.Contract; | |
import org.jetbrains.annotations.NotNull; | |
import org.jetbrains.annotations.Nullable; | |
import util.ICollectionList; | |
import xyz.acrylicstyle.mcutil.lang.test.IgnoreTest; | |
import java.lang.annotation.Annotation; | |
import java.lang.reflect.Field; |
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
net/md_5/bungee/module/cmd/server/PluginServer | |
net/md_5/bungee/module/cmd/server/CommandServer | |
net/md_5/bungee/module/cmd/alert/PluginAlert | |
net/md_5/bungee/module/cmd/alert/CommandAlert | |
net/md_5/bungee/module/cmd/alert/CommandAlertRaw | |
net/md_5/bungee/module/cmd/send/PluginSend | |
net/md_5/bungee/module/cmd/send/CommandSend | |
net/md_5/bungee/module/cmd/list/PluginList | |
net/md_5/bungee/module/cmd/list/CommandList | |
net/md_5/bungee/api/connection/Connection$Unsafe |
OlderNewer