Develop your own R package

This content is excerpted from the R language special section of “Gene Academy VIP Course (Season 2)”. An R package is a collection of functions, documentation and data saved in a standard format. Packages allow us to organize our functions in a well-defined and fully documented way, and make it easy for us to share […]

Explore Miniconda3: a simple and flexible Python environment and software package management tool

Miniconda3 installation and configuration notes Foreword Miniconda3 is a lightweight Anaconda distribution that provides a flexible and simplified way to manage Python environments and packages. This article will introduce how to install, configure and manage Miniconda3, as well as use the conda command to manage the environment and software packages. Article directory Miniconda3 installation and […]

Golang os package: process creation and termination, running external commands

The os package and its subpackage os/exec provide methods for creating processes. Generally, the os/exec package should be used first. Because the os/exec package relies on the key process creation APIs in the os package, for ease of understanding, we first discuss the process-related APIs in the os package. part. Creation of process In Unix, […]

vue3+antdv table packaging

tool.ts /**Generate unique ID */ let _idCounter = 0; export function generateUniqueID() {<!– –> var ts = new Date().getTime().toString(); var parts = ts.split(“”).reverse(); var id = “”; for (var i = 0; i < 5; + + i) {<!– –> var index = Math.floor(Math.random() * parts.length); id + = parts[index]; } id + = ( […]

Linux offline installation of cuda&cudnn and configuration of the machine and its environment packaging and migration

cuda installation cuda version adaptation Check the cuda version number supported by your computer [You can skip this step if you install the cuda toolkit on a supercomputing platform] CUDA toolkit Download official website download cuda toolkit Upload the downloaded .run executable file to the platform for offline installation $ cd /uploaded directory $ chmod […]

How to use fiddler to capture mobile phone packets and filters!

1. The difference between Fiddler and other packet capture tools 1. Although Firebug can capture packets, it is not powerful enough to analyze the detailed information of http requests. The function of simulating HTTP requests is not enough, and Firebug often requires “no refresh modification”. If the page is refreshed, all modifications will not be […]

java decompress all rar compressed packages

Introduce dependencies <!– rar–> <dependency> <groupId>com.github.axet</groupId> <artifactId>java-unrar</artifactId> <version>1.7.0-8</version> </dependency> <dependency> <groupId>net.sf.sevenzipjbinding</groupId> <artifactId>sevenzipjbinding</artifactId> <version>16.02-2.01</version> </dependency> <dependency> <groupId>net.sf.sevenzipjbinding</groupId> <artifactId>sevenzipjbinding-all-platforms</artifactId> <version>16.02-2.01</version> </dependency> ExtractCallback You need to first ship the ExtractCallback tool class and then call the method /** * @Author JimmySong * @Date 2023/11/8 13:49 * @Version 1.0 */ import net.sf.sevenzipjbinding.*; import java.io.*; public class ExtractCallback implements IArchiveExtractCallback […]

PureEdgeSim -taskgenerator package-Task file

Task interface summary: Reason for task failure /** * Enumeration for failure reasons of a Task. */ enum FailureReason {<!– –> FAILED_DUE_TO_LATENCY, FAILED_BECAUSE_DEVICE_DEAD, FAILED_DUE_TO_DEVICE_MOBILITY, NOT_GENERATED_BECAUSE_DEVICE_DEAD, NO_OFFLOADING_DESTINATIONS, INSUFFICIENT_RESOURCES, INSUFFICIENT_POWER } Mission success or failure /** * Enumeration for status of a Task. */ enum Status {<!– –> SUCCESS, FAILED } Maximum delay in returning tasks /** […]

vue3 table table packaging

index.vue <template> <div class=”cst-list”> <el-table :data=”props.tableData” style=”width: 100%” stripe ref=”tableRef” :row-key=”rowKey” :height=”props.height ” :size=”props.tableSize” :border=”props.border” @selection-change=”handleSelectionChange” @select=”handleSelect” @select-all=”handleSelect” :highlight-current-row=”props.highlightCurrentRow” @current-change=”choiseTableItem”> <template v-for=”(item, index) in props.tHead” :key=”index”> <el-table-column v-if=”item.slot” :prop=”item.prop” :label=”item.label” :width=”item.width” :min-width=”item.minWidth” :fixed=”item.fixed” :type=”item.type” :show-overflow-tooltip=”item.tooltip” :align=”item.align” :sortable=”item.sortable” :formatter=”item.formatter” :reserve-selection=”item.reserveSelection”> <template #default=”scope”> <slot :name=”item.prop” :row=”scope.row” :column=”scope.column” :index=”scope.$index”></slot> </template> </el-table-column> <el-table-column v-else :prop=”item.prop” :label=”item.label” :width=”item.width” :min-width=”item.minWidth\ ” […]