/*#!/bin/sh dir=$GEDIT_CURRENT_DOCUMENT_DIR name=$GEDIT_CURRENT_DOCUMENT_NAME pre=${name%.*} g++ -O2 $dir/$name -o $pre -g -Wall -std=c++11 if test $? ...
分类:
其他好文 时间:
2020-06-14 18:24:00
阅读次数:
52
创建一个依赖注入容器 class Program { static void Main(string[] args) { //创建一个依赖注入容器(IServiceProvider) var service = new ServiceCollection().AddSingleton<IPerson ...
分类:
其他好文 时间:
2020-06-14 16:56:21
阅读次数:
47
题目链接:https://www.acwing.com/problem/content/102/ 给定一个序列,只能对一个区间加一或者减一,问至少需要多少步使得所有数都变成一致的?有多少种一致序列? 利用差分,对一个区间进行加一或者减一的话,一定是一个差分+1加上另一个差分-1。 代码如下: #in ...
分类:
编程语言 时间:
2020-06-14 16:48:39
阅读次数:
71
先说如何使用VS自带OpenMP我使用的是vs2019 window10操作系统在VS中启用OpenMP很简单。在项目上右键->属性->配置属性->C/C++->语言->OpenMP支持,选择“是”即可。我的测试代码: 1 #include 2 #include 3 int main() 4 { 5... ...
分类:
其他好文 时间:
2020-06-14 16:42:22
阅读次数:
71
@SentinelResource 注解的使用方法 官网文档:Sentinel 注解支持 对应 Spring 中的切面:SentinelResourceAspect /** * Aspect for methods with {@link SentinelResource} annotation. ...
分类:
Web程序 时间:
2020-06-14 14:40:22
阅读次数:
90
一、查看 nginx 安装目录 ps -ef | grep nginx 二、查看配置文件 nginx.conf 路径 nginx -t 这条命令也可以用于检查配置文件是否正确。 当然也可以使用 find 命令进行文件查找 # 从 / 根目录下查找文件名为 nginx.conf 的文件find / - ...
分类:
系统相关 时间:
2020-06-14 13:16:23
阅读次数:
215
在使用终端输入 minicom 进入传输时,是无法直接退出的,需要使用以下方法退出。 1) 使用Ctrl+a 进入设置状态 2)按z进入设置菜单 (1)S键:发送文件到目标系统中;(2)W键:自动卷屏。当显示的内容超过一行之後,自动将後面的内容换行。这个功能在查看内核的啓动信息时很有用。(3)C键: ...
分类:
系统相关 时间:
2020-06-14 12:48:07
阅读次数:
185
During my time with Zotero, I've really enjoyed its various features and the 300MB of file sync space is able to be extended by modifying the path to ...
import java.util.*;/** * 图的广度优先遍历 */public class BreadthFirst { public static void bfs(Node node) { if (node == null) { return; } Queue<Node> queue = ...
分类:
其他好文 时间:
2020-06-14 11:20:26
阅读次数:
70
前提 安装 jdk,并且正常 1、把文件拷贝到 /usr/local/src/tomact文件夹下面 2、解压Tomact,tar -zxvf apache-tomcat-7.0.57.tar.gz 3、重新命名 ,mv apache-tomcat-7.0.57 tomcat 4、启动文件,./st ...
分类:
系统相关 时间:
2020-06-14 10:47:30
阅读次数:
64