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 collections, random, sys, textwrap | |
| # Build possibles table indexed by pair of prefix words (w1, w2) | |
| w1 = w2 = '' | |
| possibles = collections.defaultdict(list) | |
| for line in sys.stdin: | |
| for word in line.split(): | |
| possibles[w1, w2].append(word) | |
| w1, w2 = w2, word |
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
| def negamax( | |
| board: chess.Board, | |
| depth: int, | |
| player: int, | |
| alpha: float = float("-inf"), | |
| beta: float = float("inf")) -> Tuple[Union[int, chess.Move]]: | |
| """ | |
| This functions receives a board, depth and a player; and it returns | |
| the best move for the current board based on how many depths we're looking ahead | |
| and which player is playing. Alpha and beta are used to prune the search tree. |
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 discord | |
| from discord.ext import commands | |
| import random | |
| import json | |
| import asyncio | |
| import itertools | |
| import sys | |
| import traceback | |
| from async_timeout import timeout | |
| from functools import partial |
This is a collections of script, patches and procedures to mod Mobile and Desktop Spotify Applications.
If you know about something that isn't listed here and you would like it to be feel free to tell me about it in the comments or send an e-mail to dav@davoleo.net
If you share this list, please use this link instead: https://lambdaurora.dev/optifine_alternatives
It may still be only a redirection link, but it will have a better web display of the list soon. And the list being on GitHub/GitHub pages improves load times.
The gist version of this list will stop being updated.
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
| """ | |
| Please understand Music bots are complex, and that even this basic example can be daunting to a beginner. | |
| For this reason it's highly advised you familiarize yourself with discord.py, python and asyncio, BEFORE | |
| you attempt to write a music bot. | |
| This example makes use of: Python 3.6 | |
| For a more basic voice example please read: | |
| https://github.com/Rapptz/discord.py/blob/rewrite/examples/basic_voice.py |
