This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.InputStream; | |
public class Main{ | |
public static void main(String[] args){ | |
try{ | |
new ProcessBuilder("gcc", "-o", "test.out", "test.c").start(); | |
ProcessBuilder process_builder = new ProcessBuilder("./test.out", ""); | |
Process run_process; | |
run_process = process_builder.start(); | |
InputStream subprocess_error = run_process.getErrorStream(); | |
byte[] a = subprocess_error.readAllBytes(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib | |
import urllib.request | |
from urllib import request,parse | |
import requests | |
import re | |
import getpass | |
import json | |
courseId="3B0BF5AFB336476F815E3934181F1DA2" | |
print("正在初始化...") | |
session=requests.session() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import re | |
url='https://www.bilibili.com/ranking' | |
html = requests.get(url).text | |
pattern = re.compile(r'www\.bilibili\.com/video/av\d+') | |
videos = pattern.findall(html) | |
for vid in videos: | |
print('https://'+vid) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[21:20:27] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker | |
[21:20:27] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker | |
[21:20:27] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLServerTweaker | |
[21:20:27] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2847 for Minecraft 1.12.2 loading | |
[21:20:27] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_65, running on SunOS:amd64:5.11, installed at /opt/jdk1.8.0_65/jre | |
[21:20:27] [main/WARN] [FML]: The coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin) is not signed! | |
[21:20:27] [main/WARN] [FML]: The coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin) is not signed! | |
[21:20:27] [main/INFO] [FML]: Searching /export/home/minecraft/chemistry/./mods for mods | |
[21:20:27] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraft |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ -n "$JAVA_HOME" ] && JAVA="$JAVA_HOME/bin/java" || JAVA=java | |
set -e | |
if [ -f forge-installer.jar ]; then | |
echo forge-installer.jar is present, which indicates the pack is already installed. | |
echo Delete forge-installer.jar if you intended to install or if the previous installation stopped halfway. | |
read -p "Press ENTER to continue..." answer | |
exit 0 | |
fi |