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
import java.lang.reflect.InvocationTargetException; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.apache.commons.beanutils.BeanUtils; | |
public class Converter { | |
public static <T, U> List<U> convert(List<T> in, Class<U> type) { | |
List<U> out = new ArrayList<U>(); |
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
Download Chiraw, Scarecrows And Lullabies mp3 music free. unlimited access, high speed downloads | |
Download Chiraw, Scarecrows And Lullabies mp3 music | |
Highspeed download torrent Download Chiraw, Scarecrows And Lullabies mp3 music | |
Check our website for torrent links! | |
Download Chiraw, Scarecrows And Lullabies mp3 music | |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project default="a"> | |
<target name="a"> | |
<script language="javascript"><![CDATA[ | |
print('hello world!'); | |
]]></script> | |
</target> | |
</project> |
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
# -*- coding: utf-8 -*- | |
class Player | |
attr_writer :speed | |
def initialize(param) | |
@position_x = param[:x] | |
@position_y = param[:y] | |
@speed = param[:speed] | |
end |
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
# -*- coding: utf-8 -*- | |
class Player | |
attr_reader :position | |
def initialize(position) | |
@position = position | |
end | |
def move(direction) | |
case direction |
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
# -*- coding: utf-8 -*- | |
class Player | |
attr_reader :position | |
def initialize(position) | |
@position = position | |
@x_ratio = 1 | |
@y_ratio = 1 | |
end |
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
# -*- coding: utf-8 -*- | |
class Position | |
def initialize(position) | |
@position = position | |
end | |
def move( direction, y_ratio, x_ratio) | |
case direction | |
when :up | |
@position[:y] -= 10 * y_ratio |
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
# -*- coding: utf-8 -*- | |
module Movable | |
attr_reader :position | |
def set_position(position) | |
@position = position.is_a?(Movable) ? position.position : position | |
end | |
def set_ratio(x, y) | |
@x_ratio = x |
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
# -*- coding: utf-8 -*- | |
module Movable | |
def position(position=nil) | |
return {:x=>@x, :y=>@y} unless position | |
@x = position[:x] | |
@y = position[:y] | |
end | |
def set_position_or_player(position) |
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
# -*- coding: utf-8 -*- | |
module Movable | |
def position(position=nil) | |
return {:x=>@x, :y=>@y} unless position | |
@x = position[:x] | |
@y = position[:y] | |
end | |
def set_position_or_player(position) |
OlderNewer