Follow the applicable install instructions for the downloads.
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 web | |
urls = ( | |
'/(.*)', 'Service' | |
) | |
app = web.application(urls, globals()) | |
class Service: | |
def GET(self, name): | |
web.header('Access-Control-Allow-Origin', '*') |
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 is a simple Monte Carlo simulation to see | |
* whether we should | |
* go for X BIG deal and/or Y SMALL deals. | |
* | |
* What is the best blend? | |
* | |
* Author: Ido Green | plus.google.com/+greenido | |
* Date: 16 July 2013 | |
* |
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
$ python test_time.py | |
join_test: 21.3 seconds | |
format_test: 36.6 seconds | |
영어지만, 조금 더 상세하게 마크다운 사용법을 안내하고 있는
"Markdown Guide (https://www.markdownguide.org/)" 를 보시는 것을 추천합니다. ^^
아, 그리고 마크다운만으로 표현이 부족하다고 느끼신다면, HTML 태그를 활용하시는 것도 좋습니다.
OlderNewer