Skip to content

Instantly share code, notes, and snippets.

@karino2
karino2 / HelloCustomView.java
Created February 25, 2017 11:14
Androidを支える技術Iのサンプルに作ったカスタムビュー
public class HelloCustomView extends View {
String first;
String second;
public HelloCustomView(Context context, AttributeSet attrs) {
super(context, attrs);
TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.HelloCustomView, 0, 0);
#coding: utf-8
# 238.36137 secs => 28.875 secs
require 'win32ole'
xl = WIN32OLE.new('Excel.Application')
xl.visible = true
book = xl.workbooks.add
start = Time.now
sheet = book.worksheets(1)
1.upto(10000) do |row|
cells = sheet.Range(sheet.Cells(row, 1), sheet.Cells(row, 26))