#16 master

Open
wangwei wants to merge 31 commits from master into ansible
  1. +3
    -10
      .drone.yml
  2. +17372
    -0
      01.ipynb
  3. +1
    -1
      Hello.java
  4. +45
    -45
      LICENSE
  5. +23
    -0
      MachineInfo
  6. +0
    -0
      aaaaaaaaaa
  7. +1
    -0
      nihao
  8. +3
    -3
      pom.xml
  9. +36
    -0
      src/main/java/com/educoder/bridge/service/CalculatorService.java
  10. +2
    -2
      src/main/webapp/static/css/pure-min.css
  11. +65
    -0
      src/test/java/com/educoder/bridge/CalculatorServiceTest.java
  12. +26
    -0
      src/test/java/com/educoder/bridge/MainTest.java
  13. BIN
      产品需求跟进表.xlsx
  14. +190
    -0
      实训相关接口

+ 3
- 10
.drone.yml View File

@@ -11,22 +11,15 @@ volumes:
path: /var/lib/cache
steps:
- name: maven
image: maven:3-jdk-10
image: maven:3-jdk-8
volumes:
- name: cache
path: /root/.m2
commands:
- mvn compile
- name: test
image: maven:3-jdk-10
volumes:
- name: cache
path: /root/.m2
commands:
- mvn test

- name: 远程主机部署
image: appleboy/drone-ssh
image: appleboy/drone-ssh:linux-arm64
settings:
host:
from_secret: ip
@@ -37,7 +30,7 @@ steps:
port: 22
script:
- chmod +x /home/deploy.sh
- ./home/deploy.sh
- nohup bash /home/deploy.sh &
trigger:
branch:
- master


+ 17372
- 0
01.ipynb
File diff suppressed because it is too large
View File


+ 1
- 1
Hello.java View File

@@ -1,5 +1,5 @@
public class {
public static void main(String[] args) {
System.out.println
System.out.println();
}
}

+ 45
- 45
LICENSE View File

@@ -1,46 +1,46 @@
ImageMagick License
The legally binding and authoritative terms and conditions for use, reproduction, and distribution of ImageMagick follow:
Copyright 1999-2009 ImageMagick Studio LLC, a non-profit organization dedicated to making software imaging solutions freely available.
1. Definitions. License shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. Licensor shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. Legal Entity shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, control means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. You (or Your) shall mean an individual or Legal Entity exercising permissions granted by this License. Source form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. Object form shall mean any form resulting from mechanical transformation or translation of a Source form, including limited to compiled object code, generated documentation, conversions to other media types. Work shall mean the work of authorship, whether in Source Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). Derivative Works shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. Contribution shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, submitted means any form of electronic, verbal, or written communication intentionally sent to the Licensor by its copyright holder or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as Not a Contribution. Contributor shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
1. You must give any other recipients of the Work or Derivative Works a copy of this License; and
2. You must cause any modified files to carry prominent notices stating that You changed the files; and
3. You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
4. If the Work includes a NOTICE text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole,
provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License.
APPENDIX: How to apply the ImageMagick License to your work To apply the ImageMagick License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format.
Copyright [yyyy] [name of copyright owner]
Licensed under the ImageMagick License (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy
of the License at http://www.imagemagick.org/www/license.html
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
ImageMagick License
The legally binding and authoritative terms and conditions for use, reproduction, and distribution of ImageMagick follow:
Copyright 1999-2009 WW, a non-profit organization dedicated to making software imaging solutions freely available.
1. Definitions. License shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. Licensor shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. Legal Entity shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, control means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. You (or Your) shall mean an individual or Legal Entity exercising permissions granted by this License. Source form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. Object form shall mean any form resulting from mechanical transformation or translation of a Source form, including limited to compiled object code, generated documentation, conversions to other media types. Work shall mean the work of authorship, whether in Source Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). Derivative Works shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. Contribution shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, submitted means any form of electronic, verbal, or written communication intentionally sent to the Licensor by its copyright holder or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as Not a Contribution. Contributor shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
1. You must give any other recipients of the Work or Derivative Works a copy of this License; and
2. You must cause any modified files to carry prominent notices stating that You changed the files; and
3. You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
4. If the Work includes a NOTICE text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole,
provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License.
APPENDIX: How to apply the ImageMagick License to your work To apply the ImageMagick License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format.
Copyright [yyyy] [name of copyright owner]
Licensed under the ImageMagick License (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy
of the License at http://www.imagemagick.org/www/license.html
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.

+ 23
- 0
MachineInfo View File

@@ -0,0 +1,23 @@
##########wukongclite
Hard id are no longer required.

##########wukongmac
02:42:ac:11:00:03

##########wukongc
Hard id are no longer required.

##########wukonglite
Ft6btsp+r21M77RiV7CovJCBvVcYiXgaA3thP9HdgLGZWdt1SNGWPdMcNaAjt7mYOtSdN8P46dOiWKoi9/64NmL+Rl2zeq+ZDgpsN3LOpdhsfrXvUW0ZPW0xr1kTIpQbRVkU73knAG5pcjjClZqqdRiZnia4dg9SNb+4rsx72z8=
enhlWWhJcaABzAcczsxnosB+Moj6Vw0ZuPWvXbh5igEnKtBDb1WVKjI21U+IUdzXcxvlJJwNJy9Sbq4rch/Bt3JmShPq6hOVSDxLYD4E3fpCEVKGQ+FBOc8P4JXNJzKS1pTtCL3E0Ylc6hOI2yNy5WNzve0++JbtVXO7U2Ogxz4=
xDxmfNyQx7NRmWwAMYpXre1tYwi+Z2bEeGhlq9hVf+o3rphovZw9Pu7V9qtDfEYEBCQooNC4G1wGRF98h/iogErqJoKgk0TEsO9uGJ4cZOes2KWpmkv9slFxtP5eVF6oaBSW/wk4upz+v0N/fuKA9U0JirP+Pl2VsEC4uI0Qdvw=
qPSCAdnTIKUiRh4G4OTyn7GHw5MWtLySxVnUagbtyxh9VnB3qyKyiJoN0Jb/gMuMHx6JGXALIQvV8H7p5h5P1UqW5IOFhGp9rMVUn/WvszlwmJwkbY8N2q6OCZgMKeKFvLtnTrT0vu7MsGvSWRFqK1TH5dMgwYKQeq29nXpEhNo=
jn3bq7DBNXezxXQk0Q3Oyg9HCD9DyDvLT4Pau5aymc8DXprYVE5vHVBD3G2iXiw4jfq3WwmV4oVulCNJJcPeqTANaHFc380P4lqVtJP3LtyctwbIalBpByNzQZ0dqaIyNPZku/357vjUOVU+M/zSobEE1uiSdtjLf6szIFcq6GI=

##########wukongjava
MMbzCM0/bSW1Qnz/esoxxF4C0HXa4bGx01BUVWXb2uyugzPVAAO8B/uu/bmNPJe/vYUuCsCTbDXsc7PntXztQ+JfU7JfSzszBNFoQ4YbOA588J+I6qFXmAYNmITT9snU10+4Vtmq8Em5hP9T3jQFC3XTtAqAtRY7i/e4WjlOL+8=
Xhyx1iJMy45f51+y2Iwukg+gCOxLbXMBtMABcbcX2WfQIz0bdRFsB2DKvYcibFHkCydTwezaM7fyU1OhkdMAtbbWIIaytYpZ5x1oiHTed/vAFRcrxrbtnd1LIW/H7gKgybEU/AOjCsugzQVc/wdxLnKAdgTApZwBCfP0geG5qfc=
NQkq71J5XEvVvjxGDVdk81yPOD+0lgDMmycC7IKY1xBBG/Z7p9Radn6t1+EmII/c3qSj6aIMo1ZkvCO4O3+Qb8LN1LOf1HIkUdn1fO0ChcBpEKGMzQtUzepCqDRI0HuB47pVT2D5zU0kyPYyYQvdh5Fh4vV9sk8M0czcMofLD24=
FEKpJyK4cDXtI7KIW73eji1CAXWuUN8xM+nKiLhhOMbrzP5ykgAui0ocKfV1OyTsE9YzvVS+9Y0rU6sQt3yb3QQxVRcBf0+fV2BJaKnZjUTZI4DIksMiykdYk4sWUGNwihpIrsJGPoU7EdYDwNEWUquHj3EJkH6vlmSeSytNX1A=
WyLr/WW0XXboVN4Lu2dafcU0VCLyYWoyxiytKCo5EK/Z2WlGO6SHHtzRwmxnLSPkaT8t0MfhFQsEHpebms68G+OXThZUSjmJctxkBJxHCvYQTzu4/OtuERNB3IZTSrzWliQiM8LTQesEoETJMiQGhCMqSpDpBcGn2gmZCxpLRp8=


+ 0
- 0
aaaaaaaaaa View File


+ 1
- 0
nihao View File

@@ -0,0 +1 @@
niasda

+ 3
- 3
pom.xml View File

@@ -7,7 +7,7 @@
<version>1.0-SNAPSHOT</version>
<name>webssh Maven Webapp</name>
<url>http://maven.apache.org</url>
<properties>
<swagger2.version>2.6.1</swagger2.version>
<spring.version>4.3.6.RELEASE</spring.version>
@@ -27,7 +27,7 @@
</properties>

<dependencies>
<dependency>
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
@@ -172,7 +172,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<configuration>
<skipTests>true</skipTests>
<skipTests>false</skipTests>
</configuration>
</plugin>



+ 36
- 0
src/main/java/com/educoder/bridge/service/CalculatorService.java View File

@@ -0,0 +1,36 @@
package com.educoder.bridge.service;

/**
* @Author: youys
* @Date: 2023/2/27
* @Description:
*/
public class CalculatorService {

public int add(int a, int b) {
return a + b;
}

public int subtract(int a, int b) {
return a - b;
}

public int multiply(int a, int b) {
return a * b;
}

public double divide(double a, double b) {
if (b == 0) {
throw new IllegalArgumentException("Cannot divide by zero!");
}
return a / b;
}

public double sqrt(double a) {
if (a < 0) {
throw new IllegalArgumentException("Cannot calculate square root of negative number!");
}
return Math.sqrt(a);
}

}

+ 2
- 2
src/main/webapp/static/css/pure-min.css
File diff suppressed because it is too large
View File


+ 65
- 0
src/test/java/com/educoder/bridge/CalculatorServiceTest.java View File

@@ -0,0 +1,65 @@
package com.educoder.bridge;

import com.educoder.bridge.service.CalculatorService;
import org.junit.Test;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;

/**
* @Author: youys
* @Date: 2023/2/27
* @Description:
*/
public class CalculatorServiceTest {

@Test
public void testAdd() {
CalculatorService calculator = new CalculatorService();
int result = calculator.add(1, 2);
assertEquals(3, result);
}

@Test
public void testSubtract() {
CalculatorService calculator = new CalculatorService();
int result = calculator.subtract(5, 2);
assertEquals(3, result);
}

@Test
public void testMultiply() {
CalculatorService calculator = new CalculatorService();
int result = calculator.multiply(3, 4);
assertEquals(12, result);
}

@Test
public void testDivide() {
CalculatorService calculator = new CalculatorService();
double result = calculator.divide(10, 2);
assertEquals(5.0, result, 0);

try {
calculator.divide(10, 0);
fail("Expected an IllegalArgumentException to be thrown");
} catch (IllegalArgumentException e) {
assertEquals("Cannot divide by zero!", e.getMessage());
}
}

@Test
public void testSqrt() {
CalculatorService calculator = new CalculatorService();
double result = calculator.sqrt(16);
assertEquals(4.0, result, 0);

try {
calculator.sqrt(-1);
fail("Expected an IllegalArgumentException to be thrown");
} catch (IllegalArgumentException e) {
assertEquals("Cannot calculate square root of negative number!", e.getMessage());
}
}

}

+ 26
- 0
src/test/java/com/educoder/bridge/MainTest.java View File

@@ -0,0 +1,26 @@
package com.educoder.bridge;

import org.junit.Test;

/**
* @Author: youys
* @Date: 2023/2/27
* @Description:
*/
public class MainTest {


@Test
public void test(){
int a = 1;
int b = 1;
assert b > 0 : String.format("%s/%s, 除数不能为0",a, b);
}

@Test
public void test2(){
int i=11;
assert i > 10 : String.format("变量i=%s,需要大于10", i);
}

}

BIN
产品需求跟进表.xlsx View File


+ 190
- 0
实训相关接口 View File

@@ -0,0 +1,190 @@
1、命令行评测实训
链接: https://test.educoder.net/tasks/augzqmrx5nw9
启动命令行接口:https://test-data.educoder.net/api/myshixuns/4yzwfose6q/start.json?game_id=2215157
返回参数
{
"status": 0,
"message": "success",
"data": {
"host": "172.16.95.1",
"port": "41279",
"link_url": "wss://pre-webssh.educoder.net/ws", # 这个是之前的ws_url
"username": "root",
"password": "XhKb4HwQ2FrnqjiS",
"myshixun_id": 584178,
"webssh_url": "http://172.16.94.254:8890/bridge",
"remainingTime": 1800000,
"mapping_service_url": "https://41280testsvc1.vnc.educoder.net"
}
}
激活接口:https://test-data.educoder.net/api/myshixuns/4yzwfose6q/active_pod.json?game_id=2215157
返回参数:
{
"status": 0,
"message": "success",
"data": {
"remaining_time": 1800000
}
}
重置命令行接口:https://test-data.educoder.net/api/myshixuns/4yzwfose6q/reset_pod.json?game_id=2215157
返回接口:
{
"status": 0,
"message": "success",
"data": {
"host": "172.16.95.1",
"port": "41279",
"link_url": "wss://pre-webssh.educoder.net/ws",
"username": "root",
"password": "XhKb4HwQ2FrnqjiS",
"myshixun_id": 584178,
"webssh_url": "http://172.16.94.254:8890/bridge",
"remainingTime": 1800000,
"mapping_service_url": "https://41280testsvc1.vnc.educoder.net"
}
}


2、命令行练习模式
链接:https://test.educoder.net/tasks/xjf8k5cvglpe
命令行练习模式链接接口:https://test-data.educoder.net/api/myshixuns/ulzyaw86j7/start.json?game_id=2215160
返回参数:
{
"status": 0,
"message": "success",
"data": {
"host": "172.16.95.1",
"port": "41281",
"link_url": "wss://pre-webssh.educoder.net/ws",
"username": "root",
"password": "UoeOXal40rkNrOSM",
"myshixun_id": 584179,
"webssh_url": "http://172.16.94.254:8890/bridge",
"remainingTime": 1800000,
"mapping_service_url": null
}
}
重置命令行接口: https://test-data.educoder.net/api/myshixuns/ulzyaw86j7/reset_pod.json?game_id=2215160
返回参数:
{
"status": 0,
"message": "success",
"data": {
"host": "172.16.95.1",
"port": "41284",
"link_url": "wss://pre-webssh.educoder.net/ws",
"username": "root",
"password": "4tsMtsXr5hxnrAMg",
"myshixun_id": 584179,
"webssh_url": "http://172.16.94.254:8890/bridge",
"remainingTime": 1800000,
"mapping_service_url": null
}
}
激活命令行接口:https://test-data.educoder.net/api/myshixuns/ulzyaw86j7/active_pod.json?game_id=2215157


3、 图形化模式
链接: https://test.educoder.net/tasks/qjo69pf4yen2
图形化链接的接口:https://test-data.educoder.net/api/myshixuns/68we3nqvlo/start.json
返回参数:
{
"status": 0,
"message": "success",
"data": {
"link_url": "https://41285testsvc1.vnc.educoder.net/vnc_lite.html?password=krFgfmEUo1eoJXSp",
"remaining_time": 1800000,
"mapping_service_url": null
}
}
图形化激活:https://test-data.educoder.net/api/myshixuns/68we3nqvlo/active_pod.json
返回参数:
{
"status": 0,
"message": "success",
"data": {
"remaining_time": 1800000
}
}
图形化重置:https://test-data.educoder.net/api/myshixuns/68we3nqvlo/reset_pod.json
返回参数
{
"status": 0,
"message": "success",
"data": {
"link_url": "https://41286testsvc1.vnc.educoder.net/vnc_lite.html?password=ubUfnZXfTaP2v8FS",
"remaining_time": 1800000,
"mapping_service_url": null
}
}

4、 jupyter类型
链接:https://test.educoder.net/tasks/kgilr324mf/jupyter
获取链接地址:https://test-data.educoder.net/api/myshixuns/kgilr324mf/start.json
返回参数:
{
"status": 0,
"message": "success",
"data": [{
"name": "",
"link_url": "https://41293testsvc1.vnc.educoder.net/notebooks/data/workspace/myshixun_584124/kgilr324mf20221213161642/01.ipynb?token=YkKtEKzePMHKe8tJ",
"remaining_time": 3600000
}]
}
激活时间:https://test-data.educoder.net/api/myshixuns/kgilr324mf/active_pod.json
重置环境:https://test-data.educoder.net/api/myshixuns/kgilr324mf/reset_pod.json


5. Vscode模式
链接:https://test.educoder.net/tasks/xzty6mscw4ak
获取链接接口:https://test-data.educoder.net/api/myshixuns/3cr9h8szfe/start.json
激活时间接口:https://test-data.educoder.net/api/myshixuns/3cr9h8szfe/active_pod.json
重置环境接口:https://test-data.educoder.net/api/myshixuns/3cr9h8szfe/reset_pod.json

6. jupytelab模式
链接:https://test.educoder.net/tasks/w3ku7g6hlt/jupyter
获取链接接口:https://test-data.educoder.net/api/myshixuns/w3ku7g6hlt/start.json
激活时间:https://test-data.educoder.net/api/myshixuns/w3ku7g6hlt/active_pod.json
重置接口:https://test-data.educoder.net/api/myshixuns/w3ku7g6hlt/reset_pod.json

7. 容器启动web类型
链接:https://test.educoder.net/tasks/iumv78glocw3
获取链接地址:https://test-data.educoder.net/api/myshixuns/gp24f3a5mr/start.json?game_id=2215349
激活时间:https://test-data.educoder.net/api/myshixuns/gp24f3a5mr/active_pod.json?game_id=2215349
重置接口:https://test-data.educoder.net/api/myshixuns/gp24f3a5mr/reset_pod.json?game_id=2215349

8. 阿里云命令行
链接:https://test.educoder.net/tasks/6vts7iqz5bok
获取链接地址:https://test-data.educoder.net/api/myshixuns/metj9p8uvg/start.json?position=1(position表示第几个命令行)
激活时间:https://test-data.educoder.net/api/myshixuns/metj9p8uvg/active_pod.json?position=1
重置环境:https://test-data.educoder.net/api/myshixuns/metj9p8uvg/reset_pod.json?position=1

9.算能云(目前测试版还不能测)
链接:https://test.educoder.net/tasks/nilpzk5f34ya
获取链接地址:https://test-data.educoder.net/api/myshixuns/9uakizlso8/start.json
激活时间:https://test-data.educoder.net/api/myshixuns/9uakizlso8/active_pod.json
重置环境:https://test-data.educoder.net/api/myshixuns/9uakizlso8/reset_pod.json

10. 交大云
链接:https://test.educoder.net/tasks/eyugo7923hxf
获取链接地址:https://test-data.educoder.net/api/myshixuns/ijpzyrtfqv/start.json?position=1 (position命令行的位置)
激活时间:https://test-data.educoder.net/api/myshixuns/ijpzyrtfqv/active_pod.json?position=1
重置环境: https://test-data.educoder.net/api/myshixuns/ijpzyrtfqv/reset_pod.json?position=1

11. windows云主机
链接:https://test.educoder.net/tasks/erws5kijf9cf
获取链接地址:https://test-data.educoder.net/api/myshixuns/gqszl4u3ef/start.json
激活时间:https://test-data.educoder.net/api/myshixuns/gqszl4u3ef/active_pod.json
重置环境:https://test-data.educoder.net/api/myshixuns/gqszl4u3ef/reset_pod.json

12.虚拟机
链接:https://test.educoder.net/tasks/ir8p4ockhygt
获取链接地址:https://test-data.educoder.net/api/myshixuns/zo85g3lv2y/start.json
激活时间:https://test-data.educoder.net/api/myshixuns/zo85g3lv2y/active_pod.json
重置环境:https://test-data.educoder.net/api/myshixuns/zo85g3lv2y/reset_pod.json

13. 阿里云Linux图形化
链接:https://test.educoder.net/tasks/bhiv3eyfug56
获取链接地址:https://test-data.educoder.net/api/myshixuns/zf6hb4pwnj/start.json
激活时间:https://test-data.educoder.net/api/myshixuns/zf6hb4pwnj/active_pod.json
重置环境:https://test-data.educoder.net/api/myshixuns/zf6hb4pwnj/reset_pod.json

Loading…
Cancel
Save