#CodeWidget Generator
6 messages · Page 1 of 1 (latest)
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"
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:
- using codewidget generate javascript code.
- using copy this code, and save it into
your_js.jsfile. - add line
!oneline your_js.jsinto yourmail.yamlwhich generated bypcc - run
pcc encode main.yaml