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
type direction = | |
| Up | |
| Down | |
| Left | |
| Right; | |
type action = | |
| NewGame | |
| Move(direction) | |
| Add(int, int, option(int)) |
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} |
$env.config.show_banner = false | |
$env.config.table.mode = 'light' | |
$env.PROMPT_COMMAND = { || | |
let last_exit = if ($env.LAST_EXIT_CODE != 0) { | |
$"(ansi red)($env.LAST_EXIT_CODE | into string)(ansi reset) " | |
} else { "" } | |
let user = (ansi blue) + (whoami | str trim) + (ansi reset) | |
let host = (hostname | str trim) | |
let dir = (ansi white_bold) + ($env.PWD | str replace $nu.home-path "~") + (ansi reset) |