Skip to content

Instantly share code, notes, and snippets.

View Ruakker's full-sized avatar
😴
Sleepy

Ruakker Ruakker

😴
Sleepy
View GitHub Profile
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
@Ruakker
Ruakker / .vimrc
Last active November 2, 2021 05:43
Vim config for NOIP
set nu
set rnu
set autochdir
set autoread
set cindent
filetype on
filetype indent on
set shiftwidth=4
@Ruakker
Ruakker / main.py
Created September 17, 2021 11:22
Arknights Lottery Probability
import random
p = 0.02
def lottery() -> bool:
if random.random() <= p:
return True
else:
return False