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
""" | |
Although the code in appears broken with inspection, it is not. Sly uses some hacky syntax. | |
https://sly.readthedocs.io/en/latest/sly.html#writing-a-parser | |
""" | |
from pypika import ( | |
Bracket, | |
Case, | |
Not, | |
Order, |
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 PropTypes from 'prop-types'; | |
const propTypes = {}; | |
export const useFlexLayout = hooks => { | |
hooks.useMain.push(useMain); | |
}; | |
useFlexLayout.pluginName = 'useFlexLayout'; |
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 scan_for_modules(path): | |
""" | |
Generator function which scans a directory for all python modules and returns them successively. | |
""" | |
modules = [] | |
for finder, pkgname, is_module in pkgutil.iter_modules([path]): | |
if pkgname in ['setup']: | |
continue | |
mod = importlib.import_module(pkgname) |
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
# coding: utf-8 | |
""" | |
Implementation of the Tiny Encryption Algorithm (TEA) for Python | |
https://en.wikipedia.org/wiki/Tiny_Encryption_Algorithm | |
Example Usage: | |
import tea | |
# The key must be 16 characters |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
""" | |
Implementation of the methods described by Richard Sutton in Chapter 2 of his book on reinforcement learning. | |
http://webdocs.cs.ualberta.ca/~sutton/book/ebook/the-book.html | |
""" | |
__author__ = 'Timothy Heys, [email protected]' | |
import itertools | |
from bisect import bisect |