change thread_id
in the code and run via scrapy runspider -L INFO crawler.py
- change the filebase and "dump" cell (see
# write your own query here
) - run all cells
using JavaCall | |
convertible(::Type{JavaObject{T}}, ::Type{JavaObject{S}}) where {T, S} = JavaCall.isConvertible(T, S) | |
convertible(javatype::Type, juliatype::Type) = hasmethod(convert, Tuple{Type{javatype}, juliatype}) | |
function jtypeforclass(cls::JClass) | |
isarray(cls) = jcall(cls, "isArray", jboolean, ()) != 0x00 | |
if isarray(cls) | |
jcomponentcls = jcall(cls, "getComponentType", JClass, ()) | |
return Array{jtypeforclass(jcomponentcls), 1} |
type direction = | |
| Up | |
| Down | |
| Left | |
| Right; | |
type action = | |
| NewGame | |
| Move(direction) | |
| Add(int, int, option(int)) |