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 re | |
| import timeit | |
| global cache_list | |
| class PartialTrie: | |
| def __init__(self): | |
| self.leaf = False | |
| self.tries = {} |
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
| #!/usr/bin/python | |
| import re,sys | |
| username = sys.argv[1] | |
| for line in sys.stdin: | |
| break | |
| fh = open('.htaccess_mobile') | |
| for line in fh: |
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
| _git_info() { | |
| ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
| echo "${ref#refs/heads/} " | |
| } | |
| # Checks if working tree is dirty | |
| _git_dirty() { | |
| if [[ -n $(git status -s --ignore-submodules=dirty 2> /dev/null) ]]; then | |
| #dirty | |
| echo -e $GIT_DIRTY |