Sha256: c0756d144e7263923725de4fcf904224ac23767f6a66f1bf7f944b2cbbf2b587

Contents?: true

Size: 856 Bytes

Versions: 15

Compression:

Stored size: 856 Bytes

Contents

# frozen_string_literal: true

# my code here ..

# open the console in your browser ou your native app and should see the text below
cmd=text ({data: "ruby run_server.rb", left: 0, top: 0, edit: true})
response_text=text ({data: "response_here", top: 444, edit: true})
image(:red_planet)

image({path: 'medias/images/logos/atome.svg', width: 33})

commanditor=circle({left: 6,top: 255, width: 33, height: 33, color: :black})
commanditor.touch(true) do
  cmd_to_send=cmd.data.downcase
  A.terminal(cmd_to_send) do |data|
    response_text.data(data.downcase)
  end
end

evaluator=circle({top: 255, width: 33, height: 33, color: :orange})
evaluator.touch(true) do
  code_found=cmd.data.downcase
  eval(code_found)
end
terminator=circle({left: 190,top: 255, width: 33, height: 33, color: :red})
terminator.touch(true) do
  JS.global[:location].reload()
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
atome-0.5.5.9.1 vendor/assets/application/test.rb
atome-0.5.5.8.7 vendor/assets/application/test.rb
atome-0.5.5.8.5 vendor/assets/application/test.rb
atome-0.5.5.8.1 vendor/assets/application/test.rb
atome-0.5.5.7.7 vendor/assets/application/test.rb
atome-0.5.5.7.5 vendor/assets/application/test.rb
atome-0.5.5.7.3 vendor/assets/application/test.rb
atome-0.5.5.7.1 vendor/assets/application/test.rb
atome-0.5.5.7.0 vendor/assets/application/test.rb
atome-0.5.5.6.9 vendor/assets/application/test.rb
atome-0.5.5.6.8 vendor/assets/application/test.rb
atome-0.5.5.6.7.9 vendor/assets/application/test.rb
atome-0.5.5.6.6 vendor/assets/application/test.rb
atome-0.5.5.6.5 vendor/assets/application/test.rb
atome-0.5.5.6.4 vendor/assets/application/test.rb