上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 499 下一页
摘要: 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 阅读(33) 评论(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 阅读(34) 评论(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 阅读(30) 评论(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 阅读(30) 评论(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 阅读(53) 评论(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 阅读(35) 评论(0) 推荐(0)
摘要: Backticks Using to exec cmd and return the output as string $ echo `date` Fri Jun 7 15:40:11 EEST 2024 The same effect you can achieve by using $ echo 阅读全文
posted @ 2024-06-07 20:47 Zhentiw 阅读(25) 评论(0) 推荐(0)
摘要: Ping ping is a utility used to test the reachability of a host on an IP network and to measure the round-trip time for messages sent from the originat 阅读全文
posted @ 2024-06-06 02:38 Zhentiw 阅读(36) 评论(0) 推荐(0)
摘要: The cards on the DJI site have an effect where the hovered card expands and the other cards shrink: In order to emulate this effect we'll use Flexbox. 阅读全文
posted @ 2024-06-04 15:11 Zhentiw 阅读(52) 评论(0) 推荐(0)
摘要: Currently we are animating to a fixed height of 100px on hover since browsers can't animate from 0 to auto: <p class="h-0 overflow-hidden text-white/7 阅读全文
posted @ 2024-06-04 15:05 Zhentiw 阅读(31) 评论(0) 推荐(0)
上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 499 下一页