Run with python other_file.py
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
| using PlotlyJS | |
| # set up data | |
| na = 10 | |
| nw = 5 | |
| zz = rand(1:4, na, nw, nw) | |
| text = similar(zz, String) | |
| text[zz .== 1] = "stay, work" | |
| text[zz .== 2] = "move, work" |
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
| macro showtime(ex) | |
| blk = Expr(:block) | |
| push!(blk.args, :(println($(sprint(Base.show_unquoted,ex)*" = "), | |
| repr(begin value=$(esc(ex)) end)))) | |
| push!(blk.args, :value) | |
| quote | |
| local stats = Base.gc_num() | |
| local elapsedtime = Base.time_ns() |
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 json | |
| import os | |
| import time | |
| from collections import OrderedDict | |
| from contextlib import contextmanager | |
| import wunderpy2 | |
| import todoist |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| Benchmark for build_levels_func_body: | |
| BenchmarkTools.Trial: | |
| samples: 10000 | |
| evals/sample: 1 | |
| time tolerance: 5.00% | |
| memory tolerance: 1.00% | |
| memory estimate: 277.17 kb | |
| allocs estimate: 4695 | |
| minimum time: 394.74 μs (0.00% GC) | |
| median time: 431.94 μs (0.00% GC) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| module MyTypes | |
| export TheParent | |
| abstract TheParent | |
| Base.show(io::IO, p::TheParent) = println(io, "Some instance of TheParent") | |
| end # module |