上一页 1 ··· 43 44 45 46 47 48 49 50 51 ··· 496 下一页
摘要: If we want to be able to modify the state of a promise from outside the constructor, we can use the Promise.withResolvers method to get access to the 阅读全文
posted @ 2024-05-22 14:28 Zhentiw 阅读(33) 评论(0) 推荐(0)
摘要: The new Array.with method gives you an immutable syntax for changing values of an array at a specified index. Sometimes .map will be more efficient. S 阅读全文
posted @ 2024-05-22 14:22 Zhentiw 阅读(26) 评论(0) 推荐(0)
摘要: You no longer need to write generator functions to create basic lazy iterator functions. Now, ECMAScript supports iterator helpers that you can call o 阅读全文
posted @ 2024-05-22 02:49 Zhentiw 阅读(22) 评论(0) 推荐(0)
摘要: Compse commands with pipe # List all folders and files in current dir % ls -l total 56 -rw-r--r-- 1 zwt staff 51 May 16 22:35 data.txt -rwxr-xr-x 1 zw 阅读全文
posted @ 2024-05-22 02:39 Zhentiw 阅读(16) 评论(0) 推荐(0)
摘要: Write to a file >, >> Append content at the beginning of the file. echo whatever > hello.txt echo Hello world >> hello.txt cat hello.txt # whatever # 阅读全文
posted @ 2024-05-22 02:33 Zhentiw 阅读(13) 评论(0) 推荐(0)
摘要: While The while loop executes a block of code as long as a specified condition is true. while [ condition ]; do commands done Example: #!/bin/zsh coun 阅读全文
posted @ 2024-05-21 03:41 Zhentiw 阅读(25) 评论(0) 推荐(0)
摘要: The "Set Methods" proposal introduces 7 new methods to JavaScript/ECMAScript: union(setB): Returns a new Set containing all elements from the original 阅读全文
posted @ 2024-05-20 21:59 Zhentiw 阅读(46) 评论(0) 推荐(0)
摘要: If The if statement is used to execute commands based on a condition. if [ condition ]; then commands fi Example: vim example.sh #!/bin/zsh echo "Ente 阅读全文
posted @ 2024-05-19 16:16 Zhentiw 阅读(31) 评论(0) 推荐(0)
摘要: Commands: export: Set environment variables. env: View environment variables. echo: Display environment variables. Common Environment Variables: PATH: 阅读全文
posted @ 2024-05-19 15:48 Zhentiw 阅读(28) 评论(0) 推荐(0)
摘要: Understanding File Permissions: File permissions in Unix-like systems determine who can read, write, or execute a file. They are represented as a comb 阅读全文
posted @ 2024-05-19 15:42 Zhentiw 阅读(12) 评论(0) 推荐(0)
上一页 1 ··· 43 44 45 46 47 48 49 50 51 ··· 496 下一页