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/env python3 | |
| import argparse | |
| import socket | |
| import select | |
| def main(): | |
| parser = argparse.ArgumentParser(description="MITM proxy") | |
| parser.add_argument( |
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 collections | |
| import traceback | |
| import json | |
| import pickle | |
| import sys | |
| import inspect | |
| import yaml | |
| from pprint import pprint | |
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/env python | |
| import os | |
| import sys | |
| import random | |
| import hashlib | |
| import tempfile | |
| import subprocess | |
| import atexit |
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 math | |
| class Calculator(object): | |
| def __init__(self): | |
| self.__count = 0 | |
| self.__sum = 0.0 | |
| self.__sqsum = 0.0 | |
| @property | |
| def average(self): |
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 pygtk | |
| pygtk.require('2.0') | |
| import gtk | |
| import random | |
| full = '''To invoke the hive-mind representing chaos. | |
| Invoking the feeling of chaos. | |
| With out order. | |
| The Nezperdian hive-mind of chaos. Zalgo.for |
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
| {{{ | |
| ╻ ┏━╸┏━┓┏━┓┏┓ ┏┓ ┏━╸╺┳┓ ╺┳╸╻ ╻┏━╸ ┏━┓╻ ╻╺┳╸╻ ╻┏━┓┏┓╻ | |
| ┃ ┃╺┓┣┳┛┣━┫┣┻┓┣┻┓┣╸ ┃┃ ┃ ┣━┫┣╸ ┣━┛┗┳┛ ┃ ┣━┫┃ ┃┃┗┫ | |
| ╹ ┗━┛╹┗╸╹ ╹┗━┛┗━┛┗━╸╺┻┛ ╹ ╹ ╹┗━╸ ╹ ╹ ╹ ╹ ╹┗━┛╹ ╹ | |
| }}} | |
| {{{ | |
| >>> from __future__ import braces | |
| SyntaxError: not a chance (<input>, line 2) | |
| }}} |
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
| print '#include <stdio.h>\n#include <string.h>\n\nint main() {\nunsigned char mem[30000];\nunsigned char *ptr = mem;\nmemset(mem, 0, sizeof(mem));\n\n/* BF code */\n%s\nreturn 0;\n}\n' % __import__('re').sub(r'[^\+\-\[\],\.><]', '', __import__('sys').stdin.read()).replace('+', '++*ptr;').replace('-', '--*ptr;').replace('[', 'while (*ptr) {').replace(']', '}').replace('>', '++ptr;').replace('<', '--ptr;').replace(',', '*ptr = getchar();').replace('.', 'putchar(*ptr);') |
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 is the original template | |
| template < typename _Type > | |
| class SomeClass | |
| { | |
| public: | |
| // Some functions | |
| void foo() | |
| { | |
| } |
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 sys | |
| import types | |
| class AccessError(Exception): | |
| '''Object access violation''' | |
| def get_caller_instance(skip = 2): | |
| try: | |
| raise RuntimeError |
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
| '''Python self-contained module maker | |
| Creates a small Python script containing the neccessary complete | |
| modules in a tar.bz2 archive. The generated script unpacks this | |
| and it can be used as a stand-alone script without explicitly | |
| installing the whole module.''' | |
| import os | |
| import sys | |
| import os.path |
NewerOlder