This file contains hidden or 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
| // | |
| // ThemeColorPicker.swift | |
| // | |
| // Created by PxP_ss on 2014/11/05. | |
| // Copyright (c) 2014年 pxp_ss. All rights reserved. | |
| // | |
| import UIKit | |
| protocol ThemeColorPickerDelegate { |
This file contains hidden or 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 Fixnum | |
| def times_try(sleep_time=0) | |
| count = 0 | |
| begin | |
| yield(count) | |
| rescue | |
| if count < self | |
| count += 1 | |
| sleep sleep_time | |
| retry |
This file contains hidden or 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
| require 'cgi' | |
| require 'rubygems' | |
| require 'json' | |
| require 'mechanize' | |
| require 'pit' | |
| # LDR | |
| ldr_login = Pit.get("member.livedoor.com", :require => { | |
| "username" => "your livedoor_id", |