Created
May 26, 2014 03:49
-
-
Save tk0miya/b2c6cbbf91f8deea4dbe to your computer and use it in GitHub Desktop.
Py婚 JP 2014 の LT 発表順
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
[1] tkomiya@deneb> python | |
Python 2.7.6 (default, Feb 20 2014, 11:54:33) | |
[GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> # 発表します枠 | |
... candidates = ['@terapyon', '@jbking', '@ryu22e', '@kyon_mm', '@aodag', '@shomah4a', '@shimizukawa', '@usaturn',] | |
>>> # ツンデレ枠 (あんたがどうしてもっていうなら発表してやらなくもないんだからっ) | |
... tsundere = ['@r_rudi', '@masahito', '@takuan_osho', '@ransui', '@ytakeuch', '@kamekoopa', '@shidocchi', '@hajime_nakagami', '@masa_edw', '@takanory', '@turky', '@troter',] | |
>>> | |
>>> # 基調講演 | |
... import random | |
>>> random.choice(candidates) | |
'@usaturn' | |
>>> keynote = _ | |
>>> | |
>>> # その他の発表順 | |
... candidates.remove(keynote) | |
>>> presenters = candidates + tsundere + ['@tk0miya'] # 自分も足す | |
>>> random.shuffle(presenters) | |
>>> presenters | |
['@takanory', '@ransui', '@tk0miya', '@aodag', '@masa_edw', '@takuan_osho', '@kamekoopa', '@shimizukawa', '@hajime_nakagami', '@masahito', '@terapyon', '@jbking', '@r_rudi', '@turky', '@shomah4a', '@shidocchi', '@ryu22e', '@ytakeuch', '@kyon_mm', '@troter'] | |
>>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ransui さんは遅れて参加とのことなので、connpass に掲載するときに調整しました。