今自分が行きたくない会社No.1はグのつく会社
誘われないけれど誘われても行きたくない会社、今個人ランキング一位のはグのつく会社。
後々評価は変わるのかもしれないけれども、今この瞬間の気持ちを記録しておかないと。
この気持ちをどの方向への活力に転換するのか悩むところ、、、でもかなりの推進力ありと思われる。
One liner for quick sort in Python
print (lambda a:len(a)>1 and sum([(type(lambda: 0)(__import__('sys')._getframe().f_code, globals()))(filter(lambda x:x<a[0], a[1:])), [a[0]], (type(lambda: 0)(__import__('sys')._getframe().f_code, globals()))(filter(lambda x:x>a[0], a[1:]))], []) or a)([2,4,1,5,631,74,96,47,63,44,21,14,5,70,7,9,7,44,3,6,5,43,56,87,69,0,77,7,3,4,5]) # Why (lambda a:True and a or 1)([]) returns 1, by the way??
Pythonでワンライナー再帰できたー!! (Recursive as one liner in Python)
(lambda x: x==1 and 1 or x + type(lambda: 0)(__import__('sys')._getframe(0).f_code, globals())(x-1))(10)
めっさ大変だったー。。。
iOSの(多分)NativeなAPIを自由自在に叩く
https://itunes.apple.com/jp/app/python-2.7-for-ios/id485729872?l=en&mt=8
昔_ctypes止まりで使えなかったctypesが、今使えるようになってて、
import ctypes libc = ctypes.CDLL('libc.dylib') print libc.printf('ok') # 2 will be printed as outputed bytes
とか
# Original source for Mac OS X: # http://d.hatena.ne.jp/moriyoshi/touch/20101113/1289663233import ctypes kCFUserNotificationNoteAlertLevel = 1 kCFStringEncodingUTF8 = 0x08000100 dll = ctypes.CDLL('/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation') title = dll.CFStringCreateWithCString(None, 'Hey', kCFStringEncodingUTF8) message = dll.CFStringCreateWithCString(None, 'Hello, binary world.', kCFStringEncodingUTF8) dll.CFUserNotificationDisplayNotice(ctypes.c_double(0.),kCFUserNotificationNoteAlertLevel,None, None, None, title, message, None) # Native popup will be shown
が動くのでかなり胸熱。