Skip to content

Instantly share code, notes, and snippets.

@Keyinator
Keyinator / Example.java
Created Feb 28, 2020
All Minecraft Bedmaterials as Hashset
View Example.java
HashSet<Material> BedSet= new HashSet<>(Arrays.asList(
BLACK_BED, BLUE_BED, BROWN_BED, CYAN_BED, GRAY_BED, GREEN_BED, LIGHT_BLUE_BED, LIGHT_GRAY_BED, LIME_BED, MAGENTA_BED, ORANGE_BED, PINK_BED, PURPLE_BED, RED_BED, WHITE_BED, YELLOW_BED
));
@Keyinator
Keyinator / index.php
Last active Dec 1, 2020 — forked from Jengas/index.php
Discord oauth2 example PHP
View index.php
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
ini_set('max_execution_time', 300); //300 seconds = 5 minutes. In case if your CURL is slow and is loading too much (Can be IPv6 problem)
error_reporting(E_ALL);
define('OAUTH2_CLIENT_ID', 'PLEASE EDIT');
define('OAUTH2_CLIENT_SECRET', 'PLEASE EDIT');
$authorizeURL = 'https://discordapp.com/api/oauth2/authorize';
$tokenURL = 'https://discordapp.com/api/oauth2/token';
$apiURLBase = 'https://discordapp.com/api/users/@me';
You can’t perform that action at this time.