Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Py婚 JP 2014 の LT 発表順
[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']
>>>
@tk0miya

This comment has been minimized.

Copy link
Owner Author

@tk0miya tk0miya commented May 26, 2014

ransui さんは遅れて参加とのことなので、connpass に掲載するときに調整しました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment