-
Kotlin: 语法篇
作为安卓开发的现任官方语言,Kotlin的名字取自于圣彼得堡旁边的一座小岛,就像其前任Java的名字取自于印度尼沙的一座小岛一样,暗示着自己准备将其取而代之的野心 与Java的互操作性Java的势力广大,囊括了很多主流的安卓App和Library,想... -
Linux上初始化Raspberry Pi
小家伙挺别致的… 安装Raspbian OS 作为单板机,RPi的硬件组成比较固定,因此专门为其设计了操作系统Raspbian,可以看出命名时取了RPi的前缀和其父分支Debian的后缀 RPi官网下载系统影像,解压 将MicroSD存储卡插入读卡器... -
破解纽约时报内容墙
看篇nytimes的文章居然还要登录,看多了还要收钱,真是太过分了… 什么是内容墙 在现代数字媒体中,内容墙(Paywall)是一种常见的商业策略,用于限制用户访问在线内容,除非他们满足特定条件,如登录、订阅或支付费用。内容墙的主要目的是通过提供高质... -
打造适合二次元体质的Linux开发环境(一)
令人舒适的开发环境有助于提高产能… 二次元化VSCode VSCode安装Doki Theme插件 允许后点击插件的小齿轮->Set Color Theme来选择二次元颜色主题 放开VSCode UI写入权限1sudo chmod o+w /o... -
JS实现进入站内新页面时bgm不中断
上一个版本切换页面时bgm会因为页面元素重置而中断并且丢失进度,用户需要手动重播,体验十分糟糕… 用户离开页面前使用localStorage存储bgm状态12345678910const bgmPlayer = document.querySelec... -
大陆地区充值Chatgpt会员
Chatgpt似乎不支持大陆银行卡,那只能… Apple Store美区充值礼品卡 使用魔法,Wifi设置禁用IPv6防止魔法被识破 把Apple Store切到美区,有魔法的情况下不需要支付手段 登录支付宝地区切到SanFran(税少)然后启动小程... -
绕过Windows 11安装时的配置检查
Windows 11在安装过程中会检查机器的CPU、内存、存储空间、TPM模块以及Secure Boot是否达到其规定的标准,如果没达标则不给安装,有些不知变通… 改写注册表启动时按 Shift+F10 进入命令行,输入 regedit编辑注册表。找... -
Arch Linux更新系统内核
更新软件信息1sudo pacman -Syu 安装最新内核1sudo pacman -S linux # linux-lts for LTS kernel 重启后检查12rebootuname -a -
在安装环境中控制被安装系统
应对某些在初始环境中连网络管理器都没有的操作系统… 找到目标系统的根目录分区1lsblk 将该分区挂载到安装环境的目录下1mount /dev/分区 /mnt 若该分区上是LUKS加密文件系统,先对其进行解密12cryptsetup luksOp... -
将容器上传到AWS ECR公共仓库
上传到公共仓库后可以在任何设备上直接拉取,非常方便… 身份验证1aws ecr-public get-login-password --region 地区 | docker login --username AWS --password-stdin ...
$shields-style-height = 22px
.footer {
padding 1rem 0
color var(--text-color-4)
font-size 1rem
a {
color var(--text-color-4)
&:hover {
color var(--primary-color)
}
&.no-pointer {
pointer-events none
}
}
.website-info-box {
display flex
flex-direction column
align-items center
justify-content center
&.shields {
padding 0 1rem
img {
height $shields-style-height !important
}
a {
position relative
display inline-flex
box-sizing border-box
text-decoration none
}
.shields-item
.count-box {
margin 0.3rem 0.2rem
user-select none
}
}
+keep-mobile() {
&.shields {
.shields-item
.count-box {
margin 0.12rem -0.3rem
transform scale(0.9)
transform-origin center center
}
}
}
.info-item {
position relative
display flex
flex-wrap wrap
align-items center
justify-content center
box-sizing border-box
color var(--text-color-4)
&.shields {
.count-box {
display flex
justify-content flex-start
height $shields-style-height
color #f2f2f2
font-size 12.6px
.item-type
.item-value {
display flex
align-items center
height 100%
padding 0 6px
}
.item-type {
margin-right 0
background #555555
}
.item-value {
&.uv {
background coral
}
&.pv {
background orange
}
&.word {
background indianred
}
}
}
}
&.default {
margin 0.2rem 0
.count-box {
margin-right 15px
&::before {
position absolute
top 50%
left -10px
box-sizing border-box
transform translateY(-55%)
content '|'
}
&:first-child {
&::before {
display none
}
}
&:last-child {
margin-right 0
}
.item-type {
margin-right 4px
}
}
}
&.count-item {
display flex
.count-box {
&.uv
&.pv {
display none
}
}
}
&.deploy-info {
display flex
a
.tooltip {
display flex
align-items center
}
img {
height 1.08rem
margin 0 0.4rem
}
}
}
}
.icon-animate {
animation heartbeat-animate 1.2s ease-in-out infinite
}
}