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
-- Variables to change | |
-- L13: menu (mysql table) | |
-- L14: id_menu (mysql table id) | |
-- L18: 304 (child id from where to start finding the root id) | |
-- @ref: https://explainextended.com/2009/07/20/hierarchical-data-in-mysql-parents-and-children-in-one-query/ | |
SELECT CONCAT(REPEAT(' ', level - 1), CAST(_id AS CHAR)) AS treeitem, | |
parent, | |
level | |
FROM ( |
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
# &Copy standupmaths.com/ & numberphile.com | |
def monop(finish_order=6,games_order=3): | |
finish = 10**finish_order | |
games = 10**games_order | |
import random | |
from random import shuffle | |
squares = [] |