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
import javax.net.ssl.HttpsURLConnection; | |
import java.awt.Color; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.lang.reflect.Array; | |
import java.net.URL; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; |
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
from yaml import safe_load, YAMLError | |
class ConfigParser: | |
def __init__(self, file_name): | |
self.config = self.__load(file_name) | |
def __load(self, file_name=''): | |
if len(file_name) == 0: | |
file_name = 'config.yaml' |
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
from re import sub | |
class Main: | |
def __init__(self): | |
self.input = '' | |
self.expected = [] | |
self.percentage = 75 | |
self.points = 0 | |
def compare(self, context='', expected=[], percentage=75): |
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 | |
ini_set('display_errors', 1); | |
ini_set('display_startup_errors', 1); | |
error_reporting(E_ALL); | |
if (isset($_GET["error"])) { | |
echo json_encode(array("message" => "Authorization Error")); | |
} elseif (isset($_GET["code"])) { | |
Header("Location: login.php?code={$_GET["code"]}"); |
NewerOlder