上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 55 下一页
摘要: ~/.profile printf "%-8s %-25s %-4s %s\n" @@@@@ ~/.profile '==>' Commence # ~/.profile: executed by Bourne-compatible login shells. if [ "$BASH" ]; the 阅读全文
posted @ 2022-09-16 11:41 ascertain 阅读(75) 评论(0) 推荐(0) 编辑
摘要: class Singleton: __obj = None __initiated = False def __new__(cls, *args, **kwargs): if cls.__obj is None: cls.__obj = super(Singleton, cls).__new__(c 阅读全文
posted @ 2022-09-15 10:45 ascertain 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 所有function都有 __get__ 用于实现绑定 __get__ class B: def __init__(self, v): self._v = v def v(self): return self._v def bind(instance, func, name=None): if na 阅读全文
posted @ 2022-09-12 20:26 ascertain 阅读(18) 评论(0) 推荐(0) 编辑
摘要: const obj = { name: 'qwer', hobbies: ['op', 'nm'], year: 2022, fn: function () { }, // function ignore reg: new RegExp(), // RegExp {} undefined: unde 阅读全文
posted @ 2022-09-05 22:11 ascertain 阅读(107) 评论(0) 推荐(0) 编辑
摘要: def alarm(item: list): match item: case [time, action]: print(f'{time} {action}') case [time, *actions]: for action in actions: print(f'^^ {time} {act 阅读全文
posted @ 2022-08-28 11:36 ascertain 阅读(111) 评论(0) 推荐(0) 编辑
摘要: IO TextIO BinaryIO 阅读全文
posted @ 2022-08-19 17:44 ascertain 阅读(18) 评论(0) 推荐(0) 编辑
摘要: function containsElement() { local n=$# # number of arguments local value=${!n} # last of arguments echo "${@:2}" echo "${@:0}" echo number of argumen 阅读全文
posted @ 2022-08-15 16:12 ascertain 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-08-14 23:03 ascertain 阅读(69) 评论(0) 推荐(0) 编辑
摘要: /etc/profile # System-wide .profile for sh(1) printf "%-8s %-30s %-4s %s\n" @@@@@ /etc/profile '==>' Commence if [ -x /usr/libexec/path_helper ]; then 阅读全文
posted @ 2022-08-03 18:48 ascertain 阅读(98) 评论(0) 推荐(0) 编辑
摘要: pipeline { agent { label 'translation' } environment { param1 = 'value1' } triggers { GenericTrigger( genericVariables: [ [defaultValue: '', key: 'src 阅读全文
posted @ 2022-08-03 18:42 ascertain 阅读(28) 评论(0) 推荐(0) 编辑
摘要: import pandas as pd df = pd.DataFrame(data={'id': [1, 2, 3], 'name': ['a', 'b', 'c']}) print(df) df.to_excel('z.xlsx') import pandas as pd df = pd.Dat 阅读全文
posted @ 2022-07-30 19:53 ascertain 阅读(108) 评论(0) 推荐(0) 编辑
摘要: DATE: DATETIME: TIMESTAMP: Fractional Seconds: 阅读全文
posted @ 2022-07-26 23:18 ascertain 阅读(21) 评论(0) 推荐(0) 编辑
摘要: https://dev.mysql.com/doc/refman/8.0/en/fractional-seconds.html CREATE TABLE fractional (c1 TIME(3), c2 DATETIME(3), c3 TIMESTAMP(4)); 阅读全文
posted @ 2022-07-26 22:28 ascertain 阅读(40) 评论(0) 推荐(0) 编辑
摘要: https://dev.mysql.com/doc/refman/8.0/en/timestamp-initialization.html CREATE TABLE t1 ( ts TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMES 阅读全文
posted @ 2022-07-26 22:20 ascertain 阅读(19) 评论(0) 推荐(0) 编辑
摘要: Service Pack (SP) What Does Service Pack (SP) Mean? A service pack (SP) is a patch and upgrade suite that complements an established operating system 阅读全文
posted @ 2022-07-26 15:32 ascertain 阅读(1670) 评论(0) 推荐(0) 编辑
摘要: pathmunge函数是RHEL系/etc/profile中定义的一个函数, 用来添加路径到PATH环境变量中, 在/etc/profile最后使用unset -f pathmunge取消了函数定义, 故shell中没有此函数定义 第一版: pathmunge() { if ! echo $PATH 阅读全文
posted @ 2022-07-17 14:44 ascertain 阅读(444) 评论(0) 推荐(0) 编辑
摘要: SMB Server Message Block $result = foreach ($share in $(Get-SmbShare)) { Get-SmbShareAccess -Name $share.Name | Where-Object {$_.AccountName -cmatch ' 阅读全文
posted @ 2022-07-09 22:02 ascertain 阅读(139) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2022-06-27 12:21 ascertain 阅读(81) 评论(0) 推荐(0) 编辑
摘要: background-image: linear-gradient(45deg, blue 100px, red, green); background-image: repeating-linear-gradient(red 50px, yellow 100px); background-imag 阅读全文
posted @ 2022-06-19 18:06 ascertain 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 当使用行内元素进行排版的时候,元素之间的符号采取一个都不放过的原则,通通都会都浏览器渲染,其中就包括换行符和空格,这两个极易被我们忽视的符号也会被浏览器渲染。,根据white-space的处理方式(默认是normal,合并多余空白)会将HTML中回车换行符转换成空白符,在字体不为空的情况下,会占据一 阅读全文
posted @ 2022-06-18 18:00 ascertain 阅读(79) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 55 下一页