Skip to content

Instantly share code, notes, and snippets.

View dealforest's full-sized avatar

Toshihiro Morimoto dealforest

View GitHub Profile
# 絵文字キーボードの、各カテゴリーについて、全ページの絵文字を入力してサーバで受け取ってダンプした
各ページのレイアウトに対応して以下に表示した
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
!!!国旗の最後が抜けてる!!!
@akisute
akisute / UIApplication+UIID.h
Created August 22, 2011 01:16
Unique Installation Identifier (UIID) as a replacement of the depreciated UDID. Repository available here: https://github.com/akisute/UIApplication-UIID
//
// UIApplication+UIID.h
// UIID
//
// Created by akisute on 11/08/22.
//
#import <UIKit/UIKit.h>
@lukeredpath
lukeredpath / LRPopoverManager.h
Created May 24, 2010 16:28
Singleton popover manager to enforce the one popover at at time rule. MIT license, help yourself
//
// LRPopoverManager.h
// Spark
//
// Created by Luke Redpath on 24/05/2010.
// Copyright 2010 LJR Software Limited. All rights reserved.
//
#import <Foundation/Foundation.h>
@akisute
akisute / UILabel+AKiOS6Compatibility.m
Created October 2, 2014 08:24
You will no longer be suffered by iOS 6 Hiragino fonts.
- (NSString *)text6Compatible
{
return self.text;
}
- (void)setText6Compatible:(NSString *)text6Compatible
{
self.text = text6Compatible;
if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(7)) {
@cutmail
cutmail / gist:ce4f359c34dc7d90ed12
Last active August 29, 2015 14:00
Macのターミナルで桜が降る
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}'