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> | |
typedef enum kSizeType { | |
kSizeTypeWidth, | |
kSizeTypeHeight | |
} kSizeType ; | |
@interface TextSizeCalculator : NSObject | |
+(id)sharedTextSizeCalculator; |
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 javax.security.auth.spi.LoginModule; | |
import android.graphics.drawable.Drawable; | |
import android.view.View; | |
import android.widget.SpinnerAdapter; | |
import auth.LoginActivity; | |
import com.actionbarsherlock.app.ActionBar; | |
import com.actionbarsherlock.app.SherlockActivity; |
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
def winter_is_coming | |
post_agent = Mechanize.new | |
post_page = post_agent.get('http://skorer.milliyet.com.tr/Fikstur?TTName=') | |
rows = post_page.parser.xpath("id('_MiddleLeft1')/div/table/tbody/tr") | |
rows.each do |row| | |
first_team = row.xpath("td[@class='team team1']/text()").to_s |