1.741878161845657e9
👀 Reading hidden code
tic = Ref(time())
👀 Reading hidden code
Enter cell code...
1.1583960056304932
👀 Reading hidden code
missing
👀 Reading hidden code
👀 Reading hidden code
<canvas id="drawboard" width="200" height="200"></canvas>
<script>
const canvas = document.querySelector("canvas#drawboard")
const ctx = canvas.getContext("2d")
var startX = 80
var startY = 40
function sendvalue() {
// 🐸 This is how we send the value back to Julia 🐸 //
const raw = ctx.getImageData(0,0,200,200).data
canvas.value = raw.buffer
canvas.dispatchEvent(new CustomEvent("input"))
}
function onmove(e){
ctx.fillStyle = '#ffecec'
ctx.fillRect(0, 0, 200, 200)
ctx.fillStyle = '#3f3d6d'
ctx.fillRect(startX, startY, e.layerX - startX, e.layerY - startY)
sendvalue()
}
canvas.onmousedown = e => {
endswith (generic function with 7 methods)
begin
import Base: endswith
function endswith(vec::Vector{T}, suffix::Vector{T}) where T
local liv = lastindex(vec)
local lis = lastindex(suffix)
liv >= lis && (view(vec, (liv-lis + 1):liv) == suffix)
end
end
👀 Reading hidden code
false
endswith([1,2,3], [2,3, 4, 5])
👀 Reading hidden code
syntax: missing last argument in "2:" range expression
view([1,2,3], 2:end) == [2,3]
👀 Reading hidden code
👀 Reading hidden code
MethodError: no method matching append!(::String, ::String)
Closest candidates are:
append!(::BitVector, ::Any) at /opt/hostedtoolcache/julia/1.7.3/x64/share/julia/base/bitarray.jl:782
append!(::AbstractVector, ::Any) at /opt/hostedtoolcache/julia/1.7.3/x64/share/julia/base/array.jl:1050
append!(::AbstractVector, ::Any...) at /opt/hostedtoolcache/julia/1.7.3/x64/share/julia/base/array.jl:1053
Here is what happened, the most recent locations are first:
Oh no! 🙀
begin
str = "asdfasdfdfas"
append!(str, "xx")
end
👀 Reading hidden code
Another cell defining str contains errors.
uhmmmmmm??!
codeunits(str)|> Vector{UInt8}
👀 Reading hidden code
using JSON
👀 Reading hidden code
Another cell defining str contains errors.
obj = Dict(:a => Dict(:b => str), :c => :d)
👀 Reading hidden code
Another cell defining str contains errors.
JSON.Parser.parse( codeunits(JSON.json(obj)) |> Vector{UInt8} |> String) |> length
👀 Reading hidden code