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
# -*- encoding: UTF-8 -*- | |
input = ARGV[0].to_i | |
array = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'] | |
array2 = ['','hoge', 'twenty', 'thirty', 'fourty', 'fifty', 'sixty', 'seventy', 'eighty', 'ninety'] | |
array2_1 = ['ten', 'eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen', 'sixteen', 'seventeen', 'eighteen', 'nineteen'] | |
def hundred(number) | |
return number + ' hundred' |
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
package org.yokohama.rb.kaigi01; | |
import org.yokohama.rb.kaigi01.result.ResultViewModel; | |
public class CreateAmidakuji { | |
public CreateAmidakuji() { | |
ResultViewModel model = new ResultViewModel(5); | |
System.out.println(model.toString()); | |
} |
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
List<Record> recordList = new ArrayList<Record>() | |
recordList.add(new Record().build("A1","B1","C1")) | |
recordList.add(new Record().build("A2","B2","C2")) | |
recordList.add(new Record().build("A3","B3","C3")) | |
recordNames = ["factorA","factorB","factorC"] | |
List<Column> columnList = new ArrayList<Column>() |
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 file = // as File | |
file.eachLine{ | |
println it | |
} | |
file.splitEachLine(','){ data -> | |
println '0th data =>' + data[0] | |
println data[1..-1] | |
} |
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
configurations{ iso } | |
dependencies{ | |
iso fileTree(dir: 'lib', includes: ['*.jar']) | |
} | |
task iso << { | |
ant.taskdef(name: 'makeiso', classpath: configurations.iso.asPath, classname:'de.tu_darmstadt.informatik.rbg.hatlak.iso9660.ISOTask') | |
def params = [:] | |
params['destfile'] = 'minimal.iso' |
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 file = new File('/Users/kaakaa_hoe/Documents/codeIQ/shufflers/shufflers.txt') | |
Set resultList = new HashSet() | |
def cand = [:] | |
file.splitEachLine(' ') { array -> | |
def idList = getRegsList(array, /[0-9]+/) | |
def nameList = getRegsList(array, /[a-z]+/) | |
if(cand.size() == 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
UWSC.test { | |
script { | |
$ 'SEND_KEY("hoge")' | |
$ 'SEND_KEY("fuga")' | |
} | |
assertUWSC { | |
assertTitle('title') | |
} | |
} |
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
require 'rubygems' | |
require 'RMagick' | |
rgp = Magick::ImageList.new('test.pdf') | |
p rgp.format | |
p rgp.columns | |
p rgp.rows | |
p rgp.size | |
rgp.each_with_index { |val, index| |
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 dsl = ''' | |
person.is { | |
name 'taro' | |
age '28' | |
}.say() | |
''' | |
def impl = ''' | |
def getPerson(){ | |
new Person() |
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
configurations { | |
svnant | |
} | |
dependencies { | |
// lib/svnant配下にsvnantを展開 | |
// => http://subclipse.tigris.org/svnant.html | |
svnant fileTree(dir: 'lib/svnant', include: '**/*.jar') | |
} |
OlderNewer