ruby -e 'C=`stty size`.scan(/\d+/)[1].to_i;S="\xf0\x9f\x8c\xb8";a={};puts "\033[2J";loop{a[rand(C)]=0;a.each{|x,o|;a[x]+=1;print "\033[#{o};#{x}H \033[#{a[x]};#{x}H#{S} \033[0;0H"};$stdout.flush;sleep 0.01}'
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
- (NSString *)text6Compatible | |
{ | |
return self.text; | |
} | |
- (void)setText6Compatible:(NSString *)text6Compatible | |
{ | |
self.text = text6Compatible; | |
if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(7)) { |
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
// | |
// LRPopoverManager.h | |
// Spark | |
// | |
// Created by Luke Redpath on 24/05/2010. | |
// Copyright 2010 LJR Software Limited. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
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
// | |
// UIApplication+UIID.h | |
// UIID | |
// | |
// Created by akisute on 11/08/22. | |
// | |
#import <UIKit/UIKit.h> | |
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
# 絵文字キーボードの、各カテゴリーについて、全ページの絵文字を入力してサーバで受け取ってダンプした | |
各ページのレイアウトに対応して以下に表示した | |
before: utf8::decode(Ark::Plugin::Encoding::Unicode) -> sprintf("%#x", ord($_)) | |
after: utf8::decode(Ark::Plugin::Encoding::Unicode) -> encode('utf8') -> decode('x-utf8-e4u-unicode') -> encode('x-utf8-e4u-softbank3g') -> decode('utf8') -> sprintf("%#x", ord($_)) | |
Encode::JP::Emoji version 0.60 | |
!!!国旗の最後が抜けてる!!! |
- 発表者:
- 日時:
- 2013.07.13
- 場所:
- iOS部 @下北沢オープンソースCafe
- テーマ:
- iOctocat
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
platform :ios, '5.0' | |
pod 'MagicalRecord' | |
post_install do |installer| | |
installer.project.targets.each do |target| | |
target.build_configurations.each do |config| | |
s = config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] | |
if s==nil then s = [ '$(inherited)' ] end | |
s.push('MR_ENABLE_ACTIVE_RECORD_LOGGING=0'); |
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 <UIKit/UIKit.h> | |
#import "AppDelegate.h" | |
int main(int argc, char * argv[]) | |
{ | |
@autoreleasepool { | |
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"UIDisableLegacyTextView"]; | |
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); |
- Singleton
- Abstract Factory - |NSWindow| (Theme, Style)
- Builder - WebKit Document Representation
- Prototype - |NSCollectionViewItem|, Cell
- FactoryMethod - |NSDocument|, ClassCluster
- Adapter - Delegate, CocoaBinding
- Bridge - |NSImageRep|, Wrapper
- Composite - View Hierarchy, Tree
- Decorator - |NSBox|, |NSScrollView|
- Facade - |NSTextView|
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 <UIKit/UIKit.h> | |
@interface UIWebView (Additions) | |
/*! | |
@abstract Enable/Disable the receiver from scrolling. | |
*/ | |
@property (nonatomic, assign) BOOL webViewScrollEnabled; |
OlderNewer