Skip to content

Instantly share code, notes, and snippets.

wd wd

Block or report user

Report or block wd

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@wd
wd / config.json
Last active Sep 19, 2019
路由器梅林固件上面使用 v2ray 的方案
View config.json
{
"log": {
"loglevel": "none"
},
"inbound": {
"port": 23456,
"listen": "127.0.0.1",
"protocol": "socks",
"settings": {
"udp": true
@wd
wd / config.json
Last active Aug 31, 2019
基于 3.8.6 以上 ss 版本的方案
View config.json
{
"log": {
"loglevel": "none"
},
"inbound": {
"port": 23456,
"listen": "127.0.0.1",
"protocol": "socks",
"settings": {
"udp": true
View squirrel.custom.yaml
patch:
style:
color_scheme: mojave_dark # 方案命名,不能有空格
horizontal: true
inline_preedit: true # 单行显示,false双行显示
candidate_format: "%c\u2005%@" # 用 1/6 em 空格 U+2005 来控制编号 %c 和候选词 %@ 前后的空间。
corner_radius: 5 # 候选条圆角
hilited_corner_radius: 3 # 高亮圆角
border_height: 6 # 窗口边界高度,大于圆角半径才生效
border_width: 6 # 窗口边界宽度,大于圆角半径才生效
View a_start.py
#!/usr/bin/python
import sys
import random
RED = '\033[31m'
GREEN = '\033[32m'
GRAY = '\033[35m'
NC = '\033[0m'
@wd
wd / skin_port_py_26.ini
Last active Feb 24, 2018
ios 百度输入法默认皮肤上面增加符号,同时去掉了逗号句号那个按钮,然后扩大了空格的长度,上滑输入的是半角符号,下滑输入的是全角的
View skin_port_py_26.ini
[INPUT]
[CAND]
VIEW_RECT=0,0,1242,40
LAYOUT_NAME=cand
TYPE=2
[PANEL]
BACK_STYLE=147
SIZE=1242,648
@wd
wd / App.js
Last active Oct 21, 2017
React-native react-redux with react-navigation StackNavigator single page demo
View App.js
/**
* 一个简单的 RN 应用,有 2 个页面,使用了 react-navigation 的 StackNavigator 来做界面管理
* 为了说明如何使用 redux,以及如何让 redux 和 StackNavigator 配合
* 为了容易理解,把所有内容都放到了一个页面里面,实际开发的时候不要这么做
* 参考:
* https://github.com/jackielii/simplest-redux-example
* http://www.ruanyifeng.com/blog/2016/09/redux_tutorial_part_three_react-redux.html
*/
import React, { Component } from 'react';
You can’t perform that action at this time.