This file contains hidden or 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 random | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| from tqdm import trange | |
| P = 0.01 # 抽中概率 | |
| GIFT_LIMIT = 120 # 领取阈值 | |
| GLOBAL_LIMIT = 160 # 全局保底 | |
| N_PERIODS = 500 # 模拟期数 | |
| TRIALS = 1000 # 重复次数 |
This file contains hidden or 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.IOException; | |
| import java.net.InetAddress; | |
| import java.net.Socket; | |
| import java.security.KeyManagementException; | |
| import java.security.NoSuchAlgorithmException; | |
| import java.util.List; | |
| import javax.net.ssl.SNIHostName; | |
| import javax.net.ssl.SSLContext; | |
| import javax.net.ssl.SSLSocket; |
This file contains hidden or 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
| GET https://s01.oss.sonatype.org/service/local/staging/profile_repositories | |
| Accept: application/xml | |
| Authorization: basic {{basic}} | |
| ### | |
| POST https://s01.oss.sonatype.org/service/local/staging/bulk/close | |
| Accept: application/json | |
| Content-Type: application/json | |
| Authorization: basic {{basic}} |
This file contains hidden or 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
| #include <unistd.h> | |
| #include <string> | |
| #include <cinttypes> | |
| #include <android/log.h> | |
| #include <sys/system_properties.h> | |
| using namespace std; | |
| extern "C" { |
This file contains hidden or 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 android.app.AppComponentFactory; | |
| import android.content.pm.ApplicationInfo; | |
| import android.util.Log; | |
| import java.io.IOException; | |
| import java.nio.ByteBuffer; | |
| import java.nio.channels.Channels; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import java.util.zip.ZipFile; |
This file contains hidden or 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
| build-binary.mk | 8 ++++++++ | |
| default-build-commands.mk | 10 +++++++++- | |
| 2 files changed, 17 insertions(+), 1 deletion(-) | |
| diff --git a/build-binary.mk b/build-binary.mk | |
| index 6241dcc..bdf7d20 100644 | |
| --- a/build-binary.mk | |
| +++ b/build-binary.mk | |
| @@ -596,11 +596,19 @@ $(LOCAL_BUILT_MODULE): PRIVATE_ABI := $(TARGET_ARCH_ABI) | |
| $(LOCAL_BUILT_MODULE): PRIVATE_AR := $(TARGET_AR) $(ar_flags) $(TARGET_AR_FLAGS) |
This file contains hidden or 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.IOException; | |
| import java.nio.ByteBuffer; | |
| import java.nio.ByteOrder; | |
| import java.nio.channels.FileChannel; | |
| import java.nio.file.Path; | |
| import java.nio.file.Paths; | |
| import java.nio.file.StandardOpenOption; | |
| import java.util.Arrays; | |
| public class SimpleApkV2 { |