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

51
LINES

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

Document

1  
# snippet types
2  
3  
define('SN_DECLS', 1);
4  
define('SN_TESTCASE', 2);
5  
define('SN_COMMENT', 3);
6  
define('SN_RUNREPORT', 4); # report after running a test case
7  
define('SN_SOURCE', 5);  # uploaded source file (Java or other)
8  
define('SN_SOLUTION', 6);  # solution tree
9  
define('SN_LUA', 7);  # A solution in Lua code
10  
define('SN_LUA_CHATBOT', 8);  # A Lua chat-bot
11  
define('SN_LUA_TESTCASE', 9); # A text-to-text test case in Lua
12  
#define('SN_LUA_SOLUTION', 10); # A text-to-text solution in Lua (now integrated as plain SN_LUA)
13  
define('SN_OBJECT', 11); # An object
14  
define('SN_LUA_IMAGE', 12);
15  
define('SN_LUA_ANIMATION', 13); # Image plus (optional) animation
16  
define('SN_LUA_GUI', 14); # Animation plus keyboard+mouse events
17  
define('SN_COMMENT', 15);  # A comment on another snippet
18  
define('SN_INOUTEXAMPLE', 16); # A conversion example with input+output
19  
define('SN_LUA_SYSTEMTEST', 17); # A free-standing test case (not requiring a solution snippet)
20  
define('SN_LUA_SERVICEBOT', 18); # A bot in the group chat
21  
define('SN_LUA_SUGGESTER', 19); # A suggester for editing snippets
22  
define('SN_DOCUMENT', 100);  # just a human-readable text
23  
define('SN_DOCUMENT_TASK', 101);  # human-readable text - task description
24  
define('SN_DIRECTORY', 102); # A directory of snippets
25  
26  
$luaTypes = array(SN_LUA, SN_LUA_CHATBOT, SN_LUA_TESTCASE, SN_LUA_IMAGE,
27  
  SN_LUA_ANIMATION, SN_LUA_GUI, SN_LUA_SYSTEMTEST);
28  
29  
$types = array(
30  
  0 => '?', 
31  
  SN_DOCUMENT => 'Document',
32  
  SN_DOCUMENT_TASK => 'Task description',
33  
  SN_LUA => 'Lua code',
34  
  SN_LUA_CHATBOT => 'Lua code - Chat-bot',
35  
  SN_LUA_TESTCASE => 'Lua code - Test case',
36  
  SN_LUA_IMAGE => 'Lua code - Image',
37  
  SN_LUA_ANIMATION => 'Lua code - Animation',
38  
  SN_LUA_GUI => 'Lua code - GUI',
39  
  SN_LUA_SYSTEMTEST => 'Lua code - System test',
40  
  SN_LUA_SERVICEBOT => 'Lua code - Service bot',
41  
  SN_LUA_SUGGESTER => 'Lua code - Suggester',
42  
  SN_DECLS => 'TB declarations',
43  
  SN_TESTCASE => 'TB test case',
44  
  SN_COMMENT => 'Comment',
45  
  SN_RUNREPORT => 'Run report',
46  
  SN_SOURCE => 'Source file',
47  
  SN_SOLUTION => 'TB solution tree',
48  
  SN_COMMENT => 'Comment',
49  
  SN_INOUTEXAMPLE => 'Input/output example',
50  
  SN_OBJECT => 'Object',
51  
  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: 920 / 335
Referenced in: [show references]