Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

51
LINES

< > BotCompany Repo | #167 // Snippet types (current list)

Document

# snippet types

define('SN_DECLS', 1);
define('SN_TESTCASE', 2);
define('SN_COMMENT', 3);
define('SN_RUNREPORT', 4); # report after running a test case
define('SN_SOURCE', 5);  # uploaded source file (Java or other)
define('SN_SOLUTION', 6);  # solution tree
define('SN_LUA', 7);  # A solution in Lua code
define('SN_LUA_CHATBOT', 8);  # A Lua chat-bot
define('SN_LUA_TESTCASE', 9); # A text-to-text test case in Lua
#define('SN_LUA_SOLUTION', 10); # A text-to-text solution in Lua (now integrated as plain SN_LUA)
define('SN_OBJECT', 11); # An object
define('SN_LUA_IMAGE', 12);
define('SN_LUA_ANIMATION', 13); # Image plus (optional) animation
define('SN_LUA_GUI', 14); # Animation plus keyboard+mouse events
define('SN_COMMENT', 15);  # A comment on another snippet
define('SN_INOUTEXAMPLE', 16); # A conversion example with input+output
define('SN_LUA_SYSTEMTEST', 17); # A free-standing test case (not requiring a solution snippet)
define('SN_LUA_SERVICEBOT', 18); # A bot in the group chat
define('SN_LUA_SUGGESTER', 19); # A suggester for editing snippets
define('SN_DOCUMENT', 100);  # just a human-readable text
define('SN_DOCUMENT_TASK', 101);  # human-readable text - task description
define('SN_DIRECTORY', 102); # A directory of snippets

$luaTypes = array(SN_LUA, SN_LUA_CHATBOT, SN_LUA_TESTCASE, SN_LUA_IMAGE,
  SN_LUA_ANIMATION, SN_LUA_GUI, SN_LUA_SYSTEMTEST);

$types = array(
  0 => '?', 
  SN_DOCUMENT => 'Document',
  SN_DOCUMENT_TASK => 'Task description',
  SN_LUA => 'Lua code',
  SN_LUA_CHATBOT => 'Lua code - Chat-bot',
  SN_LUA_TESTCASE => 'Lua code - Test case',
  SN_LUA_IMAGE => 'Lua code - Image',
  SN_LUA_ANIMATION => 'Lua code - Animation',
  SN_LUA_GUI => 'Lua code - GUI',
  SN_LUA_SYSTEMTEST => 'Lua code - System test',
  SN_LUA_SERVICEBOT => 'Lua code - Service bot',
  SN_LUA_SUGGESTER => 'Lua code - Suggester',
  SN_DECLS => 'TB declarations',
  SN_TESTCASE => 'TB test case',
  SN_COMMENT => 'Comment',
  SN_RUNREPORT => 'Run report',
  SN_SOURCE => 'Source file',
  SN_SOLUTION => 'TB solution tree',
  SN_COMMENT => 'Comment',
  SN_INOUTEXAMPLE => 'Input/output example',
  SN_OBJECT => 'Object',
  SN_DIRECTORY => 'Directory');

Author comment

Actual PHP in use on site

download  show line numbers   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Image recognition results

Recognizer Recognition Result Visualize Recalc
#308 2225 [visualize]

Snippet ID: #167
Snippet name: Snippet types (current list)
Eternal ID of this version: #167/1
Text MD5: ce2e7d8275a1e5ba6f8a03d05cf7acc9
Author: stefan
Category:
Type: Document
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2014-01-15 02:19:16
Source code size: 2225 bytes / 51 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 919 / 335
Referenced in: [show references]