Skip to content

Instantly share code, notes, and snippets.

View zwpaper's full-sized avatar
🏗️
lift

Wei Zhang zwpaper

🏗️
lift
View GitHub Profile
@zwpaper
zwpaper / obsidian-table-color.css
Created March 29, 2022 06:04
Table colors for Obsidian Live Preview
.cm-table-widget table thead tr {
background-color: var(--dark3);
}
.cm-table-widget table tbody tr:nth-child(even) {
background-color: var(--background-primary);
}
.cm-table-widget table tbody tr:nth-child(even) {
background-color: var(--background-secondary);
@zwpaper
zwpaper / loginpage.jsx
Last active March 18, 2017 15:08
[loginPage Handle] #tags: reactnative
//引入 Loading页面 主页面 登录页等页面组件
constructor(props) {
super(props);
this.state = { 登录状态: 等待检查 };
}
componentDidMount() {
this.检查登录(); // 比如调用asyncstorage
}
检查登录() {
if(经过检查后是已登录状态) {
@zwpaper
zwpaper / 0_reuse_code.js
Created November 21, 2016 03:43
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@zwpaper
zwpaper / d-term.py
Created December 19, 2013 04:18 — forked from xndcn/d-term.py
# coding=utf-8
import urwid
import requests
import re
import time
from bs4 import BeautifulSoup, NavigableString
import lxml.html
USER = ''