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
license: mit |
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 macros, json | |
type Event = ref object of RootObj | |
id: string | |
type TestMade = ref object of Event | |
name: string | |
type Test = ref object of Event |
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
#this program uses the Shunting Yard algorithm to transform infix expressions | |
# into postfix, and then an AST, which can then be easily evaluated. | |
#just run `python calc.py` and enjoy. enjoyment is optional and not included | |
# with the standard calc.py package, but for an extra $99.99 we can have a | |
# calc.py Premium Deluxe sent to you over the next 6-8 weeks, which may or may | |
# not increase your enjoyment of our calc.py product. | |
#for a list of operators supported and not supported (for isntance, the unary - | |
# is a ~) look below. | |
#TODO: handle parentheses. |
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
#this program uses the Shunting Yard algorithm to transform infix expressions | |
# into postfix, and then an AST, which can then be easily evaluated. | |
#just run `python calc.py` and enjoy. enjoyment is optional and not included | |
# with the standard calc.py package, but for an extra $99.99 we can have a | |
# calc.py Premium Deluxe sent to you over the next 6-8 weeks, which may or may | |
# not increase your enjoyment of our calc.py product. | |
#for a list of operators supported and not supported (for isntance, the unary - | |
# is a ~) look below. | |
#TODO: handle parentheses. |
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 | |
# Modified by Travis Lee | |
# Last Updated: 4/21/14 | |
# Version 1.16 | |
# | |
# -changed output to display text only instead of hexdump and made it easier to read | |
# -added option to specify number of times to connect to server (to get more data) | |
# -added option to send STARTTLS command for use with SMTP/POP/IMAP/FTP/etc... | |
# -added option to specify an input file of multiple hosts, line delimited, with or without a port specified (host:port) |