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
#import <Foundation/Foundation.h> | |
@interface NSDictionary (MBUtil) | |
- (instancetype)initWithDictionary:(NSDictionary *)dictionary withKeyDictionary:(NSDictionary *)keyDictionary; | |
+ (instancetype)dictionaryWithDictionary:(NSDictionary *)dictionary withKeyDictionary:(NSDictionary *)keyDictionary; | |
@end |
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
# -*- coding: utf-8 -*- | |
from __future__ import print_function | |
from rx import Observable | |
(Observable.from_(range(1, 10)) | |
.map(lambda x: x ** 2) | |
.filter(lambda x: x % 2 == 0) | |
.subscribe( | |
on_next = print, |
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
<item> | |
<name>Option_L to Command_L</name> | |
<appendix>(+ When you type Option_L only, send EISUU)</appendix> | |
<identifier>private.optl2cmdl_eisuu</identifier> | |
<autogen>__KeyOverlaidModifier__ KeyCode::OPTION_L, KeyCode::COMMAND_L, KeyCode::JIS_EISUU</autogen> | |
</item> | |
<item> | |
<name>Option_R to Command_R</name> | |
<appendix>(+ When you type Option_L only, send KANA)</appendix> | |
<identifier>private.optr2cmdr_kana</identifier> |
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
<autogen> | |
--KeyToKey-- | |
KeyCode::BRACKET_RIGHT, | |
ModifierFlag::CONTROL_L, | |
KeyCode::ESCAPE, KeyCode::JIS_EISUU | |
</autogen> |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use utf8; | |
exit 1 unless @ARGV; | |
my $emoji = ":$ARGV[0]:"; | |
print join ' ', $emoji, map { "$emoji:skin-tone-$_:" } 2..6; |
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
extension Array { | |
func uniqBy<KeyType: Hashable>(@noescape hash: (Element) -> KeyType) -> [Element] { | |
var seen: [KeyType: Bool] = [:] | |
return self.filter { element in | |
let key = hash(element) | |
if seen[key] == nil { | |
seen[key] = true | |
return true | |
} | |
return false |
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
# UTF-8 な環境です | |
>>> len("コレハハンカクカナデス") | |
36 | |
>>> len(u"コレハハンカクカナデス") | |
12 | |
>>> len("これは全角") | |
15 | |
>>> len(u"これは全角") | |
5 |
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
Gist.vimから投稿してみるテスト | |
1 | |
2 | |
3 | |
4 | |
変更してみた |
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
$ class-dump -H -o ~/dumps/btm /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/System/Library/PrivateFrameworks/BluetoothManager.framework |
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
━【楽●天】━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | |
楽天銀行 重要なお知らせ | |
━━━━━━━━━━━━━━━━━ http://click.rakuten-bank.co.jp/c?c=XXXX&m=XXXXXXXXX&v=XXXXXXXX ━━ | |
平素は楽天銀行をご利用いただき、誠にありがとうございます。 | |
お客さまが他サイトで使用されているID・パスワードを用いて、第三者が当行 | |
にログインを試みるという事例の報告を受けております。 | |
当行と他サイトのID・パスワードを同一にされているケースでは、当行への |
OlderNewer