Skip to content

Instantly share code, notes, and snippets.

@tk0miya
Created May 26, 2014 03:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tk0miya/b2c6cbbf91f8deea4dbe to your computer and use it in GitHub Desktop.
Save tk0miya/b2c6cbbf91f8deea4dbe to your computer and use it in GitHub Desktop.
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
Copy link
Author

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