###求和
#!/bin/bash
read a
read b
echo $[$a+$b]
| // | |
| // PSPDFThreadSafeMutableDictionary.m | |
| // | |
| // Copyright (c) 2013 Peter Steinberger, PSPDFKit GmbH. All rights reserved. | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights | |
| // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| // copies of the Software, and to permit persons to whom the Software is |
| // Taken from the commercial iOS PDF framework http://pspdfkit.com. | |
| // Copyright (c) 2014 Peter Steinberger, PSPDFKit GmbH. All rights reserved. | |
| // Licensed under MIT (http://opensource.org/licenses/MIT) | |
| // | |
| // You should only use this in debug builds. It doesn't use private API, but I wouldn't ship it. | |
| #import <objc/runtime.h> | |
| #import <objc/message.h> | |
| // Compile-time selector checks. |
| # Generated by iptables-save v1.4.6 on Tue May 8 19:22:59 2012 | |
| *nat | |
| :PREROUTING ACCEPT [860:71419] | |
| :POSTROUTING ACCEPT [167:12400] | |
| :OUTPUT ACCEPT [357:25377] | |
| :nat_reflection_in - [0:0] | |
| :nat_reflection_out - [0:0] | |
| :postrouting_rule - [0:0] | |
| :prerouting_lan - [0:0] | |
| :prerouting_rule - [0:0] |
| #!/usr/bin/env python | |
| # encoding=utf-8 | |
| import sys | |
| import os | |
| import datetime | |
| SHEBANG = "#!/bin/bash\n\n" | |
| def get_cmd(editor, initial=""): |
A simple CGI-based web server. first, run createDatabase.py, then run run.py.
Then navigate to http://127.0.0.1:8080/ in a web browser.