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 vortex_sort(arr): | |
"""Swirl the array into order. | |
Guaranteed to only use < for comparison, so use any objects you like. | |
""" | |
arlen = len(arr) | |
rs = [] | |
mult = 1 | |
last = 0 | |
while last < arlen: | |
number = mult * 4 |
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
# This code is in the public domain. | |
import mw_api_client as mw | |
from getpass import getpass | |
API_PATH="" # API URL like https://en.wikipedia.org/w/api.php | |
USERAGENT="Sandbox Cleaner with mw_api_client" # User-Agent | |
USERNAME="" # User name | |
SANDBOXPATH="" # Sandbox path | |
DEFAULT_SANDBOX="" # Default Sandbox contents |