Skip to content

Instantly share code, notes, and snippets.

# coding=utf-8
"""
https://leetcode.com/problems/sliding-puzzle/
Metaprogramming sub-millisecond solution beating 100% in performance.
"""
import itertools
from tqdm import tqdm
import pickle
@ogurets
ogurets / youtube-watchlater-selenium.py
Created December 26, 2018 17:49
Youtube WL list download method
#!/usr/bin/python2.7
# coding=utf-8
"""
Ok, Google, your decision about removing WL from the API sucks!
"""
import ujson as json
import os
from tornado.httpclient import AsyncHTTPClient, HTTPClient, HTTPError, HTTPRequest
from tornado.ioloop import IOLoop
import selenium
@ogurets
ogurets / rftools_gen_entries.py
Created December 16, 2017 21:09
Generate spawner entries for RFTools
import sys
class ConfigFormat(object):
@staticmethod
def mobspawn(**kwargs):
print(""" S:"{mobname}.spawnamount.0" <
I
{key}
0
{key_amount}