#CodeWidget Generator

6 messages · Page 1 of 1 (latest)

inland bobcatBOT
#
CodeWidget Generator

when you are writing proconfig, some time you need useing code widget,
this is a bot help you to create javascript code to feed into code widget.
you can try the code generated by this bot directly by using node yourcode.js

#
CodeWidget Generator

Hi , this is a code generator for ProConfig Code widget. you can give me your judge code requriment. I'll provide you the pure javascript code and it's test case, you can directly use it in code snippt widget.
you can try to ask me like this:

"I want a code to figure if a number is positive and bigger then 1. "
"calculate if a sentense words count is large then 100"

signal fractal
#

This is a bot for ProConfig developers 🙂

#

if you wanna use proconfig with code widget, this widget will help you to write code and it's test cases.

#

solve problem when integrate with proconfig and javascript

also , encode js into proconfig can be hard, thus, I've devloped a tool called pcc
use pip install pcc.
and using !oneline your_javascrip.js to include your javascirpt code.

#

workflow

thus , the workflow could be:

  1. using codewidget generate javascript code.
  2. using copy this code, and save it into your_js.js file.
  3. add line !oneline your_js.js into your mail.yaml which generated by pcc
  4. run pcc encode main.yaml