码迷,mamicode.com
首页 >  
搜索关键字:sharp    ( 1781个结果
二分二分二分——无名氏(题目名忘了)
题目英文版: The only difference between the easy and the hard versions is the maximum value of k. You are given an infinite sequence of form "1121231234123 ...
分类:其他好文   时间:2020-04-28 12:33:44    阅读次数:91
systemctl配置管理文件详解
文件存放位置:(共三处)/etc/systemd/system//usr/lib/systemd/system/lib/systemd/system 文件内容: $cat sshd.service [Unit] Description=OpenSSH server daemon Documentat ...
分类:其他好文   时间:2020-04-28 09:57:56    阅读次数:437
第k大-二分查找-1139. 第k大的子数组
2020-04-25 18:19:22 问题描述: 给定一个长度为n的数组a,它有n * (n + 1) / 2个子数组。请计算这些子数组的和,然后按照升序排列,并返回排序后第k个数。 样例 Example1 Input: [2,3,1,4] 6 Output:5 Explanation: 我们可以 ...
分类:编程语言   时间:2020-04-25 19:13:36    阅读次数:60
SpringBoot + Log4j2使用配置 (转)
前言 后台程序开发及上线时,一般都会用到Log信息打印及Log日志记录,开发时通过Log信息打印可以快速的定位问题所在,帮助我们快捷开发。程序上线后如遇到Bug或错误,此时则需要日志记录来查找发现问题所在。 Spring Boot 可以集成很多不同的日志系统,目前有关日志的开源代码很多,如log4j ...
分类:编程语言   时间:2020-04-25 00:39:00    阅读次数:73
Sass @mixin 与 @include
Sass @mixin 与 @include @mixin 指令允许我们定义一个可以在整个样式表中重复使用的样式。 @include 指令可以将混入(mixin)引入到文档中。 @mixin important-text { color: red; font-size: 25px; font-wei ...
分类:其他好文   时间:2020-04-24 14:45:49    阅读次数:68
入门 - k8s伸缩应用程序
目标 使用 kubectl 伸缩应用程序。 Scaling(伸缩)应用程序 在之前的文章中,我们创建了一个 Deployment,然后通过 服务 提供访问 Pod 的方式。我们发布的 Deployment 只创建了一个 Pod 来运行我们的应用程序。当流量增加时,我们需要对应用程序进行伸缩操作以满足 ...
分类:其他好文   时间:2020-04-23 01:04:15    阅读次数:85
C# 解决IE文件名乱码方法
笔录 /// <summary> /// 解决IE文件名乱码方法 /// </summary> /// <param name="fileName">文件名</param> /// <returns></returns> public static string clFielName(string ...
分类:Windows程序   时间:2020-04-21 18:44:26    阅读次数:96
物理机 nginx udp 转发至k8s ingress (udp)
1. nginx 版本要高,1.12 以上,且有 --with-stream 模块,测试地址: 10.4.17.68 2. 物理机 nginx 必须将以下配置添加在nginx.conf中,http 模块外 stream { upstream udpserver { server 10.16.0.23 ...
分类:其他好文   时间:2020-04-21 15:15:26    阅读次数:123
C#中List去掉重复数据
public class User { public int ID { get; set; } public int Name { get; set; } } List<User> result = new List<User>(); result = result.Where((x, i) => ...
分类:Windows程序   时间:2020-04-19 00:52:25    阅读次数:375
创建用户并随机生成密码,并修改用户密码
#!/bin/bash ##创建用户user01-user10的用户 for i in `seq -w 01 10`; do id user$i &>/dev/null if [ $? -eq 0 ];then echo "user$i is exsit" else useradd user$i e ...
分类:其他好文   时间:2020-04-19 00:49:47    阅读次数:61
1781条   上一页 1 ... 17 18 19 20 21 ... 179 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!