上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 497 下一页
摘要: button:focus-visible, input:focus-visible, a:focus-visible { border-color: #1e88e5; box-shadow: 0 0 3px 2px rgba(30, 135,229,0.5); } 阅读全文
posted @ 2024-06-24 18:23 Zhentiw 阅读(47) 评论(0) 推荐(0)
摘要: .balanced-text h2 { color: yellow; text-wrap: balance; } .unbalanced-text h2 { color: rgb(252, 1, 218); } 阅读全文
posted @ 2024-06-24 18:21 Zhentiw 阅读(29) 评论(0) 推荐(0)
摘要: ul li { border: 2px solid gray; border-radius: 8px; padding: 1rem; margin: 1rem; } // old way ul li input:checked { accent-color: #f806e4; } // new wa 阅读全文
posted @ 2024-06-24 18:19 Zhentiw 阅读(34) 评论(0) 推荐(0)
摘要: export class PageClickCounterComponent { reset$ = new Subject<void>(); clicks$ = merge( fromEvent<PointerEvent>(document, 'click').pipe( map(accumulat 阅读全文
posted @ 2024-06-24 18:04 Zhentiw 阅读(30) 评论(0) 推荐(0)
摘要: function currency(strings, ...values) { return strings.reduce((result, string, i) => { let value = values[i - 1]; if (typeof value "number") { value = 阅读全文
posted @ 2024-06-16 03:23 Zhentiw 阅读(26) 评论(0) 推荐(0)
摘要: The basic syntax of a for loop in Bash is: for variable in list do commands done Examples Example 1: Iterating Over a List of Words #!/bin/zsh for wor 阅读全文
posted @ 2024-06-11 18:35 Zhentiw 阅读(28) 评论(0) 推荐(0)
摘要: Create a logger.sh file #!/bin/bash echo `date +'%T %F'` $* >> `date +%F`.log $*: Represents all script arguments Example $ logger hello $ logger hell 阅读全文
posted @ 2024-06-11 18:18 Zhentiw 阅读(23) 评论(0) 推荐(0)
摘要: Single quotes If you want to use characters like < or > in the arguments to a program, you will need to use quotes so that the shell doesn't try to in 阅读全文
posted @ 2024-06-10 14:43 Zhentiw 阅读(25) 评论(0) 推荐(0)
摘要: Environment variables are defined by the shell and shell scripts. To list the current environment variables, type export: ~ $ export declare -x DISPLA 阅读全文
posted @ 2024-06-10 14:36 Zhentiw 阅读(42) 评论(0) 推荐(0)
摘要: watch For example every 5 second, I want to print out the time then save the time into the a txt file $watch -n5 'echo `date +%T` >> hello.txt' # then 阅读全文
posted @ 2024-06-07 20:58 Zhentiw 阅读(29) 评论(0) 推荐(0)
上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 497 下一页