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 requests | |
| def do_login(login: str, password: str): | |
| session = requests.session() | |
| session.get('https://api.librus.pl/OAuth/Authorization?client_id=46&response_type=code&scope=mydata') | |
| session.post('https://api.librus.pl/OAuth/Authorization/Grant?client_id=46', data={ | |
| 'action': 'login', | |
| 'login': login, | |
| 'pass': password |
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
| class Node(): | |
| """A node class for A* Pathfinding""" | |
| def __init__(self, parent=None, position=None): | |
| self.parent = parent | |
| self.position = position | |
| self.g = 0 | |
| self.h = 0 |
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
| using UnityEngine; | |
| using System.Collections; | |
| using UnityEngine.UI; | |
| // attach to UI Text component (with the full text already there) | |
| public class UITextTypeWriter.cs : MonoBehaviour | |
| { | |
| Text txt; |