Tap on every value
👀 Reading hidden code
👀 Reading hidden code
👀 Reading hidden code
/tmp/jl_f1zFu6/vibrate: 1: Syntax error: word unexpected (expecting ")")
Tap three times
👀 Reading hidden code
triple (generic function with 1 method)
👀 Reading hidden code
failed process: Process(`/tmp/jl_f1zFu6/vibrate -t 0.02`, ProcessExited(2)) [2]
Here is what happened, the most recent locations are first:
- pipeline_errorfrom process.jl:540
- run
(::Cmd; wait::Bool) from process.jl:455 - runfrom process.jl:453
- tap
(duration::Float64) from Other cell: line 2function tap(duration::Real=0.02)
run(`$(vibrate_path) -t $(string(duration))`)
nothing
end
- Show more...
Don't panic!
triple()
👀 Reading hidden code
/tmp/jl_f1zFu6/vibrate: 1: Syntax error: word unexpected (expecting ")")
Tab on snap
👀 Reading hidden code
👀 Reading hidden code
Another cell defining yint contains errors.
C'est la vie !
HTML("<input style='width: 500px' type=range max=10 step=.01 value=$(yint) disabled>")
👀 Reading hidden code
Another cell defining yint contains errors.
C'est la vie !
if last_yint[] != yint
@async tap()
last_yint[] = yint
end;
👀 Reading hidden code
0
last_yint = Ref(0)
👀 Reading hidden code
MissingException: cannot convert a missing value to type Int64: use Union{Int64, Missing} instead
Here is what happened, the most recent locations are first:
- round
(::Type{Int64}, ::Missing, ::RoundingMode{:Nearest}) from missing.jl:142 - from This cell: line 1
yint = round(Int, y)
this suckz 💣
yint = round(Int, y)
👀 Reading hidden code
Appendix
👀 Reading hidden code
tap (generic function with 2 methods)
function tap(duration::Real=0.02)
run(`$(vibrate_path) -t $(string(duration))`)
nothing
end
👀 Reading hidden code
Getting the binary
👀 Reading hidden code
"/tmp/jl_f1zFu6"
dir = mktempdir()
👀 Reading hidden code
"/tmp/jl_f1zFu6/bin.zip"
binary_zip_path = download("https://github.com/lapfelix/ForceTouchVibrationCLI/releases/download/1.0/ForceTouchVibrationCLI.zip", joinpath(dir, "bin.zip"))
👀 Reading hidden code
Process(`unzip -o /tmp/jl_f1zFu6/bin.zip -d /tmp/jl_f1zFu6`, ProcessExited(0))
unzip_process = run(`unzip -o $(binary_zip_path) -d $(dir)`)
👀 Reading hidden code
Archive: /tmp/jl_f1zFu6/bin.zip inflating: /tmp/jl_f1zFu6/vibrate
"/tmp/jl_f1zFu6/vibrate"
vibrate_path = let
unzip_process
joinpath(dir, "vibrate")
end
👀 Reading hidden code