Skip to content

Instantly share code, notes, and snippets.

View sorcererxw's full-sized avatar
🧶
Focusing

QianyuPan sorcererxw

🧶
Focusing
View GitHub Profile
@sorcererxw
sorcererxw / .zshrc
Last active April 11, 2024 09:34
My .zshrc file
# init homebrew
if [[ "$(uname)" == "Linux" ]]; then
export HOMEBREW_PREFIX="/home/linuxbrew/.linuxbrew"
elif [[ "$(uname -m)" == "arm64" ]]; then
export HOMEBREW_PREFIX="/opt/homebrew"
else
export HOMEBREW_PREFIX="/usr/local"
fi
eval "$($HOMEBREW_PREFIX/bin/brew shellenv)"
@sorcererxw
sorcererxw / jike-mike-tea-war.py
Last active June 10, 2019 03:21
即刻奶茶大战 adb 自动脚本
import subprocess
import sys
import time
def adbShell(command):
subprocess.Popen(["adb", "shell", command],
stdin=subprocess.PIPE, stdout=subprocess.PIPE)
cnt = 0
peer = 20
@sorcererxw
sorcererxw / jike-ns.py
Created April 27, 2019 14:07
即刻南北大战 adb 自动脚本
import subprocess
import sys
import time
from datetime import datetime
def adbShell(command):
subprocess.Popen(["adb", "shell", command],
stdin=subprocess.PIPE, stdout=subprocess.PIPE)
@sorcererxw
sorcererxw / screenshot.html
Last active August 11, 2018 23:43
HTML+CSS 绘制手机主屏幕
<div>
<style>
.ss_root {
border-radius: 8px;
font-family: serif;
height: auto;
width: 411px;
background:url(https://images.unsplash.com/photo-1454804422997-4137c1858692);
display: flex;
flex-direction: column;