This file contains hidden or 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
https://prod-us-kube.clubspark.io/usta/tournaments/api/graphql | |
query { | |
publishedEvents( | |
tournamentId: "0595eb49-a55f-4de2-8919-caeff6d21fbe" | |
previewMode: false | |
) { | |
id | |
courtLocation | |
level { |
This file contains hidden or 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 axios = require('axios'); | |
async function getLocations() { | |
const locationsData = await axios.post("https://publicapi.txdpsscheduler.com/api/AvailableLocation", { | |
"TypeId": 71, | |
"ZipCode": "75028", | |
"CityName": "", | |
"PreferredDay": 0 | |
}); | |
return locationsData.data; | |
} |
This file contains hidden or 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 axios = require('axios'); | |
async function getLocations() { | |
const locationsData = await axios.post("https://publicapi.txdpsscheduler.com/api/AvailableLocation", { | |
"TypeId": 71, | |
"ZipCode": "10001", | |
"CityName": "", | |
"PreferredDay": 0 | |
}); | |
return locationsData.data; | |
} |
This file contains hidden or 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
<?php | |
header('Content-Type: text/calendar; charset=utf-8'); | |
header('Content-Disposition: attachment; filename="cal.ics"'); | |
date_default_timezone_set('America/Chicago'); | |
require_once './vendor/autoload.php'; | |
// calendar name | |
$vCalendar = new \Eluceo\iCal\Component\Calendar('Tennis Tournaments'); | |
// get database entries from python script | |
$events = json_decode(shell_exec("python3 notion.py"), true); |
This file contains hidden or 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
function updateName() { | |
uuid = document.getElementById("uuid").value; | |
fetch('https://api.mojang.com/user/profiles/' + uuid + '/names', { | |
method: 'GET', | |
mode: 'no-cors' | |
}) | |
.then(response => response.json()) | |
.then(result => alert(JSON.stringify(result))) | |
}); | |
} |
This file contains hidden or 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
function updateNether() { | |
var netherX = document.getElementById("nether-x"); | |
var netherZ = document.getElementById("nether-z"); | |
var overworldX = document.getElementById("overworld-x"); | |
var overworldZ = document.getElementById("overworld-z"); | |
netherX.value = Math.round((overworldX.value / 8)); | |
netherZ.value = Math.round((overworldZ.value / 8)); | |
} | |
function updateOverworld() { | |
var netherX = document.getElementById("nether-x"); |
This file contains hidden or 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
<?php | |
function school_roster($id) { | |
$url = "https://www.myutr.com/api/v1/club/$id/school"; | |
// Initialize a CURL session. | |
$ch = curl_init(); | |
// Return Page contents. | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
This file contains hidden or 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
<?php | |
session_start(); | |
// allow error reporting | |
ini_set('display_errors', true); | |
// check if parameters are set properly | |
if(isset($_POST['subdomain']) && isset($_POST['port']) && isset($_POST['target']) && isset($_POST['g-recaptcha-response'])) { | |
// include Cloudflare & reCaptcha API Libraries | |
require_once "/var/www/shulker/vendor/autoload.php"; |
This file contains hidden or 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
<?php | |
// set JSON header | |
header('Content-Type: application/json'); | |
// check for version | |
if($_SERVER['REQUEST_URI'] === "/v1") { | |
// select endpoint | |
switch($_SERVER['REQUEST_URI']) { | |
case "v1/user": | |
require_once "endpoints/user.php"; | |
break; |