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
| nginx和tornado就像apache和tomcat的功能; |
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 os | |
| # -*- coding: utf-8 -*- | |
| def writeFile(filename, content): | |
| outfile = open(filename, "w") | |
| outfile.write(content) | |
| outfile.close() | |
| def build(versionString): | |
| xmlHeader = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" | |
| xmlResH = "<resources>\n\t" |
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
| public synchronized Rect getFramingRectInPreview(){ | |
| int tmpRigth = rect.right; | |
| int tmpLeft = rect.left; | |
| int tmpTop = rect.top; | |
| int tmpBottom =rect.bottom; | |
| rect.left = (tmpTop * cameraResolution.x) /screenResolution.y ; | |
| rect.top = cameraResolution.y - tmpRigth *cameraResolution.y/screenResolution.x; |
OlderNewer