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
''' | |
This script performs efficient concatenation of files stored in S3. Given a | |
folder, output location, and optional suffix, all files with the given suffix | |
will be concatenated into one file stored in the output location. | |
Concatenation is performed within S3 when possible, falling back to local | |
operations when necessary. | |
Run `python combineS3Files.py -h` for more info. | |
''' |
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
# coding: utf-8 | |
# Calculator | |
from __future__ import division | |
import ui | |
import clipboard | |
from console import hud_alert | |
shows_result = False |
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
import random | |
people=["wang","peng","duan","meng"] | |
winners=[];i=0 | |
num=len(people) | |
while True: | |
if len(winners)>=num-1 or "exit" in winners: | |
print "game over!" | |
break | |
while True: | |
if people[i%num] in winners: |
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
import random | |
people=["wang","peng","duan","meng"] | |
winners=[];i=0 | |
num=len(people) | |
while True: | |
if len(winners)>=num-1 or "exit" in winners: | |
print "game over!" | |
break | |
while True: | |
if people[i%num] in winners: |
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
import random | |
people=["wang","peng","duan","meng"] | |
winners=[];i=0 | |
num=len(people) | |
while True: | |
if len(winners)>=num-1 or "exit" in winners: | |
print "game over!" | |
break | |
while True: | |
if people[i%num] in winners: |