This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .bar { | |
| --speed-factor: calc(1.5); | |
| --speed-factor2: calc(100); | |
| // 一条文字的宽度,包括 padding | |
| --text-w: 330; | |
| // 屏幕小会重叠,所以我们不能用屏幕宽度,我们要用所有字加起来的宽度 | |
| --single: calc(var(--text-w) * 10); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tell application "Finder" | |
| set screenResolution to bounds of window of desktop | |
| end tell | |
| set screenWidth to item 3 of screenResolution | |
| tell application "System Events" | |
| click at {screenWidth - 100, 100} | |
| end tell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| div.smallp-img { | |
| background: url(https://cdn.lwqwq.com/pic/338886_dOfhnpC7.webp) !important; | |
| background-size: cover !important; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/node | |
| const createDate = new Date('2022-01-26'); | |
| const nowDate = new Date(); | |
| const diff = nowDate - createDate; | |
| const days = Math.floor(diff / (1000 * 60 * 60 * 24)); | |
| const results = ["今天中午吃个色", "今天晚上吃个色", false]; | |
| const todayResult = results[Math.floor(days % 3)]; | |
| todayResult && console.log(todayResult); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getRandomIntInclusive(min, max) { | |
| min = Math.ceil(min); | |
| max = Math.floor(max); | |
| return Math.floor(Math.random() * (max - min + 1)) + min; //含最大值,含最小值 | |
| } | |
| const foods = ["吃薯片", "喝可乐", "吃海底捞", "吃肯德基", "打 maimai"]; | |
| const randomPickFood = () => foods[getRandomIntInclusive(0, foods.length - 1)]; | |
| const redir = (Location) => ({ | |
| isBase64Encoded: false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pacstrap /mnt base base-devel linux-zen linux-zen-headers linux-firmware vim dhcpcd openssh | |
| ln -s /usr/bin/vim /usr/bin/vi | |
| # systemd-boot | |
| bootctl --path=/boot install | |
| bootctl update | |
| vi /boot/loader/entries/arch.conf | |
| # 全套 cjk 字体 |