使用 golang present 包到 运行 ruby 或 python 代码
Using golang present package to run ruby or python code
我使用 Golang present 包构建了一个演示文稿。我可以在给定的 .slide 文件中使用 .play <file>.go
运行 Golang 代码。
我想知道是否也可以使用 .play <file>.rb
或 .play <file>.py
运行 ruby 或 python 代码?
I tried above method but it's giving me error when I click on Run
button in browser. Is it possible to run code for other languages ? If
Yes, how ? If No, Why not ?
check.rb:
puts 'hello, world'
这是我的 example.slide 文件的代码:
Checking the working of Ruby Code
Nothing much here!
15:04 2 Jan 2006
Tags: Ruby, Golang
Piyush Chauhan
********************
********************
********************
@piyushpsycho
* Title of slide or section (must have asterisk)
Some Text
.play check.rb
** Subsection
- bullets
- more bullets
- a bullet with
Present 使用 shebang 注释来确定程序 运行。将您的脚本更改为:
#! /usr/bin/ruby
puts 'hello, world'
我使用 Golang present 包构建了一个演示文稿。我可以在给定的 .slide 文件中使用 .play <file>.go
运行 Golang 代码。
我想知道是否也可以使用 .play <file>.rb
或 .play <file>.py
运行 ruby 或 python 代码?
I tried above method but it's giving me error when I click on Run button in browser. Is it possible to run code for other languages ? If Yes, how ? If No, Why not ?
check.rb:
puts 'hello, world'
这是我的 example.slide 文件的代码:
Checking the working of Ruby Code
Nothing much here!
15:04 2 Jan 2006
Tags: Ruby, Golang
Piyush Chauhan
********************
********************
********************
@piyushpsycho
* Title of slide or section (must have asterisk)
Some Text
.play check.rb
** Subsection
- bullets
- more bullets
- a bullet with
Present 使用 shebang 注释来确定程序 运行。将您的脚本更改为:
#! /usr/bin/ruby
puts 'hello, world'