Code Archive Skip to content Google About Google Privacy Terms
色々とTracのソースを眺めてたらすごいコードを発見したので、忘れないようにメモ ココの 60行目から引用 60 DIGITS = re.compile(r'(\d+)') 61 def embedded_numbers(s): 62 """Comparison function for natural order sorting based on 63 http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/214202.""" 64 pieces = DIGITS.split(s) 65 pieces[1::2] = map(int, pieces[1::2]) 66 return pieces すごいところが分かりやすいようにして軽く実行してみるとこんな感じ >>> import re >>> DIGITS = re.compi
This text describes a simple thread pooled server implemented in Java. The code is based on the multithreaded server desbribed in the text on Multithreaded Servers. The main difference is the server loop. Rather than starting a new thread per incoming connection, the connection is wrapped in a Runnable and handed off to a thread poool with a fixed number of threads. The Runnable's are kept in a qu
2008年07月05日02:30 カテゴリLightweight Languages javascript - のみでQRCode! # thanx, google! [を] Google Chart API で QRコードも生成してくれるようになった新たに QRコードを生成してくれるオプションができました。 - QR codes (Developer's Guide - Google Chart API) http://code.google.com/apis/chart/#qrcodes ほう、それはめでたい。 「QRコードブログ」とかが手軽にできそうです。 というわけで、手軽につくってみた。 Demo: Size: Text: Encoding: ラク過ぎですなあ。むしろ漢字まじりの場合、Shift_JISにしないとケータイで読む時文字化けするというのが一番引っかかったところだったり
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く