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
| namespace StateMachineDemo | |
| { | |
| interface State | |
| { | |
| State Tick(Player player); | |
| } | |
| public class IdleState : State | |
| { | |
| PursueState pursueState; |
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 setup_path | |
| import gym | |
| import airgym | |
| import airsim | |
| import time | |
| import cv2 | |
| import numpy as np | |
| from stable_baselines3.common.monitor import Monitor | |
| from stable_baselines3.common.vec_env import VecVideoRecorder, DummyVecEnv, VecTransposeImage |
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 feedparser as f | |
| import requests as r | |
| import argparse | |
| import os | |
| import sys | |
| import re | |
| from mutagen.easyid3 import EasyID3 | |
| from mutagen.id3 import ID3, APIC | |
| parser = argparse.ArgumentParser() |
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 time | |
| import string | |
| import re | |
| from random import * | |
| from passy import * | |
| def usable_characters(): | |
| """ | |
| We want the union of all printable characters, and then the difference between | |
| that set and the set of all characters that look similar. |
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 sys | |
| import re | |
| if len(sys.argv) < 4: | |
| print("Expected: ./extract_db.py [sql file name] [database name] [new file name]") | |
| sys.exit(-1) | |
| with open(sys.argv[1], 'rb') as f_in: | |
| create_db = re.compile(bytes("CREATE DATABASE .*?`{}`".format(sys.argv[2]), encoding='utf-8')) | |
| create_stmt = re.compile(bytes("CREATE DATABASE", encoding='utf-8')) |