This file contains 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 ast | |
import sys | |
def find_difference(a,b,lastpos=(0,0)): | |
if isinstance(b,ast.expr) or isinstance(b,ast.stmt): | |
lastpos = b.lineno,b.col_offset | |
if type(a) != type(b): return lastpos | |
if isinstance(a,ast.AST): | |
for field in a._fields: |
This file contains 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 socket | |
import argparse | |
import sys | |
ap = argparse.ArgumentParser() | |
ap.add_argument("host") | |
ap.add_argument("port",nargs="?",type=int,default=25565) | |
args = ap.parse_args() |
This file contains 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 re | |
import sys | |
import os | |
import os.path | |
import begin | |
import icalendar | |
import yaml | |
import pytz |